/* === Custom Properties === */
:root {
  --color-primary: #0088cc;
  --color-primary-dark: #006da3;
  --color-buy: #22c55e;
  --color-buy-bg: #052e16;
  --color-maybe: #eab308;
  --color-maybe-bg: #422006;
  --color-nobuy: #ef4444;
  --color-bg: #0a0a0a;
  --color-bg-light: #111111;
  --color-surface: #1a1a1a;
  --color-surface-light: #222222;
  --color-text: #f0f0f0;
  --color-text-muted: #999999;
  --color-border: #333333;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --max-width: 1100px;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--color-bg-light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text);
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === Hero === */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--color-bg) 0%, #0a1628 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--color-primary), #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-tg-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-tg-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trial {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* === Phone Mockup === */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 300px;
  height: 600px;
  background: #1a2332;
  border-radius: 40px;
  border: 3px solid #2a3a4a;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px;
  background: #1a2332;
  border-bottom: 1px solid #2a3a4a;
}

.phone-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.phone-header-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.phone-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0e1621;
}

.telegram-msg {
  background: #182533;
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 95%;
  opacity: 0;
  animation: msgSlideIn 0.5s ease forwards;
}

.msg-animate-1 { animation-delay: 0.5s; }
.msg-animate-2 { animation-delay: 1.2s; }

@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-verdict {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.msg-buy {
  background: var(--color-buy-bg);
  color: var(--color-buy);
}

.msg-maybe {
  background: var(--color-maybe-bg);
  color: var(--color-maybe);
}

.telegram-msg strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.msg-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  margin-bottom: 8px;
}

.msg-assessment {
  font-size: 0.7rem;
  line-height: 1.5;
}

.msg-assessment p {
  margin-bottom: 2px;
}

.msg-link {
  display: block;
  margin-top: 6px;
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.step:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* === Demo === */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.demo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-label {
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.demo-label-buy {
  background: var(--color-buy-bg);
  color: var(--color-buy);
}

.demo-label-maybe {
  background: var(--color-maybe-bg);
  color: var(--color-maybe);
}

.demo-msg {
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.demo-msg p {
  margin-bottom: 2px;
}

.demo-emoji strong {
  font-size: 1rem;
}

.demo-msg a {
  color: var(--color-primary);
}

/* === Pricing === */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 6px 24px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-duration {
  font-size: 3rem;
  font-weight: 800;
  margin: 20px 0 8px;
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding-left: 28px;
  position: relative;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-buy);
  font-weight: 700;
}

/* === CTA Section === */
.section-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a1628 0%, var(--color-bg) 100%);
  text-align: center;
}

.section-cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-cta p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.section-cta .hero-cta {
  justify-content: center;
}

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 260px;
    height: 520px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .pricing-card {
    padding: 40px 24px;
  }
}
