/* ===== OtoBot — Landing Page Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Tokens --- */
:root {
  --bg: #09090b;
  --bg-subtle: #111114;
  --surface: rgba(255,255,255,.04);
  --surface-hover: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139,92,246,.25);
  --green: #22c55e;
  --green-glow: rgba(34,197,94,.2);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Layout --- */
.wrapper { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 24px;
  background: rgba(9,9,11,.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar .wrapper {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -.3px;
}
.nav-brand .logo-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  padding: 8px 18px !important; border-radius: 10px;
  background: var(--accent) !important; color: #fff !important;
  font-weight: 600 !important;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: var(--transition); }
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .5; transform: translateX(-50%) scale(1); }
  50% { opacity: .8; transform: translateX(-50%) scale(1.15); }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; } 50% { opacity: .4; }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 17px; line-height: 1.7;
  color: var(--text-muted); max-width: 540px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition);
}
.btn:hover { border-color: var(--border-hover); background: var(--surface-hover); transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border: none; color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(139,92,246,.35); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* --- Section Common --- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent-light);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--text-muted);
  max-width: 560px; line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-desc { margin: 0 auto; }

/* Divider */
.section + .section { border-top: 1px solid var(--border); }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 22px;
  background: var(--accent-glow);
}
.feature-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.65;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px; left: 16.66%; right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-glow), var(--accent), var(--accent-glow));
  opacity: .4;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px; font-weight: 800;
  color: var(--accent-light);
  box-shadow: 0 0 24px var(--accent-glow);
}
.step-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
}
.step-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.65;
  max-width: 280px; margin: 0 auto;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px; margin: 0 auto;
}
.pricing-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-card.featured .pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-plan {
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted); margin-bottom: 12px;
}
.pricing-price {
  font-size: 48px; font-weight: 800; letter-spacing: -2px;
  margin-bottom: 8px;
}
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.pricing-desc {
  font-size: 14px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.5;
}
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--green);
}

/* --- CTA / Contact --- */
.cta-section {
  text-align: center;
  padding: 100px 0;
}
.cta-box {
  max-width: 600px; margin: 0 auto;
  padding: 48px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none; opacity: .5;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -.5px;
  margin-bottom: 12px;
}
.cta-box p {
  font-size: 15px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7;
}
.cta-email {
  font-size: 15px; color: var(--text-dim); margin-top: 16px;
}
.cta-email a {
  color: var(--accent-light); text-decoration: underline;
  text-decoration-color: rgba(167,139,250,.3);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.cta-email a:hover { text-decoration-color: var(--accent-light); }

/* --- Footer --- */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px;
}
.footer .wrapper {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--text-muted); }

/* --- Sub-page Layout --- */
.subpage-hero {
  padding: 120px 0 80px;
}
.subpage-hero .section-title {
  margin-bottom: 12px;
}
.subpage-hero .section-desc {
  margin-bottom: 36px;
}
.subpage-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.subpage-card:hover { border-color: var(--border-hover); }
.subpage-card h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
}
.subpage-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0;
}
.subpage-input {
  width: 100%; margin-top: 14px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  font-family: inherit; font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.subpage-input:focus { border-color: var(--accent); }

/* --- Animations --- */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { 
    display: none; 
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 16px 24px;
    background: rgba(9,9,11,.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  
  .hero { padding: 120px 24px 80px; min-height: auto; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 24px; }
  .footer .wrapper { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
}