/* AiAgent landing — modern, mobile-first, no dependencies */

:root {
  --bg: #0a0a0f;
  --bg-elev: #14141f;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ee;
  --text-dim: #a0a0b0;
  --text-faint: #6a6a78;
  --accent: #7c5cff;
  --accent-bright: #9d83ff;
  --accent-dim: rgba(124, 92, 255, 0.15);
  --success: #4ade80;
  --max-width: 1100px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent-bright); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

/* ====== Nav ====== */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max-width); margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text);
}
.logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-radius: 8px;
  position: relative;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 7px;
  background: var(--bg); border-radius: 3px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 14px; }
.nav-links a:hover { color: var(--text); opacity: 1; }
@media (max-width: 600px) { .nav-links { display: none; } }

/* ====== Hero ====== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
  z-index: -1;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-dim);
  color: var(--accent-bright);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff, #b0b0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: white;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(124, 92, 255, 0.6); opacity: 1; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.2); opacity: 1; }

/* ====== Hero phone mockup ====== */
.hero-visual {
  margin-top: 60px;
  display: flex; justify-content: center;
  position: relative;
}
.phone {
  width: 260px; height: 540px;
  background: linear-gradient(180deg, #1a1a26, #0f0f17);
  border-radius: 38px;
  border: 8px solid #2a2a3a;
  padding: 12px;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #f5f5fa, #e0e0eb);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #2a2a3a;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-content {
  padding: 40px 16px 16px;
  color: #333;
  font-size: 12px;
}
.fake-line {
  height: 8px; background: #d0d0e0;
  border-radius: 4px; margin-bottom: 10px;
}
.fake-line.short { width: 60%; }
.fake-line.medium { width: 80%; }
/* Floating bubble */
.floating-bubble {
  position: absolute;
  right: 18px; bottom: 80px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-radius: 50%;
  box-shadow: 0 8px 20px -4px rgba(124, 92, 255, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}
.floating-bubble::after {
  content: '✦';
  color: white;
  font-size: 26px;
  font-weight: bold;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ====== Sections ====== */
section { padding: 80px 0; }
.section-head {
  text-align: center; margin-bottom: 50px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-dim); font-size: 17px;
  max-width: 520px; margin: 0 auto;
}

/* ====== Features ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-dim); font-size: 14px;
}

/* ====== Pricing ====== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 980px; margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-dim), var(--surface));
}
.price-badge {
  position: absolute; top: -12px; right: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.price-tier {
  font-size: 15px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.price-amount {
  font-size: 38px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.price-amount .period {
  font-size: 16px; font-weight: 500;
  color: var(--text-dim);
}
.price-yearly {
  font-size: 13px; color: var(--text-faint);
  margin-bottom: 24px;
}
.price-features {
  list-style: none; margin-bottom: 28px;
}
.price-features li {
  padding: 8px 0;
  font-size: 14px; color: var(--text-dim);
  display: flex; align-items: flex-start; gap: 10px;
}
.price-features li::before {
  content: '✓'; color: var(--success);
  font-weight: bold; flex-shrink: 0;
}
.price-features li.muted { color: var(--text-faint); }
.price-features li.muted::before { content: '—'; color: var(--text-faint); }
.price-card .btn { width: 100%; justify-content: center; }

/* ====== FAQ ====== */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600; font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--accent);
  font-size: 24px; font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 24px 20px;
  color: var(--text-dim); font-size: 15px;
}

/* ====== Footer ====== */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a {
  display: block; color: var(--text-dim);
  font-size: 14px; margin-bottom: 10px;
}
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--text-faint); font-size: 13px;
}

/* ====== Legal pages ====== */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: 60px 24px;
}
.legal-page h1 {
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.legal-page .updated {
  color: var(--text-faint); font-size: 14px;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 22px; font-weight: 700;
  margin-top: 36px; margin-bottom: 14px;
}
.legal-page h3 {
  font-size: 18px; font-weight: 600;
  margin-top: 24px; margin-bottom: 10px;
}
.legal-page p, .legal-page li {
  color: var(--text-dim); font-size: 15px;
  margin-bottom: 12px;
}
.legal-page ul, .legal-page ol {
  margin-bottom: 16px; padding-left: 24px;
}
.legal-page strong { color: var(--text); }
.legal-page .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-bright); font-size: 14px;
  margin-bottom: 30px;
}
