/* Vigod Labs — clean studio.
   Spacious, calm, two-lime split accent (refined mark + radioactive CTA).
   Single typeface (Inter). Dark canvas. Orbit Dial brand mark. */

:root {
  --bg: #090b0a;
  --surface: #111411;
  --surface-2: #17191a;
  --ink: #f5f5f0;
  --muted: #a8aaa3;
  --faint: #6a6a70;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --a: #b7f12d;        /* refined lime — logo mark, accents, small labels, links */
  --a-ink: #0c1402;
  --cta: #c6ff33;      /* radioactive lime — primary CTA buttons only */
  --cta-ink: #0c1402;

  --t-velocity: #6ea8ff;
  --t-jelly: #f2b24a;
  --t-caffeine: #d68a5c;
  --t-orbit: #9a8cff;

  --f: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(160%) blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 400; font-size: 24px; letter-spacing: -0.02em; }
.brand svg { width: 52px; height: 52px; color: var(--a); margin-top: -8px; }
.brand-text { display: flex; flex-direction: column; gap: 6px; }
.brand-name { line-height: 1; }
.brand-name b { font-weight: 800; }
.brand-tag { font-size: 8.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--cta-ink); background: var(--cta); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: filter .15s; }
.nav-links .btn:hover { filter: brightness(1.08); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; }
.hero h1 { font-weight: 800; font-size: clamp(46px, 7.2vw, 84px); line-height: 0.98; letter-spacing: -0.035em; max-width: 13ch; }
.hero h1 .lime { color: var(--a); }
.hero p { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 46ch; margin-top: 30px; line-height: 1.5; }
.hero .scroll { display: inline-block; margin-top: 42px; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 2px solid var(--a); padding-bottom: 4px; }

/* ---------- Product sections ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; padding: 76px 0; }
.product + .product { border-top: 1px solid var(--line); }
.product:nth-of-type(even) .p-visual { order: -1; }
.reach-tag { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--a); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.p-num { font-size: 14px; color: var(--faint); font-weight: 500; letter-spacing: 0.05em; margin-bottom: 14px; }
.p-text h2 { font-weight: 800; font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.04; }
.p-tagline { font-size: clamp(17px, 2vw, 21px); color: var(--ink); margin-top: 12px; font-weight: 500; }
.p-text p { font-size: 16px; color: var(--muted); line-height: 1.6; margin-top: 20px; max-width: 46ch; }
.p-cta { display: inline-flex; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.p-cta .primary { color: var(--cta-ink); background: var(--cta); padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: filter .15s; }
.p-cta .primary:hover { filter: brightness(1.08); }
.p-cta .ghost { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.p-cta .ghost:hover { color: var(--ink); }

/* visual panel */
.p-visual { position: relative; }
.surface { position: relative; height: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; }

