/* TecHook — one stylesheet for every page. */

@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #06070b;
  --bg-2: #0b0d14;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef1f7;
  --muted: #a1a9ba;
  --dim: #6c7487;
  --a1: #3be3ff;
  --a2: #7c5cff;
  --a3: #ff5cc8;
  --grad: linear-gradient(110deg, var(--a1) 0%, var(--a2) 48%, var(--a3) 100%);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(124, 92, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.shimmer { animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Backdrop: drifting aurora + fading grid ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: .55;
}
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .32; will-change: transform; }
.aurora i:nth-child(1) { background: var(--a2); top: -22vmax; left: -10vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: var(--a1); top: -18vmax; right: -14vmax; opacity: .22; animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: var(--a3); top: 30vh; left: 35vw; width: 30vmax; height: 30vmax; opacity: .13; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 20vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-22vw, -12vh) scale(1.25); } }
.reading .aurora i { opacity: .16; }

/* ---------- Header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: transform .45s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 7, 11, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; transition: transform .6s var(--spring); }
.brand:hover svg { transform: rotate(-14deg) scale(1.06); }
.brand b { font-weight: 700; }
.brand span { color: var(--muted); font-weight: 500; }
.links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.links a { position: relative; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.links a:hover { color: var(--text); background: var(--surface-2); }
.links a[aria-current="page"] { color: var(--text); }
.links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--a1); transform: translateX(-50%); box-shadow: 0 0 10px var(--a1); }
.links .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.menu-btn i { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav.open .menu-btn i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { opacity: 0; }
.nav.open .menu-btn i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--body); white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--spring), box-shadow .3s, background .3s, border-color .3s, color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: #0a0b10; background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 34px -10px rgba(124, 92, 255, .8), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 44px -10px rgba(59, 227, 255, .7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* ---------- Generic section bits ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font: 500 13px/1 var(--body); letter-spacing: .02em; backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 0 rgba(59,227,255,.6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(59,227,255,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(59,227,255,0); } }
.h-xl { font: 700 clamp(44px, 7.4vw, 92px)/.98 var(--display); letter-spacing: -.045em; margin: 24px 0 0; }
.h-lg { font: 700 clamp(34px, 5vw, 60px)/1.02 var(--display); letter-spacing: -.035em; margin: 16px 0 0; }
.h-md { font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.025em; margin: 0; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; max-width: 60ch; }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }

/* ---------- Cards with cursor spotlight ---------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(124, 92, 255, .16), transparent 42%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(59, 227, 255, .75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(59,227,255,.18), rgba(124,92,255,.18)); border: 1px solid var(--line-2);
}
.icon-tile svg { width: 22px; height: 22px; stroke: var(--a1); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .3s; }
.tilt.tilting { transition: transform .08s linear, border-color .3s; }

/* ---------- Home: hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: min(78vh, 760px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .12s); }
@keyframes rise { to { transform: none; } }
.hero h1 .muted { color: rgba(238, 241, 247, .38); }
.hero .lead { margin: 26px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; }
.chips svg { width: 15px; height: 15px; stroke: var(--a1); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
/* Policies and articles must be readable even if animations never run (crawlers, App Review captures). */
.reading .fade-up { opacity: 1; animation-name: nudge; }
.reading [data-reveal] { opacity: 1; filter: none; }
@keyframes nudge { from { transform: translateY(14px); } to { transform: none; } }

