/* ===========================
   INBOXAI — THEME CSS
   =========================== */

:root {
  --bg: #ffffff;
  --bg-alt: #F8FAFB;
  --bg-dark: #0F172A;
  --fg: #0F172A;
  --fg-muted: #64748B;
  --fg-subtle: #94A3B8;
  --accent: #0D9488;
  --accent-light: #CCFBF1;
  --accent-hover: #0F766E;
  --border: #E2E8F0;
  --surface: #F1F5F9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.1), 0 16px 48px rgba(0,0,0,0.08);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* ---- HERO ---- */
.hero {
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5EEAD4;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5EEAD4;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-accent {
  color: #5EEAD4;
}

.hero-lede {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  color: #94A3B8;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: inline-block;
}

.btn-ghost:hover { color: white; }

.hero-proof {
  display: flex;
  gap: 28px;
  align-items: center;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-stat {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.proof-label {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
}

/* ---- PHONE MOCKUP ---- */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.phone-mockup {
  width: 280px;
  background: #1E293B;
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.phone-header {
  background: #1E293B;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.phone-avatar {
  flex-shrink: 0;
}

.phone-contact {
  display: flex;
  flex-direction: column;
}

.contact-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.contact-status {
  font-size: 0.72rem;
  color: #5EEAD4;
}

.phone-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.msg {
  display: flex;
  flex-direction: column;
}

.msg-customer { align-items: flex-start; }
.msg-agent { align-items: flex-end; }

.bubble {
  max-width: 200px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.msg-customer .bubble {
  background: #334155;
  color: #E2E8F0;
  border-bottom-left-radius: 4px;
}

.msg-agent .bubble {
  background: #0D9488;
  color: white;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 0.65rem;
  color: #475569;
  margin-top: 4px;
}

.phone-input {
  padding: 12px 16px;
  background: #1E293B;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-box {
  flex: 1;
  background: #334155;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: #64748B;
}

.input-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0D9488;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- SECTION SHARED ---- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.7;
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 100px 24px;
  background: var(--bg-alt);
}

.how-it-works .section-headline {
  margin-bottom: 64px;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 64px;
  flex-shrink: 0;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.step-number {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  margin-bottom: 20px;
}

.step-icon {
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}

.step p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
}

.features .section-headline {
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-primary {
  background: var(--bg-dark);
  color: white;
  border-color: transparent;
}

.feature-primary h3 { color: white; }
.feature-primary p { color: #94A3B8; }

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- PRICING ---- */
.pricing {
  padding: 100px 24px;
  background: var(--bg-alt);
}

.pricing .section-headline {
  margin-bottom: 12px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-featured {
  border-color: var(--accent);
  border-width: 2px;
}

.pricing-featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.plan-name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.plan-price {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--fg);
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 100px 24px;
  background: var(--bg-dark);
}

.manifesto-content {
  max-width: 720px;
  margin: 0 auto;
}

.manifesto-quote blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  color: white;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ---- FOOTER ---- */
.footer {
  background: #0A0F1A;
  color: #64748B;
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #475569;
  max-width: 260px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.88rem;
  color: #64748B;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { justify-content: center; }
  .hero-headline { font-size: 2rem; }
  .hero-lede { max-width: 100%; }
  .nav-links { display: none; }
  .steps { flex-direction: column; gap: 16px; }
  .step-connector { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .hero { padding: 120px 24px 80px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .hero-proof { gap: 20px; }
}