/* ==========================================================================
   Nana's — nanas.pro
   Apple / MacPaw-style, dark. SF Pro, deep navy→violet, grandma mascot.
   Spacious, immersive, premium. Colours sampled from the mascot render.
   ========================================================================== */

:root {
  /* Deep navy-indigo, matched to the mascot's background */
  --bg:        #0d0a1a;
  --bg-2:      #120e24;
  --bg-3:      #171130;
  --surface:   #18122e;
  --surface-2: #1f1740;
  --card:      rgba(255,255,255,0.035);
  --card-2:    rgba(255,255,255,0.06);

  /* Text */
  --ink:      #f4f1ff;
  --ink-soft: #c3bce0;
  --ink-dim:  #8d86b0;
  --ink-faint:#635d85;

  /* Brand — violet/indigo with a blue + soft magenta for iridescence */
  --violet:   #a98bff;
  --violet-2: #8b6cf0;
  --indigo:   #6b5cf0;
  --blue:     #6ea8ff;
  --magenta:  #d98cf0;

  --line:   rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.16);

  --grad-cta:   linear-gradient(120deg, #9a7bff, #6b5cf0);
  --grad-iris:  linear-gradient(120deg, #6ea8ff, #a98bff 50%, #d98cf0);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Immersive atmosphere — deep, soft, matched to the mascot (not a neon blob) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(120,90,240,0.35), transparent 60%),
    radial-gradient(50% 40% at 85% 8%, rgba(110,168,255,0.14), transparent 60%),
    radial-gradient(60% 50% at 12% 30%, rgba(217,140,240,0.10), transparent 60%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(169,139,255,0.32); }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.sprite { position: absolute; width: 0; height: 0; }

/* ---- Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; }
.section { padding: 130px 0; }
.section-sm { padding: 80px 0; }

h1, h2, h3 { font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); line-height: 1.55; font-weight: 400; }
.muted { color: var(--ink-dim); }

.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet);
  margin-bottom: 18px;
}
.iris-text { background: var(--grad-iris); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin-bottom: 18px; }

/* ---- Buttons — pills, MacPaw-style --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.2s;
}
.btn .ic { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 12px 34px -10px rgba(120,90,240,0.7); }
.btn-primary:hover { box-shadow: 0 18px 46px -10px rgba(120,90,240,0.85); }
.btn-ghost { background: rgba(255,255,255,0.05); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--violet); }
.btn-lg { padding: 17px 36px; font-size: 1.06rem; }

.textlink { color: var(--violet); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.textlink .ic { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.textlink:hover .ic { transform: translateX(3px); }

/* ---- Floating pill header ------------------------------------------------ */
.site-header { position: sticky; top: 18px; z-index: 50; padding: 0 20px; }
.nav {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding: 0 12px 0 16px;
  background: rgba(24,18,46,0.6);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 16px 40px -20px rgba(0,0,0,0.8);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font-weight: 700; font-size: 1.14rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 15px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; transition: color 0.18s, background 0.18s; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-links a.cta { color: #fff; background: var(--grad-cta); font-weight: 600; margin-left: 8px; padding: 9px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .ic { width: 20px; height: 20px; }

/* ---- Apps dropdown ------------------------------------------------------- */
.has-drop { position: relative; }
.drop-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  transition: color 0.18s, background 0.18s;
}
.drop-toggle:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.drop-toggle .ic { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.has-drop.open .drop-toggle { color: var(--ink); background: rgba(255,255,255,0.06); }
.has-drop.open .drop-toggle .ic { transform: rotate(180deg); }

.drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 300px; padding: 8px;
  background: rgba(28,22,54,0.92);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.9);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
/* invisible bridge across the gap so the cursor can travel button → menu
   without losing hover (this is what made it snap shut too early) */
.drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }

/* opening is driven by JS (.open) so we control the close delay */
.has-drop.open .drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.drop-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); transition: background 0.18s; }
.drop-item:hover { background: rgba(255,255,255,0.06); }
.drop-item img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.drop-item b { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.drop-item small { display: block; font-size: 0.82rem; color: var(--ink-dim); }
.drop-soon { display: flex; align-items: center; gap: 8px; padding: 11px 10px 7px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-faint); }
.drop-soon .ic { width: 15px; height: 15px; }