/* Velocity */
.v-screen { position: absolute; inset: 34px; background: #08080a; border: 1px solid var(--line); border-radius: 16px; }
.v-bar { position: absolute; left: 58px; right: 58px; bottom: 62px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.14); }
.v-bar i { position: absolute; left: 0; top: 0; height: 5px; width: 56%; background: var(--a); border-radius: 3px; }
.v-bar b { position: absolute; left: 56%; top: 50%; transform: translate(-50%,-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--a); }
.v-hud { position: relative; display: flex; align-items: center; gap: 16px; background: rgba(18,18,20,0.86); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 20px; }
.v-hud .ar { color: var(--muted); font-size: 16px; }
.v-hud .sp { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.v-hud .lb { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }

/* JellyBar */
.j-bar { position: relative; display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.jb-icon { width: 42px; height: 34px; display: flex; align-items: center; justify-content: center; color: #d8d4c8; flex: none; transition: transform 0.4s cubic-bezier(0.33, 0, 0.2, 1); will-change: transform; }
.jb-icon svg { width: 23px; height: 23px; }
.jb-icon.grabbed { color: #fff; }
/* cursor shares the icon's exact transition so it stays locked to the icon while dragging */
.jb-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition: transform 0.4s cubic-bezier(0.33, 0, 0.2, 1), opacity 0.25s ease; z-index: 5; }
.jb-ripple { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--a); opacity: 0; pointer-events: none; z-index: 4; }
.jb-ripple.go { animation: jbripple 0.55s ease-out; }
@keyframes jbripple { 0% { opacity: 0.85; transform: scale(0.3); } 100% { opacity: 0; transform: scale(2.7); } }

/* CaffeineTimer */
.c-stack { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.c-cup { color: var(--a); }
.c-menu { width: 220px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; }
.c-mi { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 7px; color: #cfcdc6; font-size: 14px; }
.c-mi.on { background: rgba(183,241,45,0.12); color: var(--ink); }
.c-mi.on .ct { color: var(--a); font-weight: 500; }
.c-div { height: 1px; background: var(--line); margin: 6px 10px; }
.c-mi.stop { color: var(--muted); }

/* Orbit ring */
.o-ring { width: 280px; height: 280px; }

/* ---------- Closing ---------- */
.closing { padding: 100px 0; text-align: center; border-top: 1px solid var(--line); }
.closing h2 { font-weight: 800; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; max-width: 20ch; margin: 0 auto; }
.closing p { font-size: 17px; color: var(--muted); margin-top: 18px; max-width: 50ch; margin-left: auto; margin-right: auto; line-height: 1.6; }
.closing .mail { display: inline-block; margin-top: 30px; color: var(--a); font-weight: 600; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--faint); }
.foot-links { display: flex; gap: 24px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ---------- Real product assets ---------- */
.app-badge { width: 46px; height: 46px; border-radius: 11px; display: block; margin-bottom: 20px; }
.app-badge-lg { width: 58px; height: 58px; border-radius: 14px; display: block; }
.surface img.shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.surface img.contain { width: 100%; height: 100%; object-fit: contain; padding: 26px; display: block; }
.shot-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; }
.shot-frame img { width: 100%; height: auto; display: block; }

/* ---------- Subpage components ---------- */
.crumb { font-size: 13px; color: var(--faint); margin: 8px 0 24px; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 9px; opacity: 0.6; }

.page-hero { padding: 52px 0 16px; }
.page-hero .reach-tag { } /* reuse hero accent tag */
.page-hero h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 70px); line-height: 0.98; letter-spacing: -0.035em; max-width: 16ch; }
.page-hero h1 .lime { color: var(--a); }
.page-hero .tagline { font-size: clamp(18px, 2.2vw, 24px); color: var(--ink); font-weight: 500; margin-top: 16px; }
.page-hero .intro { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 56ch; margin-top: 22px; line-height: 1.55; }

.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 24px 0 8px; }
.product-hero .surface { height: 380px; }

.section { padding: 58px 0; border-top: 1px solid var(--line); }
.section.flush { border-top: none; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a); margin-bottom: 14px; }
.section > h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; }
.section > .sub { font-size: 17px; color: var(--muted); margin-top: 14px; max-width: 56ch; line-height: 1.55; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 24px; margin-top: 38px; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--a); margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.55; margin-top: 8px; }

.steps { display: grid; gap: 22px; margin-top: 36px; max-width: 760px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: var(--a); }
.step h3 { font-weight: 700; font-size: 17px; }
.step p { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.55; }

.faq { margin-top: 34px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 500; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--a); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-top: 12px; max-width: 70ch; }

