/* AI Tools for Coding — aitoolsforcoding.com */

:root {
  /* Sync Log brand: navy night, mint signal. */
  --bg: #030a14;
  --bg-2: #050d1a;
  --surface: rgba(10, 19, 34, 0.66);
  --surface-solid: #0a1322;
  --line: rgba(150, 190, 220, 0.12);
  --line-strong: rgba(150, 200, 225, 0.22);
  --text: #f5f7f8;
  --muted: #a3aebf;
  --dim: #6b778c;
  --mint: #49efa7;
  --mint-bright: #60f7b7;
  --mint-pale: #a3f9e0;
  --signal: #28f487;
  --teal: #1fc7a4;
  --amber: #ffc56b;
  /* Older names, kept so every rule reads the brand colours. */
  --cyan: var(--mint);
  --blue: var(--teal);
  --violet: var(--mint-bright);
  --pink: var(--mint-pale);
  --grad: linear-gradient(100deg, var(--signal) 0%, var(--mint) 35%, var(--mint-bright) 65%, var(--mint-pale) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(73, 239, 167, 0.3); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; background: var(--cyan); color: #000; border-radius: 10px; }

/* ---------- ambient layers ---------- */

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: var(--grad); box-shadow: 0 0 12px rgba(31, 199, 164, 0.8);
}

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 7, 13, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--text); position: relative;
  background: linear-gradient(180deg, #0f1c30, #050d1a); border: 1px solid var(--line-strong);
  box-shadow: 0 0 22px -4px rgba(73, 239, 167, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-mark .spark { fill: var(--mint); transform-origin: 25px 22.5px; animation: spark 3.6s ease-in-out infinite; }
@keyframes spark { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(45deg); } }
.logo-text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
@keyframes shimmer { to { background-position: 200% 0; } }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  position: relative; padding: 8px 14px; text-decoration: none; color: var(--muted); font-size: 15px; border-radius: 99px; transition: color 0.25s;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03); cursor: pointer; z-index: 2;
  }
  .nav-toggle span:not(.sr) { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 8px; background: rgba(5, 7, 13, 0.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 44px) 34px); transition: clip-path 0.6s var(--ease); visibility: hidden;
  }
  .site-nav.open { clip-path: circle(150% at calc(100% - 44px) 34px); visibility: visible; }
  .site-nav a:not(.btn) { font-size: 28px; color: var(--text); }
  .site-nav a[aria-current]::after { bottom: 4px; }
  .site-nav .btn { margin: 16px 0 0; }
}

/* ---------- buttons ---------- */

