/* ══════════════════════════════════════
   Design Tokens
   ══════════════════════════════════════ */
:root {
  --indigo:   #4F46E5;
  --violet:   #7C3AED;
  --blue:     #3B82F6;
  --teal:     #14B8A6;
  --orange:   #F59E0B;
  --coral:    #FF6B6B;
  --success:  #22C55E;
  --error:    #EF4444;
  --purple:   #8B5CF6;

  --bg:       #F6F8FC;
  --surface:  #FFFFFF;
  --border:   #E5E7EB;
  --text:     #0F172A;
  --text2:    #64748B;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.20);
}

/* ══════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ══════════════════════════════════════
   Gradient text utilities
   ══════════════════════════════════════ */
.grad-blue {
  background: linear-gradient(120deg, #3B82F6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-violet {
  background: linear-gradient(120deg, #7C3AED, #4F46E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-teal {
  background: linear-gradient(120deg, #10B981, #14B8A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   Buttons
   ══════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border: none;
  border-radius: 9999px;
  padding: 11px 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,.45);
}
.btn-primary.btn-lg { font-size: 16px; padding: 14px 30px; }

.btn-white {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--indigo);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ══════════════════════════════════════
   Navbar
   ══════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo img {
  width: 170px;
  height: auto;
  object-fit: contain;
}
.navbar-right { display: flex; align-items: center; gap: 24px; }
.nav-login {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
}
.nav-login:hover { color: var(--indigo); }

/* ══════════════════════════════════════
   Hero
   ══════════════════════════════════════ */
.hero {
  background: linear-gradient(150deg, #F9F8FF 0%, #EEF2FF 45%, #F0FAFB 100%);
  padding: 56px 0 52px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 56px;
  align-items: center;
}

/* Left text */
.hero-text { display: flex; flex-direction: column; gap: 24px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  background: rgba(79,70,229,.08);
  border: 1px solid rgba(79,70,229,.18);
  border-radius: 9999px;
  padding: 6px 14px;
  width: fit-content;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text2);
}

.hero-cta { display: flex; flex-direction: column; gap: 10px; }
.hero-note { font-size: 13px; color: var(--text2); }

/* Right visual */
.hero-visual { position: relative; }
.hero-device-visual {
  margin-right: -56px;
  filter: drop-shadow(0 28px 44px rgba(15, 23, 42, .16));
}
.hero-device-visual img {
  width: min(760px, 58vw);
  max-width: none;
}

/* Browser frame */
.browser-frame {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
}
.browser-bar {
  background: #F0F2F5;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #DDE0E5;
}
.browser-dots { display: flex; gap: 5px; flex-shrink: 0; }
.dot-red    { width: 11px; height: 11px; border-radius: 50%; background: #FF5F56; display: block; }
.dot-yellow { width: 11px; height: 11px; border-radius: 50%; background: #FFBD2E; display: block; }
.dot-green  { width: 11px; height: 11px; border-radius: 50%; background: #27C93F; display: block; }
.browser-url {
  flex: 1;
  background: #fff;
  border: 1px solid #DDE0E5;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text2);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.browser-screen img {
  width: 100%;
  display: block;
}
/* Fallback when screenshot not yet added */
.browser-screen:not(:has(img[src])) {
  min-height: 300px;
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
}

/* Phone overlay on hero */
.hero-phone {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 26%;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.35));
}
.phone-frame-sm {
  background: #1C1C2E;
  border-radius: 28px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
}
.phone-notch-sm {
  width: 28px;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 9999px;
  margin: 2px auto 6px;
}
.phone-screen-sm {
  border-radius: 20px;
  overflow: hidden;
  background: #EEF2FF;
}
.phone-screen-sm img { width: 100%; display: block; }
.phone-bar-sm {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 9999px;
  margin: 6px auto 2px;
}

/* ══════════════════════════════════════
   Trust Bar
   ══════════════════════════════════════ */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.trust-item { display: flex; gap: 16px; align-items: center; }
.trust-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ticon-green  { background: #D1FAE5; color: #059669; }
.ticon-violet { background: #EDE9FE; color: #7C3AED; }
.ticon-orange { background: #FEF3C7; color: #D97706; }
.ticon-blue   { background: #DBEAFE; color: #2563EB; }
.trust-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.trust-desc  { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ══════════════════════════════════════
   Features
   ══════════════════════════════════════ */
.features-section {
  padding: 56px 0;
  background: var(--bg);
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -.02em;
  margin-bottom: 36px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
}
.ficon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ficon-blue   { background: rgba(59,130,246,0.10);  color: #2563EB; }
.ficon-violet { background: rgba(124,58,237,0.10);  color: #7C3AED; }
.ficon-teal   { background: rgba(20,184,166,0.10);  color: #0D9488; }
.ficon-orange { background: rgba(245,158,11,0.10);  color: #D97706; }
.ficon-indigo { background: rgba(79,70,229,0.10);   color: #4338CA; }
.ficon-coral  { background: rgba(239,68,68,0.10);   color: #E11D48; }
.feature-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: #111827; }
.feature-card p  { font-size: 14px; color: #6B7280; line-height: 1.65; }

/* ══════════════════════════════════════
   Shared showcase text
   ══════════════════════════════════════ */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.showcase-text h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.22;
  margin-bottom: 18px;
}
.showcase-text p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   Web Dashboard Showcase
   ══════════════════════════════════════ */
.web-showcase {
  padding: 64px 0;
  background: var(--bg);
  overflow: hidden;
}
.web-showcase-card {
  background: #EEF2FF;
  border-radius: 28px;
  padding: 56px 64px;
  overflow: hidden;
}
.web-showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 64px;
  align-items: center;
}
.browser-frame-lg { border-radius: 14px; }
.dashboard-showcase-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: var(--shadow-xl);
}
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(79,70,229,.08);
  border: 1.5px solid rgba(79,70,229,.22);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 16px;
}
.badge-grad-indigo {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge-grad-teal {
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   Mobile Showcase
   ══════════════════════════════════════ */
.mobile-showcase {
  padding: 64px 0;
  background: #ECFDF5;
  overflow: hidden;
}
.mobile-showcase-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow-badge-teal {
  background: rgba(20,184,166,.10);
  border-color: rgba(20,184,166,.32);
  color: #0D9488;
}
.mobile-phones {
  display: flex;
  gap: 0;
  align-items: flex-end;
  justify-content: center;
}
.phone-wrap {
  flex: 0 1 29%;
  display: flex;
  justify-content: center;
}
.phone-wrap-left  { transform: translate(18px, 28px); }
.phone-wrap-right { transform: translate(-18px, 28px); }
.phone-wrap-center { z-index: 2; }

.phone-frame-lg {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.phone-notch-lg {
  display: none;
}
.phone-screen-lg {
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}
.phone-screen-lg img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}
.phone-home-lg {
  display: none;
}

/* ══════════════════════════════════════
   CTA Banner
   ══════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  padding: 48px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-left { display: flex; align-items: center; gap: 20px; }
.cta-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-icon img { width: 36px; height: 36px; object-fit: contain; }
.cta-title { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.cta-desc  { font-size: 15px; color: rgba(255,255,255,.78); }

/* ══════════════════════════════════════
   Footer
   ══════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text2);
  transition: color .15s;
}
.footer-links a:hover { color: var(--indigo); }
.footer-logo {
  width: 112px;
  height: auto;
  object-fit: contain;
}

/* Legal pages */
.legal-page {
  background: linear-gradient(180deg, #F9F8FF 0%, #FFFFFF 360px);
}
.legal-hero {
  padding: 72px 0 36px;
}
.legal-kicker {
  color: var(--indigo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.legal-hero h1 {
  color: var(--text);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 12px;
}
.legal-updated {
  color: var(--text2);
  font-size: 15px;
}
.legal-section {
  padding: 0 0 72px;
}
.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  color: var(--text2);
  font-size: 16px;
  line-height: 1.75;
  max-width: 860px;
  padding: 44px;
}
.legal-content p + p {
  margin-top: 14px;
}
.legal-content h2 {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 34px 0 10px;
}
.legal-content h2:first-of-type {
  margin-top: 30px;
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-device-visual {
    display: block;
    margin: 16px auto 0;
    max-width: 760px;
  }
  .hero-device-visual img {
    width: 100%;
    max-width: 100%;
  }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .web-showcase-inner { grid-template-columns: 1fr; }
  .mobile-showcase-inner { grid-template-columns: 1fr; }
  .mobile-phones { justify-content: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-title { font-size: 34px; }
  .section-title { font-size: 24px; }
  .trust-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .mobile-phones { gap: 0; }
  .phone-screen-lg img { max-height: 360px; }
  .phone-wrap-left { transform: translate(10px, 16px); }
  .phone-wrap-right { transform: translate(-10px, 16px); }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-left { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .legal-hero { padding: 48px 0 28px; }
  .legal-hero h1 { font-size: 34px; }
  .legal-content { padding: 28px 22px; }
}