.download { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; margin-top: 38px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.download .dl-info h3 { font-weight: 700; font-size: 19px; }
.download .dl-info p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.download .dl-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-lg { color: var(--cta-ink); background: var(--cta); padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; transition: filter .15s; }
.btn-lg:hover { filter: brightness(1.08); }
.btn-lg.disabled { background: var(--surface-2); color: var(--faint); border: 1px solid var(--line); pointer-events: none; }
.btn-outline { border: 1px solid var(--line-2); color: var(--ink); padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: border-color .15s; }
.btn-outline:hover { border-color: var(--a); }
.code-pill { font-family: ui-monospace, "SF Mono", monospace; font-size: 13px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; display: inline-block; }

.prose { max-width: 720px; }
.prose h2 { font-weight: 700; font-size: 23px; letter-spacing: -0.02em; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 18px; margin-top: 26px; }
.prose p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-top: 14px; }
.prose ul { margin-top: 14px; padding-left: 22px; }
.prose li { font-size: 16px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.prose a { color: var(--a); }
.prose .updated { font-size: 13px; color: var(--faint); margin-top: 6px; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.contact-card .ic { color: var(--a); margin-bottom: 14px; display: block; }
.contact-card h3 { font-weight: 700; font-size: 18px; }
.contact-card p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.5; }
.contact-card a.link { color: var(--a); font-weight: 600; font-size: 15px; display: inline-block; margin-top: 12px; }

.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-size: clamp(64px, 13vw, 128px); font-weight: 800; letter-spacing: -0.04em; color: var(--a); line-height: 1; }
.notfound h1 { font-weight: 800; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; margin-top: 18px; }
.notfound p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.notfound .links { margin-top: 30px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 840px) {
  .product-hero { grid-template-columns: 1fr; gap: 32px; }
  .product-hero .surface { height: 300px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .o-sweep { transform-box: fill-box; transform-origin: center; animation: sweep 9s linear infinite; }
  @keyframes sweep { to { transform: rotate(360deg); } }
  .o-node { transform-box: fill-box; transform-origin: center; animation: bloom 0.7s both; }
  .o-hub { transform-box: fill-box; transform-origin: center; animation: bloom 0.7s both 0.04s; }
  .o-node.q0 { animation-delay: 0.18s; }
  .o-node.q1 { animation-delay: 0.30s; }
  .o-node.q2 { animation-delay: 0.42s; }
  .o-node.q3 { animation-delay: 0.54s; }
  @keyframes bloom { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 840px) {
  .product { grid-template-columns: 1fr; gap: 32px; padding: 54px 0; }
  .product:nth-of-type(even) .p-visual { order: 0; }
  .surface { height: 300px; }
  .hero { padding: 64px 0 72px; }
}
@media (max-width: 520px) {
  .nav-links .opt { display: none; }
  .wrap { padding: 0 24px; }
}

/* ---------- Background ambience: diffused curved gradient over the flat black ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(140% 92% at 50% -20%, rgba(183,241,45,0.15) 0%, rgba(183,241,45,0.05) 32%, transparent 62%),
    radial-gradient(70% 55% at 88% 0%, rgba(110,168,255,0.10) 0%, transparent 55%),
    radial-gradient(55% 50% at 6% 22%, rgba(183,241,45,0.05) 0%, transparent 60%);
}

/* ---------- Apps dropdown ---------- */
.nav-apps { position: relative; }
.nav-apps .apps-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: default; }
.nav-apps .caret { font-size: 10px; opacity: 0.7; transition: transform 0.2s; }
.nav-apps:hover .caret, .nav-apps:focus-within .caret { transform: rotate(180deg); }
.apps-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 22px 56px rgba(0,0,0,0.5); z-index: 70;
  opacity: 0; visibility: hidden; transition: opacity 0.16s ease, transform 0.16s ease;
}
/* invisible bridge across the gap so the cursor keeps hover moving into the menu */
.apps-menu::before { content: ""; position: absolute; left: -12px; right: -12px; top: -16px; height: 18px; }
.nav-apps:hover .apps-menu, .nav-apps:focus-within .apps-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.apps-menu a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--muted); }
.apps-menu a:hover { background: var(--surface-2); color: var(--ink); }
.apps-menu a img { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.apps-menu a .mi { margin-left: auto; font-size: 11.5px; color: var(--faint); }

/* ---------- Diffused lime glow on the product cards (strongest on Velocity) ---------- */
.surface { box-shadow: 0 0 46px -16px rgba(183,241,45,0.22); }
.surface:has(img.shot), .surface:has(.vfx) {
  border-color: rgba(183,241,45,0.34);
  box-shadow: 0 0 74px -6px rgba(183,241,45,0.34), 0 0 165px -30px rgba(183,241,45,0.26);
}

/* ---------- Scroll reveal (slide + dissolve) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(46px) scale(0.984); transition: opacity 0.8s ease, transform 0.85s cubic-bezier(0.2,0.7,0.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Velocity interactive speed HUD ---------- */
.vfx { position: absolute; inset: 0; }
.vfx-photo { position: absolute; inset: 0; background: #08080a url('/assets/velocity/desert-source.jpg') no-repeat; background-size: cover; background-position: center 46%; }
.vfx-warm, .vfx-scrim, .vfx-vig { position: absolute; inset: 0; pointer-events: none; }
.vfx-warm { background: linear-gradient(110deg, rgba(255,150,60,0) 35%, rgba(255,138,46,0.16) 100%); mix-blend-mode: soft-light; }
.vfx-scrim { background: linear-gradient(180deg, rgba(8,8,12,0.5) 0%, rgba(8,8,12,0.08) 24%, transparent 42%); }
.vfx-vig { background: radial-gradient(ellipse 92% 84% at 50% 48%, transparent 52%, rgba(0,0,0,0.4) 100%); }
.vfx-hud {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 17px; padding: 11px 22px; border-radius: 999px;
  background: rgba(20,20,23,0.72); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
/* icons bold + large, close to the speed value — matches the real overlay */
.vfx-hud button { background: none; border: 0; font-family: inherit; cursor: pointer; line-height: 1; padding: 2px 4px; border-radius: 8px; color: #eaeaee; font-size: 25px; font-weight: 600; transition: color 0.15s, background 0.15s, transform 0.08s; }
.vfx-hud button:hover { color: #fff; background: rgba(255,255,255,0.10); }
.vfx-hud button:active { transform: scale(0.9); }
.vfx-dn, .vfx-up { font-size: 27px; }
.vfx-spd { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; min-width: 90px; text-align: center; font-variant-numeric: tabular-nums; display: inline-block; }
.vfx-spd.pulse { animation: vfxpulse 0.42s ease; }
@keyframes vfxpulse { 0% { color: #5b9dff; transform: scale(1.16); } 100% { color: #fff; transform: scale(1); } }

/* ---------- "Free" emphasis ---------- */
.hero p .lime { color: var(--a); font-weight: 500; }
.free-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a); background: rgba(183,241,45,0.13); border: 1px solid rgba(183,241,45,0.30); padding: 5px 12px; border-radius: 999px; }

/* ---------- Orbit ring: transparent + pop-open (like the app) ---------- */
.surface img.orbit-pop { width: 100%; height: 100%; object-fit: contain; padding: 28px; display: block; transform-origin: center; }
/* pop is triggered on view by reveal.js (.play); homepage adds .twice for two pops */
.surface img.orbit-pop.play { animation: orbitpop1 1.5s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
.surface img.orbit-pop.play.twice { animation: orbitpop2 5.2s ease-in-out both; }
@keyframes orbitpop1 {
  0%   { opacity: 0; transform: scale(0.2); }
  60%  { opacity: 1; transform: scale(1.06); }
  80%  { transform: scale(0.99); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes orbitpop2 {
  0%   { opacity: 0; transform: scale(0.2); }
  9%   { opacity: 1; transform: scale(1.06); }
  13%  { transform: scale(1); }
  40%  { opacity: 1; transform: scale(1); }
  48%  { opacity: 0; transform: scale(0.2); }
  56%  { opacity: 0; transform: scale(0.2); }
  64%  { opacity: 1; transform: scale(1.06); }
  68%  { transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
