:root{
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --card: rgba(255,255,255,0.6);
  --stroke: rgba(10,10,10,0.08);
  --shadow: rgba(0,0,0,0.08);
  --accent-1: #86ffb6; /* minty lime */
  --accent-2: #2456ff; /* deep blue */
  --accent-3: #7a3cff; /* purple */
  --accent-4: #ff5faf; /* pink */
}
@media (prefers-color-scheme: dark){
  :root{
    --bg: #0a0a0a;
    --text: #f5f5f5;
    --muted: #a1a1a1;
    --card: rgba(18,18,18,0.6);
    --stroke: rgba(255,255,255,0.08);
    --shadow: rgba(0,0,0,0.5);
  }
}
*{ box-sizing: border-box; }
html{ color-scheme: light dark; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, system-ui; line-height:1.6; }
body{ overflow-x:hidden; }
img{ max-width:100%; height:auto; }
a{ color:inherit; }

/* Page scale wrapper for mobile */
.page-scale{ transform-origin: top left; }

.container{ width:min(1120px, 92%); margin-inline:auto; }

.site-header{ position:sticky; top:0; backdrop-filter:saturate(180%) blur(14px); border-bottom:1px solid var(--stroke); z-index:20; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); }
.brand-icon{ border-radius:14px; box-shadow:0 8px 24px var(--shadow); }
.brand-name{ font-weight:700; font-size:18px; letter-spacing:0.3px; }
.nav{ display:flex; gap:18px; }
.nav-link{ text-decoration:none; color:var(--muted); padding:8px 10px; border-radius:10px; }
.nav-link:hover, .nav-link.active{ color:var(--text); background:linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0)); }

.glass{ background: var(--card); border:1px solid var(--stroke); box-shadow:0 10px 30px var(--shadow); border-radius:18px; }

.hero{ padding:60px 0 30px; }
.hero-inner{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:28px; align-items:center; }
.hero-copy .display{ font-size: clamp(30px, 4vw, 52px); line-height:1.1; margin:0 0 12px; }
.lead{ font-size:18px; color:var(--muted); margin:0 0 18px; }
.cta-row{ display:flex; gap:12px; margin:20px 0; }
.btn{ display:inline-block; padding:12px 16px; border-radius:14px; text-decoration:none; font-weight:600; transition:transform .15s ease, box-shadow .15s ease; }
.btn:hover{ transform:translateY(-1px); }
.btn.primary{ color:#0a0a0a; background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-4)); border:0; }
.btn.ghost{ color:var(--text); border:1px solid var(--stroke); background:transparent; }

.hero-art{ display:flex; align-items:center; justify-content:center; padding:20px; }
.hero-icon{ width:210px; height:210px; border-radius:36px; box-shadow:0 20px 50px var(--shadow); }

/* Hover animations for icons */
.brand-icon, .hero-icon{ transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; will-change: transform; }
.brand:hover .brand-icon, .foot-brand:hover .brand-icon{ transform: translateY(-2px) scale(1.05) rotate(-2deg); box-shadow:0 14px 40px var(--shadow); }
.hero-art:hover .hero-icon{ transform: translateY(-4px) scale(1.04) rotate(-1.5deg); box-shadow:0 28px 70px var(--shadow); }

.section{ padding:48px 0; }
.section.alt{ background:linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0)); }
.section-title{ font-size:28px; margin:0 0 6px; }
.section-subtitle{ color:var(--muted); margin:0 0 18px; }

.feature-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.card{ padding:18px; }
.card h3{ margin:0 0 6px; font-size:20px; }
.card p{ margin:0 0 10px; color:var(--muted); }
.card-list{ margin:0; padding-left:18px; }

.integration-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.integration-item{ padding:16px; }

.bullets{ margin:0; padding-left:18px; }

.faq .faq-item{ padding:14px 16px; margin:10px 0; }
.faq summary{ cursor:pointer; font-weight:600; }
.faq p{ margin:10px 0 0; color:var(--muted); }

.viz-card{ padding:14px; }
.viz{ width:100%; height:220px; display:block; }

.site-footer{ border-top:1px solid var(--stroke); padding:20px 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.foot-brand{ display:flex; align-items:center; gap:8px; color:var(--muted); }
.foot-nav{ display:flex; gap:14px; }
.foot-nav a{ white-space: nowrap; }
.foot-copy{ color:var(--muted); }

.prose h1, .prose h2, .prose h3{ margin-top:20px; margin-bottom:8px; }
.prose p{ margin:10px 0; }
.prose ul{ margin:12px 0; }
.muted{ color:var(--muted); }

.gradient-text{
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradient-shift 12s ease infinite;
}

@keyframes gradient-shift{
  0%{ background-position: 0% 0; }
  50%{ background-position: 100% 0; }
  100%{ background-position: 0% 0; }
}

/* Float animation for hero icon */
.hero-icon{ animation: floatUp 6s ease-in-out infinite; }
@keyframes floatUp{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-6px) scale(1.01); }
}

/* Scroll reveal base */
.reveal{ opacity:0; transform: translateY(14px); }
.reveal.revealed{ opacity:1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .gradient-text{ animation: none; }
  .hero-icon{ animation: none; }
  .reveal{ opacity:1; transform:none; }
}

@media (max-width: 1000px){
  .hero-inner{ grid-template-columns: 1fr; }
  .feature-grid, .integration-grid{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; }
}

/* Mobile scaling: 75% with width compensation and safe-area padding */
@media (max-width: 768px){
  html, body{ min-height: 0; }
  .page-scale{ transform: none; width: 100%; }
  .footer-inner{ gap:10px 14px; }
}