/* ---- Hero (centered, CleanMyMac-style) ----------------------------------- */
.hero { text-align: center; padding: 70px 0 60px; }
.hero-icon { width: 180px; height: 180px; margin: 0 auto 8px; position: relative; }
.hero-icon img { width: 100%; height: 100%; border-radius: 40px; }
/* cut-out mascot: no tile, she just floats on the background */
.hero-icon.cutout { width: 260px; height: 260px; margin-bottom: 0; }
.hero-icon.cutout img { border-radius: 0; }

/* hover swaps the pose: one arm → both arms up */
.hero-icon.swap { cursor: pointer; }
.hero-icon.swap img {
  position: absolute; inset: 0;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.hero-icon.swap .pose-b { opacity: 0; transform: scale(0.97); }
.hero-icon.swap:hover .pose-a { opacity: 0; transform: scale(0.97); }
.hero-icon.swap:hover .pose-b { opacity: 1; transform: scale(1.03); }
.hero-icon::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,108,240,0.5), transparent 70%); z-index: -1; filter: blur(10px); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 620px; margin: 0 auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; color: var(--ink-dim); font-size: 0.9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .ic { width: 15px; height: 15px; color: var(--violet); }

/* ---- Product window showcase --------------------------------------------- */
.showcase { position: relative; }
.showcase .glow { position: absolute; inset: -6% 8% 20%; background: var(--grad-iris); filter: blur(90px); opacity: 0.28; border-radius: 50%; z-index: -1; }

.mock {
  width: 100%; max-width: 960px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden;
  background: #100c22; border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.9);
  font-size: 15px;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line); }
.mock-dots { display: flex; gap: 8px; }
.mock-dots i { width: 12px; height: 12px; border-radius: 50%; }
.mock-dots i:nth-child(1){ background:#ff5f57 } .mock-dots i:nth-child(2){ background:#febc2e } .mock-dots i:nth-child(3){ background:#28c840 }
.mock-bar .mock-title { margin-left: 6px; color: var(--ink-dim); font-weight: 500; font-size: 13px; }
.mock-body { display: grid; grid-template-columns: 190px 1fr; min-height: 400px; }
.mock-side { padding: 18px 12px; border-right: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.mock-side .mock-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 0 6px; }
.mock-side .mock-brand img { width: 26px; height: 26px; border-radius: 7px; }
.mock-side .mock-brand span { font-weight: 600; font-size: 14px; }
.mock-cap { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 8px 6px; font-weight: 600; }
.mock-nav { display: grid; gap: 2px; }
.mock-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-dim); font-size: 13px; }
.mock-nav a .ic { width: 16px; height: 16px; }
.mock-nav a.active { background: rgba(139,108,240,0.16); color: var(--ink); }
.mock-nav a.active .ic { color: var(--violet); }
.mock-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mock-gauge-row { display: flex; align-items: center; gap: 22px; }
.mock-gauge { --p: 91; position: relative; width: 132px; height: 132px; border-radius: 50%; flex: none;
  background: radial-gradient(closest-side, #100c22 78%, transparent 79%), conic-gradient(from 210deg, var(--violet), var(--magenta) calc(var(--p)*1%), rgba(255,255,255,0.07) 0);
  display: grid; place-items: center; }
.mock-gauge .g-inner b { display: block; font-size: 22px; font-weight: 700; text-align: center; }
.mock-gauge .g-inner small { display:block; text-align:center; font-size: 9px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.mock-gauge-info { display: flex; flex-direction: column; gap: 8px; }
.mock-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #34d39a; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); padding: 4px 11px; border-radius: 999px; }
.mock-chip .ic { width: 12px; height: 12px; }
.mock-gauge-info .line { font-size: 12.5px; color: var(--ink-dim); }
.mock-gauge-info .line b { color: var(--ink-soft); }
.mock-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; margin-top: 2px; }
.mock-progress i { display: block; height: 100%; width: 91%; background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.mock-smart { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--grad-cta); color: #fff; }
.mock-smart .s-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.22); display: grid; place-items: center; }
.mock-smart .s-ic .ic { width: 17px; height: 17px; stroke-width: 2; }
.mock-smart b { font-size: 14px; display: block; } .mock-smart small { font-size: 11.5px; opacity: 0.9; }
.mock-smart .arrow { margin-left: auto; } .mock-smart .arrow .ic { width: 18px; height: 18px; }
.mock-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-quick .q { padding: 14px 6px; border-radius: 11px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); text-align: center; color: var(--ink-dim); }
.mock-quick .q .ic { width: 19px; height: 19px; } .mock-quick .q .ql { font-size: 10px; margin-top: 6px; }

