/* Next Gen Web — shared styles (extracted from Tailwind design tokens) */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 9%;
  --card: 0 0% 100%;
  --muted-foreground: 0 0% 45%;
  --primary: 215 16% 47%;
  --border: 0 0% 90%;
  --success: 142 70% 40%;
  --warning: 38 92% 50%;
  --destructive: 345 72% 51%;
}
html.dark {
  --background: 240 6% 6%;
  --foreground: 0 0% 90%;
  --card: 240 5% 9%;
  --muted-foreground: 0 0% 50%;
  --primary: 215 14% 55%;
  --border: 240 4% 26%;
  --success: 145 100% 50%;
  --warning: 38 100% 55%;
  --destructive: 345 90% 60%;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: hsl(var(--border)); }
html { background: hsl(var(--background)); }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 500; letter-spacing: -0.02em; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; padding-top: 56px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsla(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0 24px;
}
.nav-inner { max-width: 1200px; margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a { font-size: 13px; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; color: hsla(var(--foreground) / 0.6); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: hsl(var(--foreground)); }
.nav-right { display: flex; gap: 8px; align-items: center; }
.icon-btn { height: 32px; width: 32px; display: inline-flex; align-items: center; justify-content: center; color: hsla(var(--foreground) / 0.7); }
.icon-btn:hover { color: hsl(var(--foreground)); }
.btn-outline { font-size: 13px; height: 32px; padding: 0 12px; border: 1px solid hsla(var(--foreground) / 0.4); color: hsl(var(--foreground)); transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.btn-primary { font-size: 14px; padding: 12px 24px; background: hsl(var(--foreground)); color: hsl(var(--background)); font-weight: 500; transition: opacity .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary.lg { font-size: 15px; padding: 14px 32px; }
.menu-btn { display: inline-flex; height: 40px; width: 40px; align-items: center; justify-content: center; color: hsl(var(--foreground)); }
.mobile-menu { display: none; border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.mobile-menu.open { display: block; }
.mobile-menu-inner { max-width: 1200px; margin: 0 auto; padding: 12px 0; display: flex; flex-direction: column; }
.mobile-menu a { font-size: 14px; padding: 12px 8px; color: hsla(var(--foreground) / 0.7); }
.mobile-menu a.active { color: hsl(var(--foreground)); }
.mobile-menu .btn-outline { width: 100%; height: 44px; justify-content: center; margin-top: 8px; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .nav-cta { display: inline-flex; }
}
.nav-cta { display: none; }

/* Sections */
section { padding: 0 24px; }
.section-border { border-bottom: 1px solid hsl(var(--border)); }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em; color: hsl(var(--muted-foreground)); margin-bottom: 16px; }
.muted { color: hsl(var(--muted-foreground)); }
h1.display { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
h1.page { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; }
h2.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; max-width: 560px; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: hsl(var(--muted-foreground)); }
.badge .dot { height: 6px; width: 6px; border-radius: 999px; background: hsl(var(--success)); }
.hero p.lead { margin-top: 24px; font-size: 16px; line-height: 1.6; color: hsl(var(--muted-foreground)); max-width: 480px; }
.hero h1 { margin-top: 20px; }
.cta-row { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.check { color: hsl(var(--success)); }

/* Chart card */
.chart-card { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); overflow: hidden; }
.chart-bar { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 32px; border-bottom: 1px solid hsl(var(--border)); background: hsla(var(--background) / 0.4); }
.chart-bar i { height: 10px; width: 10px; border-radius: 999px; }
.chart-bar i.r { background: hsla(var(--destructive) / 0.6); }
.chart-bar i.y { background: hsla(var(--warning) / 0.6); }
.chart-bar i.g { background: hsla(var(--success) / 0.6); }
.chart-bar .url { flex: 1; height: 16px; background: hsla(var(--muted-foreground) / 0.1); margin-left: 12px; }
.chart-body { padding: 24px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.chart-num { margin-top: 4px; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.chart-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid hsla(var(--success) / 0.4); background: hsla(var(--success) / 0.1); color: hsl(var(--success)); font-size: 11px; font-weight: 500; }
.chart-svg { position: relative; height: 180px; }
.chart-x { margin-top: 8px; display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: hsl(var(--muted-foreground)); }
.chart-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chart-foot-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: hsl(var(--muted-foreground)); }
.chart-foot-val { margin-top: 4px; font-size: 14px; font-weight: 500; }

/* Why grid */
.feature-grid { margin-top: 56px; border: 1px solid hsl(var(--border)); display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-cell { padding: 28px; border-top: 1px solid hsl(var(--border)); }
.feature-cell:first-child { border-top: 0; }
@media (min-width: 768px) {
  .feature-cell { border-top: 0; }
  .feature-cell:nth-child(n+1) { border-right: 1px solid hsl(var(--border)); }
  .feature-cell:nth-child(3n) { border-right: 0; }
  .feature-cell:nth-child(n+4) { border-top: 1px solid hsl(var(--border)); }
}
.feature-cell h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.feature-cell p { font-size: 13px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.feature-cell .ico { color: hsla(var(--foreground) / 0.8); margin-bottom: 16px; }

/* Service teasers */
.svc-grid { display: grid; gap: 1px; background: hsl(var(--border)); border: 1px solid hsl(var(--border)); grid-template-columns: 1fr; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-cell { background: hsl(var(--background)); padding: 32px; }
.svc-cell h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.svc-cell p { font-size: 13px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.svc-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
@media (min-width: 768px) { .svc-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.link-arrow { font-size: 13px; color: hsla(var(--foreground) / 0.7); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { color: hsl(var(--foreground)); }

/* CTA section */
.cta-section { padding: 128px 24px; text-align: center; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; max-width: 640px; margin: 0 auto; }
.cta-section p { margin: 20px auto 0; font-size: 15px; color: hsl(var(--muted-foreground)); max-width: 440px; }

/* Footer */
footer { border-top: 1px solid hsl(var(--border)); }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid img { height: 24px; width: auto; }
.footer-grid h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: hsl(var(--muted-foreground)); margin-bottom: 12px; font-weight: 400; }
.footer-grid li { font-size: 13px; margin-bottom: 8px; color: hsla(var(--foreground) / 0.7); }
.footer-grid a:hover { color: hsl(var(--foreground)); }
.footer-bottom { border-top: 1px solid hsl(var(--border)); }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; font-size: 12px; color: hsl(var(--muted-foreground)); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: hsl(var(--border)); border: 1px solid hsl(var(--border)); }
@media (min-width: 768px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { background: hsl(var(--background)); padding: 32px; display: flex; flex-direction: column; position: relative; }
.price-card.popular { box-shadow: inset 0 0 0 1px hsla(var(--foreground) / 0.3); z-index: 1; }
.popular-tag { position: absolute; top: -1px; left: 0; right: 0; display: flex; justify-content: center; }
.popular-tag span { padding: 4px 12px; background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; }
.price-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.price-card .blurb { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.6; min-height: 40px; margin-bottom: 24px; }
.price-amount { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid hsl(var(--border)); }
.price-amount .num { font-size: 36px; font-weight: 500; letter-spacing: -0.02em; }
.price-amount .per { font-size: 14px; color: hsl(var(--muted-foreground)); margin-left: 4px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: hsla(var(--foreground) / 0.85); margin-bottom: 10px; }
.price-cta { margin-top: 32px; }
.price-cta button, .price-cta a { width: 100%; justify-content: center; }
.btn-block { display: inline-flex; width: 100%; justify-content: center; padding: 12px 20px; font-size: 14px; font-weight: 500; }

/* FAQ */
.faq { border: 1px solid hsl(var(--border)); }
.faq details { border-bottom: 1px solid hsl(var(--border)); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 56px; cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: hsla(var(--foreground) / 0.5); font-size: 18px; transition: transform .15s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .a { padding: 0 24px 20px; font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* Services page */
.svc-row { background: hsl(var(--background)); padding: 40px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .svc-row { grid-template-columns: 1fr 2fr; } }
.svc-row h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.svc-row .num { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: hsl(var(--muted-foreground)); margin-bottom: 12px; }
.svc-row p { margin-top: 12px; font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.svc-row ul { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; }
@media (min-width: 640px) { .svc-row ul { grid-template-columns: 1fr 1fr; } }
.svc-row li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: hsla(var(--foreground) / 0.85); }
.addons { margin-top: 40px; border: 1px solid hsl(var(--border)); }
.addons .row { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 56px; border-bottom: 1px solid hsl(var(--border)); font-size: 14px; }
.addons .row:last-child { border-bottom: 0; }
.addons .row .price { font-weight: 500; font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; color: hsla(var(--foreground) / 0.9); }

/* Demo form */
.demo-grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding-top: 80px; padding-bottom: 96px; }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: 2fr 3fr; } }
.demo-left h1 { font-size: clamp(2rem, 3.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; }
.demo-left p { margin-top: 20px; font-size: 15px; color: hsl(var(--muted-foreground)); line-height: 1.6; max-width: 420px; }
.demo-bullets { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.demo-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: hsla(var(--foreground) / 0.85); }
.demo-contact { margin-top: 40px; padding-top: 32px; border-top: 1px solid hsl(var(--border)); display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.demo-contact p { display: flex; align-items: center; gap: 8px; }
.demo-card { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 500; color: hsla(var(--foreground) / 0.8); margin-bottom: 6px; }
.field .req { color: hsl(var(--destructive)); margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; padding: 0 12px; height: 44px; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); font-size: 14px; color: hsl(var(--foreground)); font-family: inherit; transition: border-color .15s; }
.field textarea { padding: 10px 12px; min-height: 100px; resize: none; }
.field select { appearance: none; padding-right: 32px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: hsla(var(--foreground) / 0.6); }
.field .err { display: block; margin-top: 4px; font-size: 12px; color: hsl(var(--destructive)); }
.submit-btn { width: 100%; padding: 14px 24px; background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .15s; }
.submit-btn:hover:not(:disabled) { opacity: 0.9; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.fine { margin-top: 12px; font-size: 11px; color: hsl(var(--muted-foreground)); text-align: center; }
.success-state { padding: 40px 0; text-align: center; }
.success-state .icon { margin: 0 auto 20px; height: 48px; width: 48px; border: 1px solid hsla(var(--success) / 0.4); background: hsla(var(--success) / 0.1); display: inline-flex; align-items: center; justify-content: center; color: hsl(var(--success)); }
.success-state h2 { font-size: 22px; font-weight: 500; }
.success-state p { margin: 12px auto 0; font-size: 14px; color: hsl(var(--muted-foreground)); max-width: 380px; }

/* Spinner */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Premium Animations & Effects */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6; /* Subtle blend */
}

/* Scroll Spiralling Circle */
#scroll-circle {
  position: fixed;
  top: -100px; /* Start hidden above */
  left: 50%;
  width: 160px;
  height: 160px;
  margin-left: -80px; /* Center horizontally */
  z-index: -1;
  pointer-events: none;
  color: hsla(var(--primary) / 0.15); /* Very subtle primary color */
  transition: transform 0.1s linear, opacity 0.3s ease;
  will-change: transform;
}

html.dark #scroll-circle {
  color: hsla(var(--primary) / 0.25); /* Slightly more visible in dark mode */
}

/* Scroll Reveal Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