/* Orbit of real app icons around the hook */
.orbit { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin-inline: auto; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.1); animation: spin var(--t, 60s) linear infinite; }
.orbit .ring.r2 { inset: 17%; --t: 42s; animation-direction: reverse; border-style: solid; border-color: rgba(255,255,255,.06); }
.orbit .o { position: absolute; top: 50%; left: 50%; width: var(--s, 64px); height: var(--s, 64px); margin: calc(var(--s, 64px) / -2); transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
.orbit .o > * { width: 100%; height: 100%; border-radius: 24%; animation: spin var(--t, 60s) linear infinite reverse; box-shadow: 0 14px 30px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.orbit .r2 .o > * { animation-direction: normal; }
.orbit .core {
  position: absolute; inset: 34%; border-radius: 30%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #1b1f30, #090a10 70%); border: 1px solid var(--line-2);
  box-shadow: 0 0 80px -10px rgba(124, 92, 255, .65), inset 0 1px 0 rgba(255,255,255,.08);
  animation: float 6s ease-in-out infinite;
}
.orbit .core::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang, 0deg), var(--a1), var(--a2), var(--a3), var(--a1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: angle 5s linear infinite; }
.orbit .core svg { width: 52%; height: 52%; filter: drop-shadow(0 0 22px rgba(59,227,255,.45)); }
.orbit .glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.35), transparent 65%); filter: blur(20px); animation: breathe 5s ease-in-out infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes angle { to { --ang: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.mono { display: grid; place-items: center; font: 700 22px/1 var(--display); color: #fff; background: var(--grad); }

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.track.rev { animation-direction: reverse; margin-top: 14px; animation-duration: 54s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; font-weight: 600; font-size: 15px; transition: border-color .25s, transform .3s var(--spring); }
.pill:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pill img, .pill .mono { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.pill small { color: var(--dim); font-weight: 500; font-size: 13px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 34px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 700 clamp(38px, 4.4vw, 56px)/1 var(--display); letter-spacing: -.04em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Bento of hooks ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { padding: 36px; display: flex; flex-direction: column; min-height: 320px; }
.bento .c-app { grid-column: span 3; }
.bento .c-mac { grid-column: span 3; }
.bento .c-soft { grid-column: span 4; }
.bento .c-auto { grid-column: span 2; }
.bento .tag { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--a1); margin-bottom: 18px; }
.bento h3 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.03em; line-height: 1.05; }
.bento .card p { font-size: 16px; line-height: 1.65; }
.bento .foot { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mini-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.mini-list li { display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 500; }
.mini-list li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); flex: none; }
.stack { display: flex; margin-top: 24px; }
.stack img, .stack .mono { width: 46px; height: 46px; border-radius: 13px; border: 2px solid var(--bg-2); margin-left: -10px; transition: transform .35s var(--spring); font-size: 16px; }
.stack img:first-child { margin-left: 0; }
.c-app:hover .stack img { transform: translateY(-4px); }
.c-app:hover .stack img:nth-child(2n) { transform: translateY(-8px); }
.c-auto { background: radial-gradient(120% 90% at 100% 0%, rgba(255,92,200,.18), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.c-auto h3 { font-size: clamp(24px, 2.4vw, 30px); }
.pulse-bars { display: flex; gap: 5px; align-items: flex-end; height: 40px; margin-top: 22px; }
.pulse-bars i { width: 6px; border-radius: 3px; background: var(--grad); animation: eq 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.13s); }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }

/* ---------- Why choose ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; color: var(--muted); font-size: 14px; }
.quote figcaption b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--display); color: #0a0b10; background: var(--grad); flex: none; }
.stars { display: flex; gap: 3px; color: #ffcf5c; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Contact band ---------- */
.band {
  position: relative; border-radius: 32px; padding: clamp(40px, 6vw, 80px); overflow: hidden; text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(124,92,255,.35), transparent 60%), var(--bg-2);
  border: 1px solid var(--line-2);
}
.band::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from var(--ang), transparent 0 70%, rgba(59,227,255,.25) 80%, transparent 90%); animation: angle 9s linear infinite; z-index: 0; }
.band::after { content: ""; position: absolute; inset: 1px; border-radius: 31px; background: radial-gradient(80% 120% at 50% 0%, rgba(124,92,255,.22), transparent 60%), var(--bg-2); z-index: 0; }
.band > * { position: relative; z-index: 1; }
.band .lead { margin: 18px auto 0; }
.band .cta-row { justify-content: center; }
.mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; font: 600 clamp(20px, 3vw, 30px)/1 var(--display); letter-spacing: -.02em; }
.mail a { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.copy { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .3s var(--spring); position: relative; }
.copy:hover { background: var(--surface-2); transform: scale(1.08); }
.copy svg { width: 17px; height: 17px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy .ok { display: none; stroke: var(--a1); }
.copy.done .ok { display: block; }
.copy.done .cp { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 80px 0 48px; }
.page-hero .lead { margin-top: 20px; }

/* ---------- Apps directory ---------- */
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: var(--dim); fill: none; stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 52px; padding: 0 18px 0 48px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 16px var(--body); outline: none; transition: border-color .25s, box-shadow .25s, background .25s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: rgba(59,227,255,.6); box-shadow: 0 0 0 5px rgba(59,227,255,.12); background: var(--surface-2); }
.count { color: var(--dim); font-size: 14px; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app { display: flex; flex-direction: column; gap: 22px; padding: 26px; transition: opacity .35s var(--ease), transform .5s var(--ease), border-color .3s; }
.app.gone { display: none; }
.app-top { display: flex; align-items: center; gap: 16px; }
.app-top img, .app-top .mono { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 26px -8px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); flex: none; transform: translateZ(30px); }
.app-top h3 { margin: 0; font-size: 20px; }
.app-top small { color: var(--dim); font-size: 13px; font-weight: 500; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.app-links a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); transition: background .2s, border-color .2s, transform .3s var(--spring); }
.app-links a:hover { background: var(--surface-2); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.app-links a.store { color: var(--a1); border-color: rgba(59,227,255,.3); }
.app-links svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty { display: none; padding: 60px 0; text-align: center; color: var(--muted); }
.empty.show { display: block; }

/* ---------- Services (App Polish) ---------- */
.service { display: flex; flex-direction: column; min-height: 300px; }
.service .price { margin-top: auto; padding-top: 30px; display: flex; align-items: baseline; gap: 8px; }
.service .price b { font: 700 46px/1 var(--display); letter-spacing: -.04em; }
.service .price span { color: var(--muted); font-size: 15px; }
.service .btn { margin-top: 22px; align-self: flex-start; }
.num { font: 600 13px/1 var(--display); color: var(--dim); letter-spacing: .1em; margin-bottom: 18px; }

/* ---------- Blog ---------- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; padding: 0; margin-bottom: 18px; }
.feature .media { aspect-ratio: 16 / 11; }
.feature .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature h2 { font: 700 clamp(26px, 3vw, 38px)/1.08 var(--display); letter-spacing: -.03em; margin: 14px 0 14px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { padding: 0; display: flex; flex-direction: column; }
.media { overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.92); }
.post-card:hover .media img, .feature:hover .media img { transform: scale(1.06); filter: saturate(1.1); }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 19px; line-height: 1.3; margin: 10px 0 10px; }
.post-card p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 13px; font-weight: 500; }
.meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.read-more { margin-top: auto; padding-top: 20px; display: inline-flex; gap: 6px; align-items: center; color: var(--a1); font-weight: 600; font-size: 14px; }
.read-more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .35s var(--spring); }
.card:hover .read-more svg { transform: translateX(4px); }

/* ---------- Reading pages (posts + legal) ---------- */
.doc { padding: 56px 0 100px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--dim); font-size: 14px; margin-bottom: 28px; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.doc-head { max-width: 820px; }
.doc-head h1 { font: 700 clamp(34px, 5vw, 56px)/1.04 var(--display); letter-spacing: -.035em; margin: 18px 0 18px; }
.doc-app { display: flex; align-items: center; gap: 14px; }
.doc-app img, .doc-app .mono { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 26px -8px rgba(0,0,0,.8); font-size: 20px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 26px; }
.tabs a { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: #0a0b10; background: var(--text); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; margin-top: 48px; align-items: start; }
.doc-grid.solo { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow: auto; padding-left: 18px; border-left: 1px solid var(--line); font-size: 14px; }
.toc b { display: block; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.toc a { position: relative; display: block; padding: 6px 0; color: var(--muted); line-height: 1.4; transition: color .2s; }
.toc a::before { content: ""; position: absolute; left: -19px; top: 0; bottom: 0; width: 1px; background: var(--a1); transform: scaleY(0); transition: transform .35s var(--ease); }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); }
.toc a.on::before { transform: none; }

.prose { font-size: 17px; line-height: 1.8; color: #d4dae5; max-width: 72ch; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 700 clamp(22px, 2.4vw, 27px)/1.25 var(--display); letter-spacing: -.02em; color: var(--text); margin: 2.4em 0 .7em; }
.prose h3 { font: 600 20px/1.3 var(--display); color: var(--text); margin: 2em 0 .6em; }
.prose h4 { font: 600 18px/1.35 var(--display); color: var(--text); margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin: .4em 0; padding-left: .3em; }
.prose li::marker { color: var(--a1); }
.prose a { color: var(--a1); text-decoration: underline; text-decoration-color: rgba(59,227,255,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--a1); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid; border-image: var(--grad) 1; color: var(--text); font-size: 18px; }
.prose figure { margin: 0 0 2em; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.prose figure img { width: 100%; }
.prose figcaption { padding: 12px 16px; color: var(--dim); font-size: 14px; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.4em 0; }
.prose u { text-decoration: none; }
.doc-foot { margin-top: 56px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 28px; }
.doc-foot p { margin: 0; }
.more { margin-top: 90px; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .big { font: 700 clamp(110px, 22vw, 240px)/.9 var(--display); letter-spacing: -.06em; }
.lost svg.hook { width: 90px; height: 90px; margin: 0 auto 10px; animation: swing 3s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes swing { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(-12deg); } }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 64px 0 40px; background: linear-gradient(180deg, transparent, rgba(124,92,255,.05)); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 6px 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer p { color: var(--muted); margin: 16px 0 0; max-width: 34ch; }
.footer .legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: 14px; }
.wordmark { font: 700 clamp(64px, 15vw, 210px)/.8 var(--display); letter-spacing: -.06em; text-align: center; margin-top: 64px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .orbit { width: min(100%, 440px); }
  .bento .c-app, .bento .c-mac, .bento .c-soft, .bento .c-auto { grid-column: span 6; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .apps, .posts, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .feature { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 12px 16px 22px; background: rgba(6,7,11,.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
  }
  .nav.open .links { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 14px 12px; font-size: 17px; }
  .links .btn { margin: 10px 0 0; }
  .nav.open { background: rgba(6,7,11,.96); }
  .section { padding: 80px 0; }
  .hero { padding-top: 36px; }
  .apps, .posts, .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .bento .card, .card { padding: 26px; }
  .feature .body { padding: 28px; }
  .post-card .body { padding: 22px; }
  .footer .cols { grid-template-columns: 1fr; gap: 32px; }
  .orbit .o { --s: 50px !important; }
  .prose { font-size: 16.5px; }
}

/* ---------- Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero h1 .line > span, .fade-up { transform: none; opacity: 1; }
  .track { animation: none; }
  @view-transition { navigation: none; }
}
@media print {
  .aurora, .nav, .footer, .progress, .toc, .tabs, .crumbs, .doc-foot, .more { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose strong, .prose h2, .prose h3, .prose h4, .doc-head h1 { color: #000; }
  .prose a { color: #000; }
  .doc-grid { display: block; margin-top: 12px; }
}
