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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --text: #e4e4e7;
  --text-muted: #8b8b96;
  --accent: #7c5cfc;
  --accent-glow: rgba(124, 92, 252, 0.3);
  --accent-soft: rgba(124, 92, 252, 0.08);
  --border: #1e1e2a;
  --radius: 12px;
  --coral: #FB7185;
  --amber: #F59E0B;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* === Scroll Fade-In === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-icon { font-size: 1.1em; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { background: #6a48e8; box-shadow: 0 6px 28px var(--accent-glow); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); }

.btn-small { padding: 8px 18px; font-size: 0.875rem; }
.btn-large { padding: 16px 36px; font-size: 1.1rem; }

/* === Nav === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { width: 28px; height: 28px; border-radius: 6px; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 160px 0 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 252, 0.12) 0%, transparent 60%);
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Flow Animation */
.hero-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
  padding: 20px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-flex;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.flow-key {
  background: #1e1e2a;
  border: 1px solid #2a2a3a;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
}
.flow-emoji { font-size: 1.5rem; }
.flow-label { font-size: 0.75rem; color: var(--text-muted); }
.flow-arrow { color: var(--text-muted); font-size: 1.2rem; }

.flow-animate {
  opacity: 0;
  animation: flowIn 0.5s ease forwards;
  animation-delay: var(--delay);
}
@keyframes flowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Features === */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: #2a2a3a;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* === Providers === */
.providers {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.provider-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.provider-card-custom {
  border-style: dashed;
}
.provider-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.provider-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.provider-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}
.provider-badge.recommended {
  background: rgba(124, 252, 92, 0.1);
  color: #4ade80;
}
.provider-badge.fast {
  background: rgba(251, 113, 133, 0.1);
  color: var(--coral);
}
.provider-badge.budget {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
}

/* === How it works === */
.how-it-works {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}
.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.step-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  margin-top: 12px;
  flex-shrink: 0;
}
kbd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 0.85em;
}

/* === Comparison === */
.compare {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.compare-table-wrap {
  max-width: 780px;
  margin: 0 auto;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
}
.compare-table th {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 18px;
}

/* Vowrite column — highlighted */
.col-vowrite {
  background: rgba(124, 92, 252, 0.06);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
th.col-vowrite {
  color: var(--accent);
  border-top: 2px solid var(--accent);
  border-radius: 8px 8px 0 0;
}
/* Last row bottom border */
tbody tr:last-child td.col-vowrite {
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 8px 8px;
}

/* Other columns — dimmed */
.col-other {
  background: rgba(0, 0, 0, 0.15);
}
th.col-other {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Row label */
.row-label {
  text-align: left !important;
  color: var(--text);
  font-weight: 500;
}

/* Cell states */
.cell-yes {
  color: #4ade80;
  font-weight: 700;
}
.cell-no {
  color: #555;
  font-weight: 400;
}
.cell-yes-dim {
  color: #6b7280;
  font-weight: 400;
}
.cell-warn {
  color: #78716c;
  font-size: 0.85em;
}

.compare-table tbody tr {
  transition: background 0.15s;
}
.compare-table tbody td {
  border-bottom: 1px solid var(--border);
}

/* === Download === */
.download {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 100%, rgba(124, 92, 252, 0.08) 0%, transparent 60%);
}
.download .section-title { font-size: 2.2rem; }
.version { color: var(--text-muted); margin-bottom: 32px; }
.download-actions { margin-bottom: 24px; }
.download-reqs {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.req {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.download-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.download-note code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  border: 1px solid var(--border);
}

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-icon { width: 20px; height: 20px; border-radius: 4px; }
.footer span, .footer p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }

/* === Responsive === */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .hero { padding: 120px 0 80px; }
  .hero-flow { flex-wrap: wrap; padding: 16px 20px; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 10px 10px; }
  .download-reqs { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .provider-grid { grid-template-columns: 1fr; }
  .features-grid { gap: 12px; }
  .feature-card { padding: 24px; }
}
