:root{
  --bg: #08090a;
  --bg-2: #0c0d0f;
  --panel: #121314;
  --panel-2: #17191a;
  --panel-border: #242628;
  --off-cell: #17191a;
  --off-cell-border: #232527;
  --text: #eaf2ec;
  --muted: #8a8a8a;
  --muted-2: #55575a;
  --blue: #529cca;
  --danger: #ff6b5e;
  --amber: #e0a850;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family:'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,p{ margin:0; }
code{ font-family: ui-monospace, 'SF Mono', Menlo, monospace; background:var(--panel-2); border:1px solid var(--panel-border); border-radius:5px; padding:1px 6px; font-size:0.9em; }

::selection{ background: rgba(82,156,202,0.35); color:#fff; }

/* ---------- background glow ---------- */
.bg-glow{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(560px 420px at 18% -6%, rgba(82,156,202,0.16), transparent 60%),
    radial-gradient(640px 480px at 88% 8%, rgba(199,125,210,0.10), transparent 60%),
    var(--bg);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:inherit; font-weight:600; font-size:15px;
  padding:13px 22px; border-radius:999px;
  text-decoration:none; cursor:pointer; border:1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease), background .18s var(--ease);
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px) scale(0.99); }
.btn-primary{
  background: linear-gradient(180deg,#f5f7f6,#dfe6e2);
  color:#0a0a0a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 30px -12px rgba(82,156,202,0.35);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 14px 34px -10px rgba(82,156,202,0.5); }
.btn-ghost{
  background: rgba(255,255,255,0.03);
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.06); border-color:#3a3d40; }
.btn-small{ padding:9px 16px; font-size:13.5px; }
.btn-large{ padding:17px 30px; font-size:17px; }

/* ---------- header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(8,9,10,0.55);
  border-bottom:1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled{ border-bottom-color: var(--panel-border); background: rgba(8,9,10,0.82); }
.site-header.nav-open{ background: var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none; border-bottom-color: var(--panel-border); }
.header-inner{
  max-width: var(--maxw); margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; gap:24px;
}
.brand{ display:flex; align-items:center; gap:9px; text-decoration:none; font-weight:800; font-size:17px; color:var(--text); margin-right:auto; }
.brand-mark{ width:26px; height:26px; border-radius:7px; }
.site-nav{ display:flex; gap:26px; }
.site-nav a{ text-decoration:none; color:var(--muted); font-size:14px; font-weight:500; transition: color .15s ease; }
.site-nav a:hover{ color: var(--text); }
.header-cta{ margin-left:6px; }

.nav-toggle{ display:none; flex-direction:column; gap:4px; width:32px; height:32px; align-items:center; justify-content:center; background:none; border:none; cursor:pointer; }
.nav-toggle span{ width:18px; height:1.5px; background:var(--text); border-radius:2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1){ transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-5.5px) rotate(-45deg); }
.mobile-nav{ display:none; flex-direction:column; gap:2px; padding:8px 24px 18px; background: var(--bg); box-shadow: 0 20px 30px -20px rgba(0,0,0,0.6); isolation:isolate; position:relative; z-index:1; }
.mobile-nav a:not(.btn){ padding:12px 4px; text-decoration:none; color:var(--text); font-size:15px; border-top:1px solid var(--panel-border); }
.mobile-nav .btn{ margin-top:10px; }

/* ---------- hero ---------- */
.hero{
  max-width: var(--maxw); margin:0 auto; padding: 168px 24px 90px;
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap:40px; align-items:center;
}
.eyebrow{
  display:inline-block; font-size:12.5px; font-weight:600; letter-spacing:0.02em;
  color: var(--blue); background: rgba(82,156,202,0.12); border:1px solid rgba(82,156,202,0.28);
  padding:5px 12px; border-radius:999px; margin-bottom:22px;
}
.hero h1{
  font-size: clamp(38px, 5vw, 60px); line-height:1.05; font-weight:800; letter-spacing:-0.02em;
  color: #f6f8f7;
}
.hero-sub{ margin-top:22px; font-size:17px; line-height:1.6; color:var(--muted); max-width:480px; }
.hero-actions{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-meta{ margin-top:18px; font-size:13px; color:var(--muted-2); }

/* ---------- mock app window (hero visual) ---------- */
.hero-visual{ position:relative; }
.mock-glow{
  position:absolute; inset:-40px; z-index:-1; border-radius:40px; filter:blur(50px);
  background: radial-gradient(closest-side, rgba(82,156,202,0.28), transparent 70%);
}
.mock-window{
  background: var(--panel); border:1px solid var(--panel-border); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow:hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50%{ transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(-10px); }
}
.mock-app{ display:flex; height: 420px; font-size:11px; }
.mock-sidebar{ width:150px; background: var(--bg-2); border-right:1px solid var(--panel-border); padding:14px 10px; flex-shrink:0; }
.mock-sb-brand{ font-weight:800; font-size:13px; padding:2px 6px 14px; }
.mock-sb-search{ background:var(--off-cell); border:1px solid var(--off-cell-border); border-radius:6px; padding:6px 8px; color:var(--muted-2); font-size:10.5px; margin-bottom:10px; }
.mock-sb-item{ display:flex; align-items:center; gap:7px; padding:6px 7px; border-radius:6px; color:var(--muted); font-size:11px; }
.mock-sb-item.active{ background: var(--panel-2); color:var(--text); }
.mock-sb-dot{ font-size:11px; }
.mock-main{ flex:1; display:flex; flex-direction:column; min-width:0; }
.mock-titlebar{ display:flex; gap:6px; padding:10px 14px; }
.mock-dot{ width:9px; height:9px; border-radius:50%; }
.mock-dot.red{ background:#ff5f57; } .mock-dot.yellow{ background:#febc2e; } .mock-dot.green{ background:#28c840; }
.mock-page{ padding:6px 20px 20px; flex:1; overflow:hidden; }
.mock-page-title{ font-size:19px; font-weight:800; margin-bottom:14px; }

/* heatmap (reused in hero + feature) */
.mock-heatmap{ display:grid; grid-template-columns: repeat(26, 1fr); gap:3px; margin-bottom:16px; }
.mock-heatmap span{ aspect-ratio:1; border-radius:2px; background: var(--off-cell); border:1px solid var(--off-cell-border); }
.mock-heatmap.large{ grid-template-columns: repeat(30, 1fr); gap:4px; }

.mock-row{ display:flex; gap:12px; }
.mock-card{ background: var(--panel-2); border:1px solid var(--panel-border); border-radius: var(--radius-sm); padding:12px 14px; }
.mock-checklist{ flex:1.4; }
.mock-card-title{ font-size:11.5px; font-weight:700; margin-bottom:9px; color:var(--text); }
.mock-check{ display:flex; align-items:center; gap:7px; font-size:11px; color:var(--muted); padding:3px 0; }
.mock-check .box{ width:12px; height:12px; border-radius:3px; border:1.4px solid var(--muted-2); flex-shrink:0; }
.mock-check .box.done{ background: var(--blue); border-color: var(--blue); }
.mock-ring{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; }
.ring-svg{ width:56px; height:56px; }
.ring-label{ position:absolute; font-size:13px; font-weight:800; display:flex; flex-direction:column; align-items:center; }
.ring-label span{ font-size:8px; font-weight:500; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; }

/* ---------- strip ---------- */
.strip{
  max-width: var(--maxw); margin:0 auto; padding: 26px 24px 60px;
  display:flex; flex-wrap:wrap; gap:14px 34px; border-top:1px solid var(--panel-border);
}
.strip-item{ font-size:13.5px; color:var(--muted); }
.strip-item strong{ color:var(--text); }

/* ---------- features ---------- */
.features{ max-width: var(--maxw); margin:0 auto; padding: 40px 24px 30px; display:flex; flex-direction:column; gap:130px; }
.feature-row{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap:56px; align-items:center; }
.feature-row.reverse{ grid-template-columns: 1.15fr 0.85fr; }
.feature-row.reverse .feature-copy{ order:2; }
.feature-row.reverse .feature-visual{ order:1; }
.feature-tag{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  color: var(--blue); margin-bottom:14px;
}
.feature-tag.center{ display:block; text-align:center; }
.feature-copy h2{ font-size: clamp(24px, 2.6vw, 32px); font-weight:800; letter-spacing:-0.01em; line-height:1.2; margin-bottom:16px; }
.feature-copy p{ font-size:15.5px; line-height:1.65; color:var(--muted); max-width:440px; }
.feature-visual{ position:relative; }
.feature-visual .mock-card{ padding:20px; border-radius: var(--radius-md); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }

/* block menu mock */
.mock-blockmenu{ max-width:300px; margin:0 auto; }
.mock-blockmenu-input{ font-size:14px; color:var(--muted); margin-bottom:10px; }
.mock-blockmenu-input .caret{ display:inline-block; width:1.5px; height:13px; background:var(--text); vertical-align:middle; animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.mock-blockmenu-row{ display:flex; align-items:center; gap:10px; padding:8px 9px; border-radius:7px; font-size:13px; color:var(--muted); }
.mock-blockmenu-row.hi{ background: rgba(82,156,202,0.12); color:var(--text); }
.mock-blockmenu-row span{ font-size:14px; }

/* heatmap feature card */
.mock-heatmap-card{ max-width:460px; margin:0 auto; }

/* board + calendar */
.two-up{ display:flex; gap:16px; }
.two-up .mock-card{ flex:1; }
.mock-board{ display:flex; gap:10px; padding:16px !important; }
.board-col{ flex:1; min-width:0; }
.board-col-title{ font-size:10.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:8px; }
.board-card{ background: var(--off-cell); border:1px solid var(--off-cell-border); border-radius:6px; padding:8px 9px; font-size:11px; margin-bottom:7px; color:var(--text); }
.board-card.accent{ border-color: rgba(82,156,202,0.4); box-shadow: 0 0 0 1px rgba(82,156,202,0.15) inset; }
.board-card.muted{ color:var(--muted); text-decoration:line-through; text-decoration-color:var(--muted-2); }
.mock-calendar{ display:flex; align-items:center; }
.cal-grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap:6px; width:100%; }
.cal-cell{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; font-size:10.5px; border-radius:6px; background:var(--off-cell); border:1px solid var(--off-cell-border); color:var(--muted); position:relative; }
.cal-cell.dim{ opacity:0.35; }
.cal-cell.today{ background:var(--blue); border-color:var(--blue); color:#04121b; font-weight:700; }
.cal-cell.has-dot::after{ content:''; position:absolute; bottom:3px; width:3px; height:3px; border-radius:50%; background:var(--amber); }

/* recipe */
.mock-recipe{ max-width:340px; margin:0 auto; padding:0 !important; overflow:hidden; }
.recipe-photo{ height:130px; background: linear-gradient(135deg, #2c4a5c, #17191a 70%); }
.recipe-body{ padding:16px; }
.macro-row{ display:flex; flex-direction:column; gap:8px; margin:12px 0 14px; }
.macro{ font-size:10.5px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.macro-bar{ display:block; height:5px; border-radius:4px; background: var(--off-cell); position:relative; overflow:hidden; }
.macro-bar::after{ content:''; position:absolute; inset:0; width:var(--w); background:var(--c); border-radius:4px; transform-origin:left; transform:scaleX(0); transition: transform 1s var(--ease); }
.in-view .macro-bar::after{ transform:scaleX(1); }
.mock-scan{ font-size:11px; color:var(--muted); background:var(--off-cell); border:1px dashed var(--off-cell-border); border-radius:7px; padding:9px 10px; }

/* messages */
.mock-messages{ max-width:340px; margin:0 auto; display:flex; flex-direction:column; gap:9px; }
.msg-row{ display:flex; }
.msg-row.me{ justify-content:flex-end; }
.msg-bubble{ background:var(--off-cell); border:1px solid var(--off-cell-border); border-radius:14px; padding:9px 13px; font-size:12.5px; max-width:80%; line-height:1.4; }
.msg-bubble.accent{ background: rgba(82,156,202,0.16); border-color: rgba(82,156,202,0.35); }

/* ---------- offline band ---------- */
.offline-band{ padding:80px 24px; background: linear-gradient(180deg, transparent, rgba(82,156,202,0.05), transparent); border-top:1px solid var(--panel-border); border-bottom:1px solid var(--panel-border); }
.offline-inner{ max-width: var(--maxw); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.offline-copy h2{ font-size: clamp(24px, 2.6vw, 32px); font-weight:800; letter-spacing:-0.01em; margin-bottom:14px; max-width:520px; }
.offline-copy p{ font-size:15.5px; color:var(--muted); max-width:480px; line-height:1.6; }
.sync-pill{
  display:flex; align-items:center; gap:9px; background:var(--panel); border:1px solid var(--panel-border);
  border-radius:999px; padding:11px 18px; font-size:13px; font-weight:600; flex-shrink:0;
}
.sync-dot{ width:8px; height:8px; border-radius:50%; background:#3ecf7e; box-shadow: 0 0 0 0 rgba(62,207,126,0.5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(62,207,126,0.5); }
  70%{ box-shadow: 0 0 0 8px rgba(62,207,126,0); }
  100%{ box-shadow: 0 0 0 0 rgba(62,207,126,0); }
}

/* ---------- personalize ---------- */
.personalize{ max-width:720px; margin:0 auto; padding:100px 24px; text-align:center; }
.personalize h2{ font-size: clamp(24px, 2.6vw, 32px); font-weight:800; letter-spacing:-0.01em; margin:14px 0 12px; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.swatch-row{ display:flex; gap:14px; justify-content:center; margin-top:34px; }
.swatch{
  width:38px; height:38px; border-radius:50%; background:var(--sw); border:2px solid transparent;
  cursor:pointer; box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.swatch:hover{ transform: scale(1.12); }
.swatch.active{ box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; color: var(--sw); }

/* ---------- download cta ---------- */
.download-cta{ max-width:640px; margin:0 auto; padding:120px 24px 140px; text-align:center; }
.cta-icon{ width:64px; height:64px; border-radius:16px; margin:0 auto 26px; box-shadow: 0 20px 40px -18px rgba(82,156,202,0.5); }
.download-cta h2{ font-size: clamp(30px, 4vw, 44px); font-weight:800; letter-spacing:-0.02em; margin-bottom:10px; }
.download-cta p{ font-size:16px; color:var(--muted); margin-bottom:32px; }
.download-meta{ margin-top:16px !important; font-size:12.5px; color:var(--muted-2) !important; }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--panel-border); padding:36px 24px; }
.footer-inner{ max-width: var(--maxw); margin:0 auto; display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.footer-nav{ display:flex; gap:22px; margin-right:auto; }
.footer-nav a{ text-decoration:none; color:var(--muted); font-size:13.5px; }
.footer-nav a:hover{ color:var(--text); }
.footer-copy{ font-size:12.5px; color:var(--muted-2); }

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.in-view{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .mock-window{ animation:none; }
  .sync-dot{ animation:none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .hero{ grid-template-columns:1fr; padding-top:130px; text-align:left; }
  .feature-row, .feature-row.reverse{ grid-template-columns:1fr; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-visual{ order:initial; }
  .feature-copy p{ max-width:none; }
  .offline-inner{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 720px){
  .site-nav, .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .mobile-nav.open{ display:flex; }
  .mock-app{ height:340px; }
  .mock-sidebar{ width:110px; }
  .two-up{ flex-direction:column; }
  .features{ gap:90px; }
}