.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px;
  border-radius: 99px; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transform: translate(var(--mx), var(--my)); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary {
  color: #03140c; background: var(--grad); background-size: 180% 100%; background-position: 0 0;
  box-shadow: 0 8px 30px -8px rgba(31, 199, 164, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 40px -8px rgba(96, 247, 183, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(150, 200, 225, 0.4); }
.btn-ghost svg { transition: transform 0.3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ---------- layout ---------- */

.section { position: relative; padding: clamp(80px, 12vw, 150px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5.4vw, 60px); }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--header) + 40px) var(--gutter) 120px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aurora { position: absolute; inset: -20%; z-index: -3; filter: blur(70px) saturate(1.3); opacity: 0.75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: 2%; top: 4%; background: radial-gradient(circle, rgba(73, 239, 167, 0.55), transparent 62%); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: 0; top: 12%; background: radial-gradient(circle, rgba(96, 247, 183, 0.6), transparent 62%); animation-duration: 26s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 30%; bottom: -6%; background: radial-gradient(circle, rgba(163, 249, 224, 0.42), transparent 62%); animation-duration: 30s; animation-delay: -14s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(8vw, -6vh) scale(1.15) rotate(30deg); }
  100% { transform: translate(-6vw, 8vh) scale(0.92) rotate(-20deg); }
}
.swoosh { position: absolute; z-index: -1; pointer-events: none; width: min(60vw, 760px); height: auto; overflow: visible; }
.swoosh path { fill: none; stroke-linecap: round; }
.swoosh .glow { stroke: rgba(73, 239, 167, 0.18); stroke-width: 26; filter: blur(14px); }
.swoosh .core { stroke: url(#swoosh-grad); stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(73, 239, 167, 0.9)); }
.swoosh .run { stroke: #c9ffe9; stroke-width: 2.6; stroke-dasharray: 90 1400; animation: run 6s linear infinite; filter: drop-shadow(0 0 8px #49efa7); }
.swoosh.tl { top: -4%; left: -8%; }
.swoosh.br { right: -10%; bottom: 2%; transform: rotate(180deg); }
.swoosh.br .run { animation-delay: -3s; }
@keyframes run { from { stroke-dashoffset: 1490; } to { stroke-dashoffset: 0; } }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(31, 199, 164, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 199, 164, 0.35) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(500px) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 75%); -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 75%);
  animation: floor 3.2s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 99px; text-decoration: none;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); font-size: 14px; color: var(--muted);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.3s;
}
.hero-badge:hover { border-color: rgba(73, 239, 167, 0.5); }
.hero-badge svg { width: 16px; height: 16px; flex: none; }
.hero-badge b { padding: 3px 10px; border-radius: 99px; background: var(--grad); color: #03140c; font: 600 12px/1.4 var(--mono); }
.hero h1 { margin-top: 26px; font-size: clamp(46px, 10vw, 128px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }
.hero h1 .line { display: block; }
.hero h1 .grad-text { padding-bottom: 0.08em; }
.hero-sub { max-width: 640px; margin-top: 28px; font-size: clamp(18px, 2vw, 22px); color: var(--muted); }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-term {
  position: absolute; right: 0; bottom: -10px; width: min(420px, 40vw); padding: 16px 18px; border-radius: 14px;
  background: rgba(8, 12, 24, 0.7); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 13px/1.7 var(--mono); color: var(--muted); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  transform: perspective(900px) rotateY(-14deg) rotateX(6deg); animation: float 7s ease-in-out infinite;
}
.hero-term .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.hero-term .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3150; }
.hero-term .dots i:nth-child(1) { background: #ff5f57; } .hero-term .dots i:nth-child(2) { background: #febc2e; } .hero-term .dots i:nth-child(3) { background: #28c840; }
.hero-term .out { min-height: 6.8em; white-space: pre-wrap; }
.hero-term .p { color: var(--cyan); } .hero-term .ok { color: #7dffb0; } .hero-term .hl { color: var(--violet); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: grid; justify-items: center; gap: 8px;
  font: 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue i { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid var(--line-strong); position: relative; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@media (max-width: 960px) { .hero-term { display: none; } }

/* scramble/split text */
[data-split] .w { display: inline-block; overflow: clip; vertical-align: bottom; padding-bottom: 0.06em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
[data-split].in .w > span { transform: none; }

/* ---------- marquee ---------- */

.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: rgba(10, 14, 26, 0.6); }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; font: 500 clamp(20px, 2.6vw, 30px)/1 var(--font); color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: '✦'; font-size: 0.6em; color: var(--violet); }
.marquee-track span:nth-child(3n + 1) { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- pinned story ---------- */

.story { position: relative; height: 420vh; }
.story-stage {
  position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center;
  gap: clamp(24px, 5vw, 70px); padding: calc(var(--header) + 10px) var(--gutter) 30px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; overflow: hidden;
}
.story-copy { position: relative; }
.story-steps { position: relative; min-height: 270px; margin-top: 10px; }
.story-step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.story-step.on { opacity: 1; transform: none; pointer-events: auto; }
.story-step .num { font: 600 13px/1 var(--mono); color: var(--cyan); letter-spacing: 0.1em; }
.story-step h3 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 44px); }
.story-step p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 440px; }
.story-dots { display: flex; gap: 8px; margin-top: 8px; }
.story-dots i { height: 4px; width: 22px; border-radius: 4px; background: var(--line-strong); transition: width 0.5s var(--ease), background 0.5s; }
.story-dots i.on { width: 46px; background: var(--grad); }
.story-visual { position: relative; height: min(560px, 70svh); }
.story-beam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.device-laptop {
  position: absolute; left: 0; top: 8%; width: 78%; aspect-ratio: 16 / 10.4; border-radius: 14px; overflow: hidden;
  background: #050d1a; border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -40px rgba(31, 199, 164, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.02);
  transform: perspective(1200px) rotateY(calc(10deg - var(--sp, 0) * 14deg)) rotateX(4deg); transition: transform 0.2s linear;
}
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3150; }
.device-bar span { margin-left: 10px; font: 11px/1 var(--mono); color: var(--dim); }
.term { padding: 14px 16px; font: clamp(10px, 1.05vw, 13px)/1.75 var(--mono); color: #b8c2e0; }
.term .ln { white-space: pre-wrap; }
.term .ln { opacity: 0; transform: translateX(-8px); transition: opacity 0.35s, transform 0.35s var(--ease); }
.term .ln.on { opacity: 1; transform: none; }
.term .p { color: var(--cyan); } .term .a { color: var(--violet); } .term .ok { color: #7dffb0; } .term .q { color: var(--amber); }
.device-phone {
  position: absolute; right: 0; bottom: 0; width: 36%; max-width: 230px; aspect-ratio: 9 / 19; border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #1b2238, #0a0e1a); border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -30px rgba(96, 247, 183, 0.6);
  transform: translateY(calc((1 - var(--phone, 0)) * 60px)) rotate(calc(6deg - var(--phone, 0) * 6deg)); opacity: calc(0.25 + var(--phone, 0) * 0.75);
}
.phone-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #050d1a; padding: 34px 10px 12px; font-size: 11px; }
.phone-screen::before { content: ''; position: absolute; top: 9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 12px; background: #000; }
.phone-notif {
  border-radius: 14px; padding: 10px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  transform: translateY(calc((1 - var(--notif, 0)) * -120%)); opacity: var(--notif, 0);
}
.phone-notif b { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.phone-notif b::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: var(--grad); }
.phone-notif p { margin-top: 6px; color: var(--muted); line-height: 1.4; }
.phone-actions { display: flex; gap: 6px; margin-top: 8px; }
.phone-actions span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-weight: 600; }
.phone-actions span.yes { background: var(--cyan); color: #03140c; box-shadow: 0 0 0 calc(var(--tap, 0) * 6px) rgba(73, 239, 167, 0.25); }
.phone-term { position: absolute; left: 10px; right: 10px; top: 40px; margin-top: 0; font: 9.5px/1.6 var(--mono); color: #9aa6c9; opacity: var(--resume, 0); }
.phone-term .ok { color: #7dffb0; }
@media (max-width: 860px) {
  .story { height: 380vh; }
  .story-stage { grid-template-columns: 1fr; align-content: start; gap: 18px; padding-top: calc(var(--header) + 8px); }
  .story-steps { min-height: 200px; }
  .story-step p { font-size: 16px; }
  .story-visual { height: 46svh; }
}

/* ---------- cards ---------- */

.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(31, 199, 164, 0.16), transparent 45%);
}
.spotlight::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), rgba(73, 239, 167, 0.7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease); will-change: transform; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(26px, 4vw, 50px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden;
}
.feature-copy h2 { font-size: clamp(36px, 5vw, 64px); }
.feature-copy > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; }
.feature-list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); transform: rotate(45deg) translateY(-2px); }
.feature-shot { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 50px 120px -50px rgba(31, 199, 164, 0.6); }
.feature-shot img { width: 100%; height: auto; }
.feature-shot .phone-shot { position: absolute; right: 4%; bottom: 6%; width: 26%; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.9); }
.platform-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.chip svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.about-teaser { grid-template-columns: auto minmax(0, 1fr); }
.about-teaser h2 { font-size: clamp(32px, 4.4vw, 52px); }
@media (max-width: 700px) { .about-teaser { grid-template-columns: 1fr; } }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.product-hero .store-badges { justify-content: center; }
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px; overflow: hidden;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; cursor: default; user-select: none;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge > span { display: grid; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.78); }
.store-badge b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.store-badge::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(73, 239, 167, 0.22) 50%, transparent 65%); background-size: 250% 100%;
  animation: badge-sheen 4.5s ease-in-out infinite;
}
.store-badge + .store-badge::after { animation-delay: -2.2s; }
@keyframes badge-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }

/* ---------- posts ---------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); text-decoration: none; min-height: 300px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.post-card h3 { font-size: 23px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card .post-meta { margin-top: auto; font: 12.5px/1 var(--mono); color: var(--dim); }
.post-glyph {
  font: 600 34px/1 var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 0.6s var(--ease); transform-origin: 0 50%;
}
.post-card:hover .post-glyph { transform: scale(1.12) rotate(-3deg); }
.post-card-big { grid-column: 1 / -1; min-height: 320px; justify-content: flex-end; background: radial-gradient(800px 300px at 90% 0%, rgba(96, 247, 183, 0.18), transparent), var(--surface); }
.post-card-big h3 { font-size: clamp(28px, 4vw, 44px); max-width: 780px; }
.post-card-big p { max-width: 680px; font-size: 17px; }
.post-card-big .post-glyph { font-size: 64px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 99px; font: 500 11.5px/1.3 var(--mono); color: var(--cyan); background: rgba(73, 239, 167, 0.08); border: 1px solid rgba(73, 239, 167, 0.18); }

/* ---------- about / résumé ---------- */

.about-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.portrait {
  position: relative; width: clamp(150px, 22vw, 260px); aspect-ratio: 1; border-radius: 36px; display: grid; place-items: center;
  background: conic-gradient(from var(--a, 0deg), var(--cyan), var(--blue), var(--violet), var(--pink), var(--cyan)); padding: 3px; animation: spin 8s linear infinite;
}
.portrait span {
  width: 100%; height: 100%; border-radius: 33px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #1a2342, #050d1a);
  font: 700 clamp(48px, 7vw, 86px)/1 var(--font); letter-spacing: -0.04em;
}
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.about-hero h1 { font-size: clamp(44px, 8vw, 100px); letter-spacing: -0.045em; }
.about-hero .role { margin-top: 14px; font: 500 clamp(15px, 1.6vw, 18px)/1.5 var(--mono); color: var(--cyan); }
.about-hero .lede { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); max-width: 640px; }
.resume { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); }
.resume-side { position: sticky; top: calc(var(--header) + 24px); align-self: start; display: grid; gap: 28px; }
.resume-side h3 { font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.resume-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.resume-block + .resume-block { margin-top: clamp(50px, 7vw, 90px); }
.resume-block > h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 22px; }
.skill-bars { display: grid; gap: 16px; }
.skill { display: grid; gap: 8px; }
.skill-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.skill-top small { color: var(--dim); font: 12px/1.6 var(--mono); }
.skill-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease); }
.reveal.in .skill-bar i, .skill.in .skill-bar i { transform: scaleX(1); }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--violet), transparent); }
.tl-item { position: relative; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.tl-item h3 { font-size: 21px; }
.tl-item .when { font: 12.5px/1 var(--mono); color: var(--cyan); }
.tl-item p { margin-top: 10px; color: var(--muted); }
.tl-item .post-tags { margin-top: 14px; }
.lang-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 500; transition: transform 0.4s var(--ease), border-color 0.3s;
}
.lang:hover { transform: translateY(-4px); border-color: rgba(73, 239, 167, 0.4); }
.lang code { font-size: 12px; color: var(--dim); }
.lang svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; }
  .resume { grid-template-columns: 1fr; }
  .resume-side { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* ---------- product page ---------- */

.product-hero { position: relative; padding: calc(var(--header) + clamp(50px, 9vw, 110px)) var(--gutter) clamp(50px, 7vw, 80px); overflow: hidden; isolation: isolate; text-align: center; }
.product-hero .aurora { opacity: 0.5; }
.product-hero h1 { font-size: clamp(54px, 11vw, 140px); letter-spacing: -0.05em; }
.product-hero .lede { max-width: 700px; margin: 22px auto 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.product-hero .hero-cta { justify-content: center; }
.product-shot { max-width: 1100px; margin: clamp(40px, 6vw, 70px) auto 0; }
.app-icon { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 24px; box-shadow: 0 20px 60px -10px rgba(73, 239, 167, 0.5); animation: float 6s ease-in-out infinite; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bento > * { grid-column: span 2; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.bento > .wide { grid-column: span 3; }
.bento > .full { grid-column: 1 / -1; }
.bento h3 { font-size: 21px; margin: 14px 0 10px; }
.bento p { color: var(--muted); font-size: 15.5px; }
.bento .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(31, 199, 164, 0.12); color: var(--cyan); font: 600 18px/1 var(--mono); }
@media (max-width: 900px) { .bento > *, .bento > .wide { grid-column: span 3; } }
@media (max-width: 600px) { .bento > *, .bento > .wide { grid-column: 1 / -1; } }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.dl-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 6px 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.dl-card.recommended { border-color: rgba(73, 239, 167, 0.5); box-shadow: 0 0 0 1px rgba(73, 239, 167, 0.25), 0 20px 60px -30px rgba(73, 239, 167, 0.6); }
.dl-card.recommended .dl-platform::after { content: ' · your device'; color: var(--cyan); }
.dl-card.is-soon { opacity: 0.6; }
.dl-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.dl-icon svg { width: 28px; height: 28px; }
.dl-platform { font: 600 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.dl-body h3 { margin-top: 6px; font-size: 20px; }
.dl-note { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.dl-meta { margin-top: 8px; font-size: 13px; color: var(--dim); }
.dl-file { font-size: 12px; word-break: break-all; }
.dl-sha { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--dim); font: 12px/1.4 var(--mono); cursor: pointer; text-align: left; }
.dl-sha:hover { color: var(--cyan); }
.dl-sha.copied::after { content: '  copied'; color: var(--cyan); }
.dl-action { grid-column: 2; padding-top: 8px; }
.dl-soon { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1px dashed var(--line-strong); font: 600 12.5px/1 var(--mono); color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 64px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #03140c; font: 700 14px/1 var(--mono);
}
.steps code, .prose code { padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); font-size: 0.88em; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 30px; }
.two-col h3 { font-size: 24px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.two-col h3 svg { width: 24px; height: 24px; }
.callout { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 197, 107, 0.3); background: rgba(255, 197, 107, 0.06); color: #f3e2c4; font-size: 15px; margin-top: 16px; }

/* ---------- article ---------- */

.post-hero { position: relative; padding: calc(var(--header) + clamp(40px, 8vw, 100px)) var(--gutter) clamp(36px, 5vw, 60px); max-width: 920px; margin: 0 auto; isolation: isolate; }
.post-hero-bg { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: radial-gradient(600px 300px at 30% 30%, rgba(31, 199, 164, 0.18), transparent), radial-gradient(500px 260px at 75% 20%, rgba(163, 249, 224, 0.12), transparent); }
.crumbs { display: flex; gap: 10px; font: 13px/1 var(--mono); color: var(--dim); margin-bottom: 22px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--cyan); }
.post-title { margin-top: 18px; font-size: clamp(38px, 6.4vw, 72px); letter-spacing: -0.04em; }
.post-lede { margin-top: 22px; font-size: clamp(18px, 2vw, 22px); color: var(--muted); }
.post-byline { margin-top: 22px; font: 13px/1.5 var(--mono); color: var(--dim); }
.post-byline a { color: var(--text); text-decoration: none; }
.prose { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); font-size: 18.5px; line-height: 1.75; color: #ccd3e8; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(28px, 3.4vw, 36px); color: var(--text); }
.prose h3 { margin-top: 1.8em; font-size: 23px; color: var(--text); }
.prose a { color: var(--cyan); text-decoration-color: rgba(73, 239, 167, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--cyan); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--violet); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid; border-image: var(--grad) 1; color: var(--text); font-size: 1.08em; }
.prose pre { padding: 18px 20px; border-radius: var(--radius-sm); background: #050d1a; border: 1px solid var(--line); overflow-x: auto; font-size: 14px; line-height: 1.65; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; white-space: nowrap; }
.prose .callout { font-size: 16px; }
.post-author { display: flex; gap: 18px; align-items: center; max-width: 760px; margin: 60px auto 0; padding: 22px var(--gutter); border-block: 1px solid var(--line); color: var(--muted); }
.avatar { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #03140c; font-weight: 700; font-size: 20px; }
.post-author a { color: var(--text); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: clamp(50px, 8vw, 90px) var(--gutter); border-radius: 32px; isolation: isolate;
  background: radial-gradient(900px 400px at 50% 120%, rgba(31, 199, 164, 0.35), transparent), var(--surface-solid); border: 1px solid var(--line-strong);
}
.cta-band h2 { font-size: clamp(34px, 6vw, 72px); }
.cta-band p { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }
.cta-band .hero-cta { justify-content: center; }
.cta-rings { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.cta-rings i { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(73, 239, 167, 0.25); animation: ring 6s var(--ease) infinite; }
.cta-rings i:nth-child(2) { animation-delay: -2s; } .cta-rings i:nth-child(3) { animation-delay: -4s; }
@keyframes ring { from { transform: scale(0.4); opacity: 1; } to { transform: scale(4); opacity: 0; } }

/* ---------- footer ---------- */

.site-footer { position: relative; overflow: hidden; margin-top: clamp(60px, 10vw, 120px); border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 80px) var(--gutter) 30px; }
.footer-glow { position: absolute; left: 50%; top: -200px; width: 900px; height: 400px; margin-left: -450px; background: radial-gradient(closest-side, rgba(31, 199, 164, 0.18), transparent); pointer-events: none; }
.footer-grid { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 320px; font-size: 15px; }
.footer-h { font: 600 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-links { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; width: fit-content; } .footer-links a:hover { color: var(--text); }
.platform-row { display: flex; gap: 12px; }
.platform {
  display: grid; justify-items: center; gap: 8px; width: 92px; padding: 16px 8px 12px; border-radius: 16px; text-decoration: none; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.platform svg { width: 34px; height: 34px; transition: transform 0.5s var(--ease); }
.platform:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-4px); }
.platform:hover svg { transform: scale(1.1); }
.platform[title="Android"]:hover { color: #3ddc84; }
.footer-base { position: relative; max-width: var(--max); margin: 50px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: 13px; color: var(--dim); }
.footer-base .tm { max-width: 620px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.tilt.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.no-js .reveal { opacity: 1; transform: none; }

.notfound { min-height: 80svh; display: grid; place-content: center; text-align: center; padding: var(--header) var(--gutter) 0; }
.notfound h1 { font: 700 clamp(100px, 26vw, 260px)/1 var(--mono); letter-spacing: -0.06em; }
.notfound p { color: var(--muted); font-size: 19px; margin: 10px 0 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  [data-split] .w > span { transform: none; }
  .story { height: auto; }
  .story-stage { position: relative; height: auto; }
  .story-step { position: relative; opacity: 1; transform: none; margin-bottom: 28px; }
  .story-steps { min-height: 0; }
}
