/* ============================================================
   THIRD ARM — website redesign
   Design language pulled from the app: deep ink surfaces and
   the icon's teal → lime signature gradient.
   ============================================================ */

:root {
  --bg-0: #07090d;
  --bg-1: #0b0d14;
  --bg-2: #10131c;
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #12151f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f2f5f0;
  --muted: #98a1b3;
  --faint: #5d6678;

  /* Brand gradient — fixed green */
  --brand-a: #19d3a2;
  --brand-b: #b8f526;
  --grad: linear-gradient(120deg, var(--brand-a), var(--brand-b));

  /* Per-section dynamic accent (categories explorer) */
  --caccent: #47c29e;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
  scroll-padding-top: 5.5rem;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Ambient page wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 85% -8%, color-mix(in srgb, var(--brand-a) 14%, transparent), transparent 62%),
    radial-gradient(46rem 30rem at -12% 32%, color-mix(in srgb, var(--brand-b) 9%, transparent), transparent 60%),
    radial-gradient(40rem 40rem at 55% 115%, color-mix(in srgb, var(--brand-a) 8%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 40%);
  transition: background 0.8s ease;
}

/* Fine noise for depth */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 120;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }

::selection { background: color-mix(in srgb, var(--brand-a) 45%, transparent); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #232838; border-radius: 8px; border: 3px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--brand-a) 60%, #232838); }

:focus-visible { outline: 2px solid var(--brand-a); outline-offset: 3px; border-radius: 4px; }

/* ============ Custom cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--brand-b);
  transition: background 0.4s ease;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid color-mix(in srgb, var(--brand-a) 70%, transparent);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.4s ease, opacity 0.25s ease;
}
body.cursor-hover .cursor-ring {
  width: 58px; height: 58px;
  border-color: color-mix(in srgb, var(--brand-b) 85%, transparent);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ============ Scroll progress ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 210;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 14px color-mix(in srgb, var(--brand-a) 70%, transparent);
}

/* ============ Nav ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease;
}
.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  /* Hit target stays comfortable after removing wordmark */
  min-width: 44px;
  min-height: 44px;
  margin: -5px 0;
  padding: 5px;
  border-radius: 12px;
}
.brand-icon {
  display: flex;
  line-height: 0;
}
.brand-icon img {
  width: 34px; height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-a) 35%, transparent);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.5s ease;
}
.brand:hover .brand-icon img { transform: rotate(-8deg) scale(1.07); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2rem);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 0.9rem; }

.nav-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 3.4em;
  text-align: center;
}

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0 1.35rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  will-change: transform;
}
.btn-primary {
  color: #07130c;
  background: var(--grad);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand-a) 32%, transparent);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 20px 44px color-mix(in srgb, var(--brand-a) 45%, transparent); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand-a) 65%, transparent); background: color-mix(in srgb, var(--brand-a) 10%, transparent); }
.btn-nav { min-height: 2.45rem; padding: 0 1.05rem; font-size: 0.86rem; }
.btn-big { min-height: 3.6rem; padding: 0 1.8rem; font-size: 1.02rem; border-radius: var(--r-md); }
/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 7.5rem clamp(1rem, 5vw, 4rem) 4.5rem;
}
#fx-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 88px);
  mask-image: radial-gradient(70rem 46rem at 60% 40%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(70rem 46rem at 60% 40%, black 30%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(26rem, 34rem);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-b);
  margin-bottom: 1.4rem;
  transition: color 0.5s ease;
}
.eyebrow-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-a) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-a) 55%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.7rem, 5.6vw, 4.9rem); }