/* Teleprompter mock */
.mock-tp .tp-bar { justify-content: space-between; }
.mock-tp .tp-controls { display: flex; gap: 7px; }
.mock-tp .tp-controls .b { width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.06); display: grid; place-items: center; color: var(--ink-dim); }
.mock-tp .tp-controls .b .ic { width: 15px; height: 15px; }
.mock-tp .tp-controls .b.play { background: var(--grad-cta); color: #fff; }
.mock-tp-screen { padding: 40px 40px 46px; position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.mock-tp-screen::before { content: ""; position: absolute; left: 0; right: 0; top: 44%; height: 56px; background: rgba(139,108,240,0.1); border-top: 1px solid rgba(169,139,255,0.4); border-bottom: 1px solid rgba(169,139,255,0.4); }
.mock-tp-line { font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.mock-tp-line.dim { color: var(--ink-faint); font-size: 18px; }
.mock-tp-line.now { color: var(--ink); font-size: 27px; position: relative; z-index: 1; }
.mock-tp-line.next { color: var(--ink-dim); font-size: 21px; }
.mock-tp-foot { position: absolute; bottom: 16px; left: 40px; right: 40px; display: flex; justify-content: space-between; align-items: center; }
.mock-tp-foot .listen { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--violet); }
.mock-tp-foot .listen .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pulse 1.8s infinite; }
.mock-tp-foot .wpm { font-size: 12px; color: var(--ink-faint); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(169,139,255,0.5)} 70%{box-shadow:0 0 0 9px rgba(169,139,255,0)} 100%{box-shadow:0 0 0 0 rgba(169,139,255,0)} }

/* ---- App cards ----------------------------------------------------------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card {
  position: relative; display: flex; flex-direction: column; padding: 30px;
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  min-height: 340px; overflow: hidden;
}
.app-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.app-card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--card-2); }
.app-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.app-icon.grad { background: var(--grad-cta); color: #fff; box-shadow: 0 12px 30px -10px rgba(120,90,240,0.6); }
.app-icon.iris { background: var(--grad-iris); color: #fff; }
.app-icon img { width: 100%; height: 100%; border-radius: 16px; }
.app-icon .ic { width: 30px; height: 30px; }
.app-tag { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--violet); margin-bottom: 12px; }
.app-card h3 { margin-bottom: 10px; font-size: 1.5rem; }
.app-card p { color: var(--ink-dim); font-size: 0.98rem; flex: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.app-foot .price { font-weight: 700; font-size: 1.15rem; }
.app-foot .price small { color: var(--ink-faint); font-weight: 400; font-size: 0.82rem; }
.app-card.mystery { border-style: dashed; background: transparent; }
.app-card.mystery:hover { transform: none; }
.app-card.mystery .app-icon { background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--ink-dim); font-size: 1.9rem; font-weight: 700; }
.badge-soon { position: absolute; top: 22px; right: 22px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); border: 1px solid var(--line-2); padding: 4px 11px; border-radius: 999px; }

/* ---- "Nana knows best about everything" ---------------------------------- */
.knows-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.knows {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px 30px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.knows:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--card-2); }
.knows .k-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--violet); margin-bottom: 4px; transition: color 0.3s, transform 0.4s var(--ease); }
.knows:hover .k-ic { color: var(--magenta); transform: rotate(-6deg) scale(1.06); }
.knows .k-ic .ic { width: 21px; height: 21px; }
.knows b { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.knows span { color: var(--ink-dim); font-size: 0.94rem; line-height: 1.55; }
.knows.hot { border-color: var(--line-plum, rgba(169,139,255,0.35)); background: rgba(139,108,240,0.08); }
.knows.hot .k-ic { background: var(--grad-cta); color: #fff; border-color: transparent; }

/* ---- Mascot story split -------------------------------------------------- */
.mascot { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mascot-media { position: relative; }
.mascot-media img {
  width: 100%;
  /* dissolve the render's own navy backdrop into the page — no visible box */
  -webkit-mask-image: radial-gradient(68% 70% at 50% 48%, #000 42%, rgba(0,0,0,0.45) 68%, transparent 94%);
  mask-image: radial-gradient(68% 70% at 50% 48%, #000 42%, rgba(0,0,0,0.45) 68%, transparent 94%);
}
.mascot-media::after { content: ""; position: absolute; inset: 6%; background: radial-gradient(closest-side, rgba(139,108,240,0.35), transparent 72%); filter: blur(50px); z-index: -1; }
.cooking-intro { margin-bottom: 72px; }
.cooking-intro .mascot-media { max-width: 520px; margin-left: auto; }
.story-list { list-style: none; display: grid; gap: 4px; margin-top: 30px; }
.story-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.story-list li:last-child { border-bottom: 1px solid var(--line); }
.story-list .li-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--violet); }
.story-list .li-ic .ic { width: 20px; height: 20px; }
.story-list b { display: block; font-weight: 600; font-size: 1.06rem; margin-bottom: 2px; }
.story-list span { color: var(--ink-dim); font-size: 0.96rem; }

/* ---- Tool grid (app pages) ----------------------------------------------- */
.tool-cat + .tool-cat { margin-top: 64px; }
.tool-cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.tool-cat-head .k { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.tool-cat-head h3 { font-size: 1.7rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool {
  display: flex; flex-direction: column;
  padding: 30px 28px 32px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.tool:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--card-2); box-shadow: 0 26px 50px -28px rgba(0,0,0,0.9); }
.tool .t-ic {
  position: relative; overflow: hidden;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--grad-cta); color: #fff; display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: 0 10px 24px -10px rgba(120,90,240,0.6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.tool:hover .t-ic { transform: translateY(-2px) scale(1.06) rotate(-3deg); box-shadow: 0 16px 30px -12px rgba(120,90,240,0.8); }
.tool .t-ic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.55) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform 0.65s var(--ease);
}
.tool:hover .t-ic::after { transform: translateX(130%); }
.tool .t-ic .ic { width: 24px; height: 24px; position: relative; z-index: 1; }
.tool h4 { font-size: 1.16rem; font-weight: 600; margin-bottom: 9px; letter-spacing: -0.02em; }
.tool p { color: var(--ink-dim); font-size: 0.94rem; line-height: 1.6; }

/* ---- Screenshots --------------------------------------------------------- */
.shot-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--card); aspect-ratio: 16/10; }
.img-placeholder { display: grid; place-items: center; text-align: center; height: 100%; padding: 24px; color: var(--ink-faint); gap: 10px; }
.img-placeholder .ic { width: 28px; height: 28px; opacity: 0.6; }
.img-placeholder strong { color: var(--ink-dim); font-weight: 600; font-size: 0.96rem; }
.img-placeholder code { font-size: 0.72rem; color: var(--ink-faint); }

