/* EVA Platform — Design System */
:root {
  --bg: #0a0e14;
  --bg2: #111820;
  --card: #161e2a;
  --border: #243040;
  --border-hover: #304058;
  --text: #cdd6e0;
  --text-bright: #ffffff;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-dim: #1e3a5f;
  --green: #22c55e;
  --green-dim: #14532d;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 8px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text-bright); }

/* ── Header ── */
.header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover { color: var(--text-bright); }
.nav .btn-nav {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.nav .btn-nav:hover { border-color: var(--accent); color: var(--accent); }
.nav .btn-primary {
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
}
.nav .btn-primary:hover { background: var(--accent-hover); color: #fff; }

/* ── Footer ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 40px 24px 24px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1140px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Hero ── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.btn-accent { background: var(--accent); color: #fff; border: none; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Sections ── */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Features grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--border-hover); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon img { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 16px;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: border-color .2s;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(59,130,246,.1);
}
.pricing-card h3 {
  font-size: 18px;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.pricing-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.pricing-card .period {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}
.pricing-card li {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.pricing-card li.off { color: #3a4050; }
.pricing-card li.off::before { content: '—'; color: #3a4050; }

/* ── Docs ── */
.docs-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.docs-layout h1 {
  font-size: 32px;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.docs-layout h2 {
  font-size: 22px;
  color: var(--text-bright);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.docs-layout h3 {
  font-size: 17px;
  color: var(--text-bright);
  margin-top: 32px;
  margin-bottom: 10px;
}
.docs-layout p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; font-size: 15px; }
.docs-layout code {
  background: var(--card);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.docs-layout pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.docs-layout pre .key { color: #7dd3fc; }
.docs-layout pre .str { color: #a5d6a7; }
.docs-layout pre .num { color: #ffab40; }
.docs-layout pre .cmt { color: #546e7a; }

/* ── Auth pages ── */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.auth-box h2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text-bright);
}
.auth-box .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.auth-box label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.auth-box input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border .2s;
  font-family: var(--font);
}
.auth-box input:focus { border-color: var(--accent); }
.auth-box .btn-full {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  font-family: var(--font);
}
.auth-box .btn-full:hover { background: var(--accent-hover); }
.auth-box .btn-full:disabled { opacity: .6; cursor: wait; }
.auth-box .links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 13px;
}
.auth-box .links a { color: var(--muted); }
.auth-box .links a:hover { color: var(--accent); }
.auth-box .back-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}
.msg {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
}
.msg.error { background: #2d1a1a; border: 1px solid #5a2a2a; color: #ff6b6b; display: block; }
.msg.ok { background: #1a2d1a; border: 1px solid #2a5a2a; color: #6bff6b; display: block; }

/* ── About ── */
.about-page { max-width: 780px; margin: 0 auto; padding: 60px 24px 80px; }
.about-page h1 { font-size: 32px; color: var(--text-bright); margin-bottom: 24px; }
.about-page h2 { font-size: 22px; color: var(--text-bright); margin: 40px 0 16px; }
.about-page p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; font-size: 15px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.team-card h4 { font-size: 15px; color: var(--text-bright); margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--muted); }

/* ── Legal pages ── */
.legal-page { max-width: 780px; margin: 0 auto; padding: 60px 24px 80px; }
.legal-page h1 { font-size: 28px; color: var(--text-bright); margin-bottom: 8px; }
.legal-page .last-updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.legal-page h2 { font-size: 19px; color: var(--text-bright); margin: 32px 0 12px; }
.legal-page p { color: var(--muted); margin-bottom: 14px; line-height: 1.7; font-size: 15px; }
.legal-page ul { color: var(--muted); margin-bottom: 14px; padding-left: 20px; font-size: 15px; }
.legal-page li { margin-bottom: 6px; }

/* ── 404 ── */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-page h1 { font-size: 80px; color: var(--accent); margin-bottom: 12px; font-weight: 800; }
.error-page p { color: var(--muted); font-size: 16px; margin-bottom: 28px; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .section { padding: 48px 20px; }
  .section-header h2 { font-size: 24px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}