.grad-text, .grad-text-cat { font-style: normal; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--brand-a) 30%, transparent));
}
.grad-text-cat {
  color: var(--caccent);
  text-shadow: 0 0 30px color-mix(in srgb, var(--caccent) 45%, transparent);
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

.hero-rotator {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.35rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  color: var(--ink);
}
.rotator-prefix { color: var(--brand-a); font-weight: 700; transition: color 0.5s ease; }
.rotator-box { position: relative; display: inline-block; overflow: hidden; min-height: 1.5em; }
#rotator-word {
  display: inline-block;
  white-space: nowrap;
  color: var(--brand-b);
  transition: color 0.5s ease;
}
#rotator-word.word-out { animation: wordOut 0.32s var(--ease-out) forwards; }
#rotator-word.word-in { animation: wordIn 0.42s var(--ease-out) forwards; }
@keyframes wordOut { to { transform: translateY(-110%); opacity: 0; } }
@keyframes wordIn { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hero-sub {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-green { background: #47c29e; box-shadow: 0 0 8px #47c29e; }
.dot-blue { background: #2e73d1; box-shadow: 0 0 8px #2e73d1; }
.dot-purple { background: #8552c7; box-shadow: 0 0 8px #8552c7; }
.dot-lime { background: var(--brand-b); box-shadow: 0 0 8px var(--brand-b); transition: background 0.5s, box-shadow 0.5s; }

.hero-stats {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: 2.3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat dd {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============ Mini desktop scene ============ */
.hero-scene { position: relative; z-index: 2; perspective: 1400px; }

.desktop {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0a0c12;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset,
              0 0 90px color-mix(in srgb, var(--brand-a) 12%, transparent);
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s ease;
}
.hero-scene:hover .desktop { transform: rotateY(-2deg) rotateX(1deg); }
.hero-scene-shadow {
  position: absolute;
  left: 8%; right: 4%; bottom: -2.2rem;
  height: 3rem;
  background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--brand-a) 26%, transparent), transparent 75%);
  filter: blur(14px);
  z-index: -1;
}

/* macOS menu bar replica */
.mb-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2rem;
  padding: 0 0.75rem;
  background: rgba(28, 30, 40, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  color: rgba(242, 245, 240, 0.85);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 0.7rem; }
.mb-apple { opacity: 0.9; }
.mb-appname { font-weight: 700; }
.mb-menu-item { opacity: 0.65; }
.mb-clock { font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.85; }

.mb-ta {
  position: relative;
  display: grid;
  place-items: center;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.mb-ta img { border-radius: 4px; }
.mb-ta:hover, .mb-ta[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); }

.mb-hint {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0.4rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: var(--grad);
  color: #07130c;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
  animation: hintBob 1.8s ease-in-out infinite;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-a) 40%, transparent);
}
.mb-hint::before {
  content: "";
  position: absolute;
  top: -4px; right: 1.1rem;
  width: 9px; height: 9px;
  background: var(--brand-a);
  transform: rotate(45deg);
}
.mb-hint.is-hidden { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
@keyframes hintBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
/* Third Arm dropdown */
.mb-dropdown {
  position: absolute;
  top: 2.35rem;
  right: 0.6rem;
  z-index: 6;
  width: 15.5rem;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(26, 28, 38, 0.88);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform-origin: top right;
  transform: scale(0.92) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease-spring), opacity 0.2s ease;
}
.mb-dropdown.is-open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

.mb-drop-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mb-drop-item:hover { background: color-mix(in srgb, var(--brand-a) 22%, transparent); transform: translateX(2px); }
.mb-drop-sep { height: 1px; margin: 0.35rem 0.5rem; background: rgba(255, 255, 255, 0.09); }
.mb-drop-static {
  padding: 0.45rem 0.6rem 0.35rem;
  font-size: 0.7rem;
  color: var(--faint);
}
.mb-pro {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-b);
  border: 1px solid color-mix(in srgb, var(--brand-b) 45%, transparent);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.mb-ic, .cat-ic, .bento-ic {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.7rem; height: 1.7rem;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c) 88%, black);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 45%, transparent);
}

/* Desktop body */
.desktop-body {
  position: relative;
  height: clamp(20rem, 30vw, 24.5rem);
  overflow: hidden;
}
.desktop-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30rem 20rem at 80% 110%, color-mix(in srgb, var(--brand-b) 16%, transparent), transparent 60%),
    radial-gradient(26rem 18rem at 8% -10%, color-mix(in srgb, var(--brand-a) 22%, transparent), transparent 62%),
    linear-gradient(160deg, #0d1019, #090b11);
  transition: background 0.8s ease;
}