/* ---- App page hero (centered like homepage) ------------------------------ */
.app-hero { text-align: center; padding: 56px 0 20px; }
.app-hero .hero-icon { width: 150px; height: 150px; margin-bottom: 20px; }
.app-hero .hero-icon img { border-radius: 34px; }
.app-hero .app-tag { display: inline-block; }
.app-hero h1 { margin-bottom: 20px; }
.app-hero .lead { max-width: 620px; margin: 0 auto; }
.app-hero .hero-cta { margin-top: 32px; }
.app-hero .stat-row { display: flex; gap: 48px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.stat .v { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.stat .k { font-size: 0.84rem; color: var(--ink-dim); margin-top: 2px; }

/* Subnav */
.subnav { position: sticky; top: 92px; z-index: 40; margin: 40px auto 0; max-width: 620px; }
.subnav .wrap { display: flex; gap: 4px; justify-content: center; padding: 6px; background: rgba(24,18,46,0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; }
.subnav a { padding: 9px 16px; border-radius: 999px; color: var(--ink-dim); font-size: 0.9rem; font-weight: 500; white-space: nowrap; transition: color 0.18s, background 0.18s; }
.subnav a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }

/* ---- Changelog ----------------------------------------------------------- */
.changelog { max-width: 760px; margin: 0 auto; }
.release { display: grid; grid-template-columns: 140px 1fr; gap: 30px; padding: 32px 0; border-top: 1px solid var(--line); }
.release:last-child { border-bottom: 1px solid var(--line); }
.release-meta .ver { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.release-meta .date { display: block; color: var(--ink-faint); font-size: 0.82rem; margin-top: 4px; }
.release-meta .tag { display: inline-block; margin-top: 12px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 11px; border-radius: 999px; }
.tag.new { color: #34d39a; border: 1px solid rgba(52,211,153,0.3); }
.tag.fix { color: var(--blue); border: 1px solid rgba(110,168,255,0.3); }
.release ul { list-style: none; display: grid; gap: 10px; }
.release li { color: var(--ink-soft); padding-left: 22px; position: relative; font-size: 0.98rem; }
.release li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* ---- Panel / form -------------------------------------------------------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 42px; }
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  background: rgba(0,0,0,0.28); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 14px 16px; color: var(--ink); width: 100%; transition: border-color 0.18s, box-shadow 0.18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(169,139,255,0.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a98bff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--bg-3); color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { border-radius: var(--r-xl); padding: 72px 48px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line-2); }
.cta-band::before { content: ""; position: absolute; inset: -40% 10% auto; height: 80%; background: var(--grad-iris); filter: blur(90px); opacity: 0.25; z-index: 0; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { max-width: 560px; margin: 0 auto; }
.cta-band .hero-cta { justify-content: center; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 48px; margin-top: 60px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 300px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: 0.93rem; color: var(--ink-dim); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 15px; font-weight: 700; }
.foot-col a { display: block; padding: 5px 0; color: var(--ink-dim); font-size: 0.94rem; transition: color 0.18s; }
.foot-col a:hover { color: var(--violet); }
.foot-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: var(--ink-faint); }

/* ==========================================================================
   Micro-interactions — cursor-follow border glow, sheen, float, stagger
   ========================================================================== */

/* Light that travels along the card border toward the cursor */
.spotlight { position: relative; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, -20%),
              rgba(169,139,255,0.85), rgba(110,168,255,0.35) 42%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease); z-index: 2;
}
.spotlight:hover::after { opacity: 1; }
/* faint inner light following the cursor */
.spotlight > .glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -20%), rgba(139,108,240,0.12), transparent 55%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.spotlight:hover > .glow { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* App-card: animated shimmer on the top hairline + icon shine */
.app-card::before { background: linear-gradient(90deg, transparent, var(--line-2) 30%, rgba(169,139,255,0.7) 50%, var(--line-2) 70%, transparent); background-size: 200% 100%; transition: background-position 0.6s var(--ease); background-position: 100% 0; }
.app-card:hover::before { background-position: 0 0; }
.app-icon { position: relative; overflow: hidden; transition: transform 0.4s var(--ease); }
.app-card:hover .app-icon { transform: translateY(-2px) scale(1.05) rotate(-3deg); }
.app-icon::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.5) 50%, transparent 68%); transform: translateX(-130%); transition: transform 0.65s var(--ease); }
.app-card:hover .app-icon::after { transform: translateX(130%); }
.app-icon > .ic, .app-icon > img { position: relative; z-index: 1; }

