/* ===== Design Tokens ===== */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --bg-card-hover: #22272e;
  --text-primary: #ffffff;
  --text-secondary: #8b949e;
  --accent: #1e56e0;
  --accent-hover: #2563eb;
  --accent-glow: rgba(30, 86, 224, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1140px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  padding: 12px 28px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid #30363d;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  font-size: 18px;
  padding: 16px 40px;
  border-radius: var(--radius);
}

.btn-header {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
}
.btn-header:hover {
  background: var(--accent-hover);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-icon--small {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-text--small {
  font-size: 16px;
}

.logo-accent {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-price {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
}
.hero-price strong {
  color: var(--text-primary);
}

/* ===== Section Headings ===== */
h2 {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.features h2 {
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.2s, background 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  border: 1.5px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.pricing-card:hover {
  border-color: #30363d;
}

.pricing-card--popular {
  border-color: var(--accent);
  transform: scale(1.05);
  background: var(--bg-secondary);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-card--popular:hover {
  border-color: var(--accent);
  transform: scale(1.07);
}

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

.pricing-period {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-permonth {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

/* ===== How To ===== */
.howto {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.howto h2 {
  margin-bottom: 56px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
  padding: 0 20px;
}

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

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

.step-line {
  width: 60px;
  height: 2px;
  background: #30363d;
  margin-top: 28px;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
}

.faq h2 {
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #21262d;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--accent);
}
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  padding-bottom: 20px;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid #21262d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-tg {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.footer-tg:hover {
  opacity: 0.8;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  h2 {
    font-size: 28px;
  }

  /* Header mobile */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid #21262d;
  }
  .nav-links.open {
    max-height: 300px;
    padding: 16px 0;
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
  }

  .btn-header {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-card--popular {
    transform: none;
    order: -1;
  }
  .pricing-card--popular:hover {
    transform: none;
  }

  /* Steps mobile */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .step-line {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .features,
  .pricing,
  .howto,
  .faq {
    padding: 64px 0;
  }
}
