:root {
  --bg: #0b1220;
  --bg-alt: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #22c55e;
  --primary-700: #16a34a;
  --secondary: #38bdf8;
  --border: #1f2937;
  --badge: #1e293b;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #334155;
  --primary: #16a34a;
  --primary-700: #15803d;
  --secondary: #0284c7;
  --border: #e2e8f0;
  --badge: #e2e8f0;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg-alt) 80%, transparent);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-mark { display:inline-grid; place-items:center; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #0b1220; font-weight: 800; }
.brand-text { letter-spacing: 0.2px; }

.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: transparent; border-radius: 8px; color: var(--text); }
.nav-toggle .bar { display:block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }

.nav-list { display: flex; gap: 18px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-list a:hover { background: var(--badge); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; text-decoration: none; color: var(--text); transition: transform .06s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #071013; border-color: color-mix(in oklab, var(--primary-700) 50%, transparent); }
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary { background: var(--secondary); color: #071013; border-color: color-mix(in oklab, var(--secondary) 50%, transparent); }
.btn-secondary:hover { filter: saturate(1.15) brightness(1.05); }
.btn-ghost { background: transparent; }

.hero { padding: 80px 0 40px; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in oklab, var(--primary) 25%, transparent), transparent), radial-gradient(1200px 600px at 80% -10%, color-mix(in oklab, var(--secondary) 20%, transparent), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 20px; color: var(--primary); margin: 0 0 8px; font-weight: 600; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.cta-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.integrations-mini { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: var(--badge); color: var(--text); border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.hero-visual { display: grid; place-items: center; }
.device-frame { position: relative; width: min(520px, 100%); aspect-ratio: 16/10; border-radius: 16px; background: linear-gradient(180deg, var(--card), color-mix(in oklab, var(--card) 70%, #000)); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.device-frame .pulse { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--secondary) 18%, transparent), transparent); animation: pulse 3s ease-in-out infinite; filter: blur(20px); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.05); opacity: .9; } }
.device-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .9; mix-blend-mode: screen; }

.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-content { display: flex; flex-direction: column; gap: 16px; }
.section-visual { display: flex; align-items: center; justify-content: center; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 16px; }
h3 { margin: 0 0 12px; }
p { color: var(--text); opacity: .92; }
.checklist { margin: 12px 0 0; padding-left: 18px; }
.checklist li { margin: 6px 0; }

.card { border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 18px; }
.highlight { background: linear-gradient(180deg, color-mix(in oklab, var(--card) 90%, transparent), color-mix(in oklab, var(--secondary) 8%, var(--card))); }

/* Features highlight */
.features-highlight { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-highlight-item { text-align: center; padding: 24px; }
.feature-highlight-item .feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature-highlight-item h3 { font-size: 18px; margin-bottom: 12px; color: var(--primary); }

/* Benefits list */
.benefits-list { list-style: none; padding: 0; margin: 0; }
.benefits-list li { margin: 8px 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.benefits-list li:last-child { border-bottom: none; }

/* App buttons */
.app-buttons { display: flex; gap: 12px; margin-top: 24px; }
.app-btn { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); background: var(--card); transition: transform .1s ease; }
.app-btn:hover { transform: translateY(-1px); }
.app-btn .app-icon { font-size: 24px; }
.app-btn .app-text { display: flex; flex-direction: column; }
.app-btn .app-text small { font-size: 10px; color: var(--muted); }
.app-btn .app-text strong { font-size: 14px; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 16px; transition: transform .1s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.feature-card .icon { font-size: 22px; }

.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-badge { display:grid; place-items:center; height: 64px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-weight: 600; }

.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.testimonial { border-left: 3px solid var(--secondary); padding: 12px 16px; background: var(--card); border-radius: 10px; }
.testimonial blockquote { margin: 0 0 8px; color: var(--text); opacity: .95; }
.testimonial figcaption { color: var(--muted); font-size: 14px; }

/* Testimonials grid */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.testimonial-card blockquote { font-size: 16px; line-height: 1.5; margin: 0 0 16px; color: var(--text); opacity: .95; }
.testimonial-author strong { display: block; color: var(--primary); margin-bottom: 4px; }
.testimonial-author small { color: var(--muted); font-size: 14px; }
.testimonial-summary { text-align: center; max-width: 800px; margin: 0 auto; }
.testimonial-summary p { font-size: 18px; line-height: 1.6; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: clamp(48px, 8vw, 72px); font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 18px; color: var(--muted); line-height: 1.3; }
.stats-cta { text-align: center; }

.cta .form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; }
.form input:focus, .form textarea:focus { outline: 2px solid color-mix(in oklab, var(--secondary) 40%, transparent); outline-offset: 2px; }
.form-hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 24px 0; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; align-items: start; }
.footer-nav, .footer-social { display: grid; gap: 8px; }
.footer-nav a, .footer-social a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover, .footer-social a:hover { color: var(--text); }
.copyright { padding-top: 12px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-highlight { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-list { position: absolute; right: 20px; top: 64px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: none; flex-direction: column; width: calc(100% - 40px); }
  .nav-list.open { display: flex; }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 24px; font-size: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* Policy page styles */
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-header { margin-bottom: 40px; text-align: center; }
.policy-header h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.policy-header .lead { color: var(--muted); }

.policy-sections { display: grid; gap: 32px; }
.policy-section h2 { color: var(--primary); margin-bottom: 16px; font-size: 24px; }
.policy-section h3 { color: var(--secondary); margin: 20px 0 12px; font-size: 18px; }
.policy-section p { margin-bottom: 12px; line-height: 1.6; }
.policy-section ul { margin: 12px 0; padding-left: 20px; }
.policy-section li { margin: 6px 0; line-height: 1.5; }

.contact-info { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 16px 0; }
.contact-info p { margin: 8px 0; }
.contact-info a { color: var(--secondary); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .policy-section h2 { font-size: 20px; }
  .policy-section h3 { font-size: 16px; }
  .contact-info { padding: 12px; }
}

/* Thank you page styles */
.thank-you-content { max-width: 900px; margin: 0 auto; text-align: center; }
.thank-you-icon { font-size: 80px; margin-bottom: 24px; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

.thank-you-header { margin-bottom: 48px; }
.thank-you-header h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; color: var(--primary); }
.thank-you-header .lead { font-size: 20px; color: var(--muted); }

.thank-you-message { margin-bottom: 48px; }
.message-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; text-align: left; }
.message-card h2 { font-size: 24px; margin-bottom: 16px; color: var(--secondary); }
.message-card p { margin-bottom: 20px; line-height: 1.6; }

.contact-reasons { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-reasons li { margin: 12px 0; padding: 12px 16px; background: var(--bg-alt); border-radius: 8px; border-left: 3px solid var(--primary); }

.contact-info-highlight, .response-time { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 20px 0; }
.contact-info-highlight h3, .response-time h3 { color: var(--primary); margin-bottom: 8px; font-size: 18px; }

.next-steps { margin-bottom: 48px; }
.next-steps h2 { font-size: 28px; margin-bottom: 32px; color: var(--text); }
.next-steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.next-step-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.next-step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.next-step-card .step-icon { font-size: 32px; margin-bottom: 16px; }
.next-step-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.next-step-card p { font-size: 14px; color: var(--muted); line-height: 1.4; }

.back-to-home { margin-top: 40px; }

@media (max-width: 720px) {
  .next-steps-grid { grid-template-columns: 1fr; }
  .message-card { padding: 20px; }
  .thank-you-icon { font-size: 60px; }
}