/* Buttons — sheen sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%); transform: translateX(-130%); transition: transform 0.7s var(--ease); }
.btn-primary:hover::after { transform: translateX(130%); }

/* Gentle idle float on the hero mascot icon */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-icon { animation: floaty 5.5s ease-in-out infinite; }

/* ---- Reveal (with stagger for grids) ------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* stagger tool cards in as their category reveals */
.tool-grid .tool { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s; }
.reveal.in .tool-grid .tool, .tool-cat.in .tool { opacity: 1; transform: none; }
.tool-grid .tool:nth-child(2) { transition-delay: 0.07s; }
.tool-grid .tool:nth-child(3) { transition-delay: 0.14s; }
.tool-grid .tool:nth-child(4) { transition-delay: 0.07s; }
.tool-grid .tool:nth-child(5) { transition-delay: 0.14s; }
.tool-grid .tool:nth-child(6) { transition-delay: 0.21s; }
/* keep hover lift working after entrance */
.tool-grid .tool:hover { transform: translateY(-6px); transition-delay: 0s; }

/* stagger app cards */
.apps-grid .app-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.apps-grid .app-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .apps-grid, .tool-grid, .knows-grid { grid-template-columns: 1fr 1fr; }
  .mascot { grid-template-columns: 1fr; gap: 36px; }
  .mascot-media { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .section { padding: 90px 0; }
  .apps-grid, .tool-grid, .knows-grid { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; gap: 12px; }
  /* dropdown expands inline inside the mobile menu */
  .has-drop { width: 100%; }
  .drop-toggle { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .drop-menu { position: static; transform: none; min-width: 0; opacity: 1; visibility: visible; pointer-events: auto;
    background: rgba(0,0,0,0.25); box-shadow: none; margin-top: 6px; display: none; }
  .has-drop.open .drop-menu { display: block; transform: none; }
  .drop-menu::before { display: none; }
  .shot-row { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a.cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: grid; place-items: center; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  .panel { padding: 26px; }
  .hero-icon { width: 140px; height: 140px; }
  .mock-tp-screen { padding: 26px; } .mock-tp-line.now { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { *{ animation: none !important; scroll-behavior: auto } .reveal{ opacity:1; transform:none; transition:none } }
