/* === CSS Custom Properties === */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --border-primary: #30363d;
  --border-secondary: #21262d;
  --text-primary: #f0f3f6;
  --text-secondary: #e1e4e8;
  --text-tertiary: #c9d1d9;
  --text-muted: #8b949e;
  --text-subtle: #6e7681;
  --accent-blue: #58a6ff;
  --accent-green: #238636;
  --accent-green-hover: #2ea043;
  --accent-green-light: #3fb950;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

code, kbd {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-tertiary);
}

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

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-green-hover);
  box-shadow: 0 0 24px rgba(35, 134, 54, 0.4);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 17px;
  border-radius: 10px;
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border-secondary);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
}

.nav-logo:hover {
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img {
  border-radius: 6px;
}

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

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

/* === Hero === */
.hero {
  padding: 160px 0 96px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon {
  margin-bottom: 32px;
}

.hero-icon img {
  border-radius: 20px;
  box-shadow: 0 0 80px rgba(88, 166, 255, 0.2), 0 0 160px rgba(88, 166, 255, 0.08);
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

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

.hero-cta {
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.card-icon {
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

/* === Steps === */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  padding: 24px;
}

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

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border-primary);
  margin-top: 47px;
  flex-shrink: 0;
}

/* === Formats Grid === */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.format-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
}

.format-card svg {
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.format-card span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.format-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Pricing === */
.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  padding: 40px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.pricing-header {
  margin-bottom: 28px;
}

.pricing-amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  display: block;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.pricing-features li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: rgba(63, 185, 80, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233fb950' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

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

/* === Trust === */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
}

.trust-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === CTA Section === */
.cta-section {
  text-align: center;
  padding: 112px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-inner h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-inner > p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-subtle);
}

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-secondary);
}

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

.footer-inner p {
  font-size: 13px;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Stagger children in grids */
.features-grid .fade-in:nth-child(1) { animation-delay: 0s; }
.features-grid .fade-in:nth-child(2) { animation-delay: 0.08s; }
.features-grid .fade-in:nth-child(3) { animation-delay: 0.16s; }
.features-grid .fade-in:nth-child(4) { animation-delay: 0.24s; }
.features-grid .fade-in:nth-child(5) { animation-delay: 0.32s; }
.features-grid .fade-in:nth-child(6) { animation-delay: 0.4s; }

.formats-grid .fade-in:nth-child(1) { animation-delay: 0s; }
.formats-grid .fade-in:nth-child(2) { animation-delay: 0.06s; }
.formats-grid .fade-in:nth-child(3) { animation-delay: 0.12s; }
.formats-grid .fade-in:nth-child(4) { animation-delay: 0.18s; }
.formats-grid .fade-in:nth-child(5) { animation-delay: 0.24s; }
.formats-grid .fade-in:nth-child(6) { animation-delay: 0.3s; }

/* === Responsive === */

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

  .formats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Desktop */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .section-title {
    font-size: 40px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hero {
    padding: 120px 0 64px;
  }

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

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

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-sub {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 20px 24px;
    gap: 16px;
  }

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

  .nav-toggle {
    display: block;
  }

  .step-connector {
    display: none;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .cta-section {
    padding: 80px 0;
  }

  .cta-inner h2 {
    font-size: 28px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