.app-window {
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(86%, 26rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(16, 19, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: var(--muted);
}
.tb-dots { display: inline-flex; gap: 0.32rem; }
.tb-dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #ff5f57; }
.tb-dots i:nth-child(2) { background: #febc2e; }
.tb-dots i:nth-child(3) { background: #28c840; }
.tb-title { font-weight: 600; letter-spacing: 0.02em; }
.tb-saved {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--brand-a);
  transition: color 0.4s ease;
}
.tb-saved.is-saving { color: #e6ad2e; }

.app-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.75rem;
  min-height: 15.5rem;
  align-content: start;
}

.mini-card {
  position: relative;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, rgba(255,255,255,0.03)), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}
.mini-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}
.mini-card .mb-ic { width: 1.45rem; height: 1.45rem; border-radius: 6px; font-size: 0.62rem; }
.mini-card b { display: block; font-size: 0.78rem; line-height: 1.2; }
.mini-card small { display: block; margin-top: 0.12rem; font-size: 0.64rem; color: var(--muted); font-family: var(--font-mono); }
.mini-card.card-in { animation: cardIn 0.5s var(--ease-spring); }
.mini-card.card-out { animation: cardOut 0.35s ease forwards; }
@keyframes cardIn {
  0% { transform: translateY(-14px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes cardOut { to { transform: scale(0.9); opacity: 0; } }

/* ghost card that flies from menu bar to the board */
.fly-ghost {
  position: fixed;
  z-index: 250;
  pointer-events: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 30%, #14161f);
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 40%, transparent);
  transition: transform 0.55s var(--ease-out), opacity 0.55s ease;
}

/* floating chips */
.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(20, 23, 33, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.72rem;
  animation: chipFloat 5.5s ease-in-out infinite;
}
.chip-timer { right: 0.9rem; bottom: 1.1rem; }
.chip-clip { left: 0.9rem; bottom: 2.6rem; animation-delay: -2.6s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.chip-ring {
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: conic-gradient(#e67a2e var(--p, 70%), rgba(255,255,255,0.12) 0);
  display: grid;
  place-items: center;
}
.chip-ring i { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: #14161f; }
.chip-txt b { font-family: var(--font-mono); font-weight: 700; margin-right: 0.3rem; }
.chip-txt { color: var(--muted); }
.chip-ic {
  display: grid;
  place-items: center;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: color-mix(in srgb, #2e73d1 80%, black);
  color: #fff;
  font-size: 0.66rem;
}
.chip-txt.swap { animation: chipSwap 0.5s var(--ease-out); }
@keyframes chipSwap { 0% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.3s;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue-line {
  width: 1.5px; height: 2.6rem;
  background: linear-gradient(180deg, var(--brand-a), transparent);
  animation: cueDrop 1.9s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cueDrop { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ Marquee ============ */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.mq-item i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}
/* ============ Sections (shared) ============ */
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem); }
.section-inner { max-width: 1180px; margin: 0 auto; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-a);
  margin-bottom: 1.1rem;
  transition: color 0.5s ease;
}
.kicker-line {
  width: 2.2rem; height: 1.5px;
  background: var(--grad);
}
.section-head h2, .ai-copy h2, .final-cta h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.section-lede { margin-top: 1.1rem; color: var(--muted); font-size: 1.02rem; max-width: 40rem; }
.section-lede a { color: var(--brand-b); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--brand-b) 45%, transparent); transition: color 0.3s; }
.section-lede a:hover { color: var(--ink); }
.section-lede code, .ai-copy code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: color-mix(in srgb, var(--brand-a) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-a) 26%, transparent);
  padding: 0.08em 0.38em;
  border-radius: 6px;
  color: var(--brand-b);
}

/* ============ Categories explorer ============ */
.categories-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(46rem 30rem at 12% 20%, color-mix(in srgb, var(--caccent) 9%, transparent), transparent 62%);
  transition: background 0.7s ease;
}

.cat-explorer {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  backdrop-filter: blur(10px);
}
.cat-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.cat-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); transform: translateX(3px); }
.cat-btn.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--caccent) 14%, rgba(255,255,255,0.03));
  border-color: color-mix(in srgb, var(--caccent) 38%, transparent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--caccent) 16%, transparent);
}
.cat-ic { width: 1.55rem; height: 1.55rem; font-size: 0.66rem; }
.cat-pro {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-b);
  border: 1px solid color-mix(in srgb, var(--brand-b) 45%, transparent);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.cat-panel {
  position: relative;
  min-height: 26rem;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(30rem 16rem at 100% 0%, color-mix(in srgb, var(--caccent) 13%, transparent), transparent 58%),
    var(--card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.5s ease;
}
.cat-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--caccent), transparent 70%);
  transition: background 0.5s ease;
}
.cat-panel-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.cat-panel-ic {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--caccent) 88%, black);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--caccent) 40%, transparent);
  transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.4s var(--ease-spring);
}
.cat-panel.swap .cat-panel-ic { transform: rotate(-10deg) scale(1.08); }
.cat-panel-head h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.cat-panel-tag { color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }
.cat-panel-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--caccent);
  border: 1px solid color-mix(in srgb, var(--caccent) 40%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  transition: color 0.5s, border-color 0.5s;
}
.cat-panel-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.cat-card {
  position: relative;
  min-height: 8.6rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, color-mix(in srgb, var(--caccent) 10%, rgba(255,255,255,0.03)), rgba(255, 255, 255, 0.02));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.5s ease;
}
.cat-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--caccent) 50%, transparent); }
.cat-card b { font-size: 0.98rem; line-height: 1.25; }
.cat-card small { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.cat-card .cat-card-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cat-card .cat-card-bar i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: 99px;
  background: var(--caccent);
  box-shadow: 0 0 10px var(--caccent);
  transition: background 0.5s, box-shadow 0.5s, width 0.8s var(--ease-out);
}
.cat-panel.swap .cat-card { animation: catCardIn 0.45s var(--ease-out) backwards; }
.cat-panel.swap .cat-card:nth-child(2) { animation-delay: 0.06s; }
.cat-panel.swap .cat-card:nth-child(3) { animation-delay: 0.12s; }
@keyframes catCardIn {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cat-panel-desc { color: var(--muted); font-size: 0.95rem; max-width: 44rem; }
.cat-panel-desc strong { color: var(--ink); }
/* ============ Toolkit bento ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}
.bento-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 14rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(14rem 14rem at var(--mx) var(--my), color-mix(in srgb, var(--c, var(--brand-a)) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover { border-color: color-mix(in srgb, var(--c, var(--brand-a)) 40%, transparent); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.bento-card header { display: flex; align-items: center; gap: 0.6rem; }
.bento-card h3 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; letter-spacing: 0; }
.bento-card > p { color: var(--muted); font-size: 0.86rem; }
.bento-ic { width: 2rem; height: 2rem; font-size: 0.72rem; border-radius: 9px; }

.badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.badge-free { color: #7ce8cc; border-color: rgba(124, 232, 204, 0.35); background: rgba(124, 232, 204, 0.08); }
.badge-pro { color: #d2b3ec; border-color: rgba(210, 179, 236, 0.35); background: rgba(160, 107, 224, 0.12); }
.badge-mix { color: #f2d38a; border-color: rgba(230, 173, 46, 0.35); background: rgba(230, 173, 46, 0.1); }

.b-calc  { grid-column: span 5; --c: #e6ad2e; }
.b-text  { grid-column: span 7; --c: #e05284; }
.b-focus { grid-column: span 4; --c: #e67a2e; }
.b-clock { grid-column: span 4; --c: #24a8ad; }
.b-clip  { grid-column: span 4; --c: #2e73d1; }
.b-qr    { grid-column: span 4; --c: #38ad6b; }
.b-sys   { grid-column: span 4; --c: #47c29e; }
.b-pdf   { grid-column: span 4; --c: #db4d52; }
.b-img   { grid-column: span 4; --c: #8552c7; }
.b-qc    { grid-column: span 8; --c: #5c7cfa; }
.b-snip  { grid-column: span 6; --c: #a06be0; }
.b-today { grid-column: span 6; --c: #db6685; }

/* calculator */
.calc-demo { margin-top: auto; }
.calc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-mono);
}
.calc-caret { color: var(--brand-a); font-weight: 700; transition: color 0.5s; }
.calc-row input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.calc-row input::placeholder { color: var(--faint); }
.calc-result {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}
.calc-result b { color: var(--brand-b); font-size: 1.15rem; transition: color 0.5s; }
.calc-result.is-error { color: #e0526d; }
.calc-result.is-error b { color: #e0526d; }

/* text transform */
.tt-demo { display: flex; flex-direction: column; gap: 0.55rem; margin-top: auto; }
#tt-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}
#tt-input:focus { border-color: color-mix(in srgb, #e05284 60%, transparent); }
.tt-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tt-btn {
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s ease;
}
.tt-btn:hover, .tt-btn.is-active {
  color: #fff;
  background: color-mix(in srgb, #e05284 32%, transparent);
  border-color: color-mix(in srgb, #e05284 65%, transparent);
}
.tt-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  background: color-mix(in srgb, #e05284 12%, transparent);
  border: 1px solid color-mix(in srgb, #e05284 28%, transparent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.tt-out span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-copy {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-b);
  transition: transform 0.2s var(--ease-spring);
}
.tt-copy:hover { transform: scale(1.1); }
.tt-copy.copied { color: #7ce8cc; }

/* focus timer */
.focus-demo {
  position: relative;
  margin: auto;
  width: 9.5rem;
  height: 9.5rem;
}
.focus-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.fr-track, .fr-fill { fill: none; stroke-width: 7; }
.fr-track { stroke: rgba(255, 255, 255, 0.09); }
.fr-fill {
  stroke: #e67a2e;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(230, 122, 46, 0.55));
  transition: stroke-dashoffset 0.5s linear;
}
.focus-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.focus-mid b { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; }
.focus-toggle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e67a2e;
  border: 1px solid rgba(230, 122, 46, 0.45);
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.focus-toggle:hover { background: rgba(230, 122, 46, 0.16); }
.focus-toggle.is-running { color: #7ce8cc; border-color: rgba(124, 232, 204, 0.45); }

/* world clock */
.wc-list { list-style: none; margin-top: auto; display: flex; flex-direction: column; }
.wc-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.34rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: var(--muted);
}
.wc-list li:last-child { border-bottom: 0; }
.wc-time { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink); font-weight: 700; }

/* clipboard */
.clip-demo { display: flex; flex-direction: column; gap: 0.4rem; margin-top: auto; overflow: hidden; }
.clip-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  transition: all 0.4s var(--ease-out);
}
.clip-row i {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2e73d1;
}
.clip-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-row time { margin-left: auto; font-size: 0.62rem; color: var(--faint); }
.clip-row.clip-new { animation: clipIn 0.5s var(--ease-spring); border-color: rgba(46, 115, 209, 0.5); background: rgba(46, 115, 209, 0.1); color: var(--ink); }
@keyframes clipIn { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* QR */
.qr-demo { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.qr-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5px;
  width: 6.2rem; height: 6.2rem;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  overflow: hidden;
}
.qr-grid::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-b) 45%, transparent), transparent);
  animation: qrScan 2.6s ease-in-out infinite;
}
@keyframes qrScan { 0%,100% { top: -25%; } 50% { top: 105%; } }
.qr-cell { border-radius: 1px; background: transparent; transition: background 0.3s ease; }
.qr-cell.on { background: #e8f5e9; }
.qr-cell.finder { background: var(--brand-b); }
.qr-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  transition: color 0.3s;
}
.qr-label.is-flash { color: var(--brand-b); }

/* system status */
.sys-demo { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.sys-row { display: grid; grid-template-columns: 2.4rem 1fr 2.6rem; align-items: center; gap: 0.6rem; font-size: 0.74rem; }
.sys-row span { font-family: var(--font-mono); color: var(--faint); }
.sys-row b { font-family: var(--font-mono); font-size: 0.74rem; text-align: right; color: var(--ink); }
.sys-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.sys-bar i {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: 99px;
  background: linear-gradient(90deg, #47c29e, var(--brand-b));
  transition: width 1s var(--ease-out);
}

/* PDF */
.pdf-demo { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.pdf-stack { position: relative; width: 2.6rem; height: 2.4rem; }
.pdf-stack i, .pdf-one i {
  position: absolute;
  width: 1.7rem; height: 2.1rem;
  border-radius: 4px;
  background: linear-gradient(160deg, #2a2e3d, #1a1d29);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.pdf-stack i::before, .pdf-one i::before {
  content: "";
  position: absolute;
  top: 5px; left: 4px; right: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(219, 77, 82, 0.7);
  box-shadow: 0 5px 0 rgba(255,255,255,0.14), 0 10px 0 rgba(255,255,255,0.14), 0 15px 0 rgba(255,255,255,0.14);
}
.pdf-stack i:nth-child(1) { left: 0; top: 0.15rem; transform: rotate(-8deg); animation: pdfStack1 4s ease-in-out infinite; }
.pdf-stack i:nth-child(2) { left: 0.45rem; top: 0; animation: pdfStack2 4s ease-in-out infinite; }
.pdf-stack i:nth-child(3) { left: 0.9rem; top: 0.15rem; transform: rotate(8deg); animation: pdfStack3 4s ease-in-out infinite; }
@keyframes pdfStack1 { 0%,15% { transform: rotate(-8deg) translateX(0); opacity: 1; } 45%,80% { transform: rotate(0) translateX(0.45rem); opacity: 0; } 100% { transform: rotate(-8deg) translateX(0); opacity: 1; } }
@keyframes pdfStack2 { 0%,15% { transform: translateX(0); opacity: 1; } 45%,80% { transform: translateX(0); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes pdfStack3 { 0%,15% { transform: rotate(8deg) translateX(0); opacity: 1; } 45%,80% { transform: rotate(0) translateX(-0.45rem); opacity: 0; } 100% { transform: rotate(8deg) translateX(0); opacity: 1; } }
.pdf-arrow { color: var(--faint); animation: arrowNudge 4s ease-in-out infinite; }
@keyframes arrowNudge { 0%,15%,100% { transform: translateX(0); opacity: 0.5; } 45%,80% { transform: translateX(4px); opacity: 1; } }
.pdf-one { position: relative; width: 1.9rem; height: 2.3rem; }
.pdf-one i { left: 0; top: 0; border-color: rgba(219, 77, 82, 0.55); box-shadow: 0 6px 18px rgba(219, 77, 82, 0.25); }
.pdf-bar { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.pdf-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: #db4d52; animation: pdfBar 4s ease-in-out infinite; }
@keyframes pdfBar { 0%,18% { width: 0; } 55%,85% { width: 100%; } 100% { width: 0; } }
.pdf-status { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }

/* image convert */
.img-demo { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; color: var(--faint); }
.img-fmt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: all 0.3s var(--ease-out);
}
.img-fmt-to { color: var(--brand-b); border-color: color-mix(in srgb, var(--brand-b) 45%, transparent); }
.img-fmt.flip { animation: fmtFlip 0.45s var(--ease-out); }
@keyframes fmtFlip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: rotateX(0); opacity: 1; } }

/* quick capture */
.qc-demo { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; flex-wrap: wrap; }
.qc-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 13rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.qc-caret { width: 8px; height: 1.05em; background: #5c7cfa; animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.qc-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(219, 77, 82, 0.4);
  background: rgba(219, 77, 82, 0.1);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: all 0.4s var(--ease-spring);
}
.qc-card.is-done { opacity: 1; transform: translateY(0) scale(1); }
.qc-card b { display: block; font-size: 0.82rem; }
.qc-card small { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); }
.qc-check { margin-left: 0.4rem; color: #7ce8cc; font-weight: 700; }

/* snippets */
.snip-demo { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; }
.snip-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.42rem 0.7rem;
  border-radius: 8px;
  border: 1px dashed rgba(160, 107, 224, 0.5);
  color: #d2b3ec;
  background: rgba(160, 107, 224, 0.08);
  animation: snipGlow 3.2s ease-in-out infinite;
}
.snip-chip:nth-child(2) { animation-delay: -1.1s; }
.snip-chip-fill {
  border-style: solid;
  color: #fff;
  background: rgba(160, 107, 224, 0.28);
  animation-delay: -2.2s;
}
@keyframes snipGlow { 0%,100% { box-shadow: 0 0 0 rgba(160,107,224,0); } 50% { box-shadow: 0 0 18px rgba(160,107,224,0.35); } }

/* today glance */
.today-list { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 0.45rem; }
.today-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.today-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.today-list b {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toolkit-note {
  margin-top: 1.4rem;
  font-size: 0.84rem;
  color: var(--faint);
  max-width: 52rem;
}
/* ============ AI Connect ============ */
.ai-section {
  background:
    radial-gradient(50rem 30rem at 88% 30%, color-mix(in srgb, var(--brand-a) 8%, transparent), transparent 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ai-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ai-steps { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.05rem; }
.ai-steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.ai-step-n {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 9px;
  background: var(--grad);
  color: #07130c;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-a) 30%, transparent);
}
.ai-steps b { font-size: 0.98rem; }
.ai-steps p { color: var(--muted); font-size: 0.88rem; margin-top: 0.1rem; }
.ai-fine { margin-top: 1.5rem; font-size: 0.8rem; color: var(--faint); }

.ai-terminal-wrap { position: relative; }
.ai-terminal {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(10, 12, 18, 0.92);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.term-title { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.term-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--brand-a);
}
.term-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-a);
  animation: pulse 2s ease-out infinite;
}
.term-body {
  padding: 1rem 1.1rem;
  min-height: 19rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-line { display: block; }
.term-cmd { color: var(--ink); }
.term-cmd::before { content: "$ "; color: var(--brand-a); font-weight: 700; }
.term-ok { color: #7ce8cc; }
.term-dim { color: var(--faint); }
.term-accent { color: var(--brand-b); }
.term-cursor {
  display: inline-block;
  width: 8px; height: 1.05em;
  vertical-align: text-bottom;
  background: var(--brand-a);
  animation: caretBlink 1s steps(1) infinite;
}
.ai-glow {
  position: absolute;
  inset: 8% -4% -8% -4%;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--brand-a) 20%, transparent), transparent 75%);
  filter: blur(30px);
  z-index: 1;
}

/* ============ Workflow ============ */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.flow-card {
  position: relative;
  min-height: 16rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.flow-card:hover { border-color: var(--line-strong); box-shadow: 0 22px 55px rgba(0,0,0,0.4); }
.flow-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.flow-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2.6rem;
}
.flow-card p { margin-top: 0.75rem; padding-bottom: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.flow-line {
  position: absolute;
  left: 1.4rem; right: 1.4rem; bottom: 1.4rem;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--fa), var(--fb));
  transform-origin: left;
  transform: scaleX(0.35);
  transition: transform 0.5s var(--ease-out);
  box-shadow: 0 0 16px color-mix(in srgb, var(--fa) 50%, transparent);
}
.flow-card:hover .flow-line { transform: scaleX(1); }

/* ============ Pricing ============ */
.pricing-section {
  border-top: 1px solid var(--line);
  background: radial-gradient(60rem 34rem at 50% 0%, color-mix(in srgb, var(--brand-b) 6%, transparent), transparent 62%);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}
.price-card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(16rem 16rem at var(--mx) var(--my), color-mix(in srgb, var(--brand-a) 10%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.price-card:hover::before { opacity: 1; }
.price-card:hover { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }

.price-card.is-featured {
  border-color: color-mix(in srgb, var(--brand-a) 45%, transparent);
  background:
    linear-gradient(170deg, color-mix(in srgb, var(--brand-a) 12%, rgba(255,255,255,0.04)), rgba(255,255,255,0.02));
  box-shadow: 0 24px 70px color-mix(in srgb, var(--brand-a) 18%, transparent);
}
.price-flag {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--grad);
  color: #07130c;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.is-featured .price-tier { color: var(--brand-a); }
.price-proplus .price-tier { color: #d2b3ec; }
.price-amount { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.9rem; }
.price-amount b {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-amount span { color: var(--faint); font-size: 0.88rem; }
.price-cap {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--brand-b);
  transition: color 0.5s;
}
.price-proplus .price-cap { color: #d2b3ec; }
.price-card ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.price-card li { position: relative; padding-left: 1.35rem; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  font-weight: 700;
  color: var(--brand-a);
  transition: color 0.5s;
}
.price-note {
  margin-top: auto;
  padding-top: 1.3rem;
  font-size: 0.78rem;
  color: var(--faint);
}

/* ============ Final CTA ============ */
.final-cta {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(34rem 22rem at 50% 100%, color-mix(in srgb, var(--brand-a) 16%, transparent), transparent 65%),
    radial-gradient(24rem 18rem at 82% 10%, color-mix(in srgb, var(--brand-b) 10%, transparent), transparent 62%);
  transition: background 0.8s ease;
}
.final-cta-inner { position: relative; max-width: 46rem; margin: 0 auto; }
.final-icon { display: inline-block; margin-bottom: 1.6rem; }
.final-icon img {
  border-radius: 22px;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--brand-a) 35%, transparent);
  animation: iconFloat 5s ease-in-out infinite;
}
@keyframes iconFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.final-cta p { max-width: 34rem; margin: 1.2rem auto 2rem; color: var(--muted); font-size: 1.02rem; }
.final-fine {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============ Footer ============ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.8rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.86rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--brand-b); }

/* ============ Reveal on scroll ============
   Do NOT hide [data-reveal] with opacity:0. That blanked the hero
   in Cursor/Live Preview when IntersectionObserver never fired.
   Scroll-enter animation is intentionally omitted for reliability. */

/* ============ Responsive ============ */
@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { max-width: 40rem; }
  .hero-scene { max-width: 34rem; width: 100%; margin: 0 auto; }
  .desktop { transform: none; }
  .b-calc, .b-text, .b-focus, .b-clock, .b-clip, .b-qr,
  .b-sys, .b-pdf, .b-img, .b-qc, .b-snip, .b-today { grid-column: span 6; }
  .ai-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .cat-explorer { grid-template-columns: 1fr; }
  .cat-sidebar { flex-direction: row; overflow-x: auto; padding: 0.5rem; scrollbar-width: none; }
  .cat-sidebar::-webkit-scrollbar { display: none; }
  .cat-btn { flex: 0 0 auto; }
  .cat-panel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid, .pricing-grid { grid-template-columns: 1fr; }
  .flow-card { min-height: 13rem; }
  .flow-card h3 { margin-top: 1.6rem; }
}

@media (max-width: 640px) {
  .hero { padding-top: 6.5rem; }
  h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero-stats { flex-wrap: wrap; gap: 1.1rem 1.6rem; }
  .b-calc, .b-text, .b-focus, .b-clock, .b-clip, .b-qr,
  .b-sys, .b-pdf, .b-img, .b-qc, .b-snip, .b-today { grid-column: span 12; }
  .cat-panel-cards { grid-template-columns: 1fr; }
  .mb-menu-item, .mb-hint { display: none; }
  .desktop-body { height: 21rem; }
  .app-window { width: 92%; }
  .chip-clip { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .qr-demo { flex-direction: column; align-items: flex-start; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .marquee-track { animation: none; }
  #fx-canvas { display: none; }
  .desktop { transform: none; }
}

/* ============ Subpages (support / legal / status) ============ */
body.is-subpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.is-subpage .site-nav {
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
body.is-subpage .site-footer { margin-top: auto; }

.subpage {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding: 7.5rem clamp(1.25rem, 4vw, 2rem) 4rem;
}

.subpage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-b);
  margin-bottom: 1rem;
}
.subpage-kicker::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.subpage h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.subpage-updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.subpage h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.1rem 0 0.7rem;
}

.subpage h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.35rem 0 0.45rem;
}

.subpage p,
.subpage li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
  margin-bottom: 0.95rem;
}

.subpage ul {
  margin: 0 0 1rem 1.2rem;
}

.subpage strong { color: var(--ink); font-weight: 600; }

.subpage a:not(.btn):not(.brand) {
  color: var(--brand-b);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-b) 40%, transparent);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.subpage a:not(.btn):not(.brand):hover {
  color: var(--ink);
  border-bottom-color: color-mix(in srgb, var(--ink) 45%, transparent);
}

.subpage-card {
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.subpage-card > :last-child { margin-bottom: 0; }

.subpage-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.subpage-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.35rem 0 0.7rem;
  word-break: break-word;
}

.faq-item { margin-bottom: 0.35rem; }
.faq-item p { margin-bottom: 0.85rem; }

.subpage-foot {
  margin-top: 2.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.subpage-foot a {
  color: var(--muted) !important;
  border-bottom: none !important;
  font-size: 0.9rem;
  font-weight: 600;
}
.subpage-foot a:hover { color: var(--brand-b) !important; }

/* Centered status cards (verify / reset) */
body.is-status {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.is-status .site-nav {
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.status-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.25rem 3rem;
}
.status-card {
  width: min(26rem, 100%);
  text-align: center;
  background: color-mix(in srgb, var(--bg-2) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.4rem 1.8rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-a) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-a) 28%, transparent);
  color: var(--brand-b);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.status-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.status-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.status-card .btn { margin-top: 0.4rem; }

@media (max-width: 900px) {
  body.is-subpage .nav-links,
  body.is-status .nav-links { display: none; }
}
@media (max-width: 640px) {
  .subpage { padding-top: 6.25rem; }
  .status-card { padding: 2rem 1.35rem; }
}





