/* ============ GeanTech ============ */
:root {
  --bg: #05060a;
  --bg-2: #0b0d14;
  --card: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
  --text: #eef0f6;
  --muted: #8b90a3;
  --violet: #8b5cff;
  --cyan: #22e3ff;
  --lime: #c6ff3d;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan) 60%, var(--lime));
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--violet); color: #fff; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
kbd { font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.04); }

/* noise + scroll bar */
.noise { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' 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)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }
.scroll-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* cursor */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 200; display: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 6px; height: 6px; background: #fff; mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; mix-blend-mode: difference; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; background: #fff; border-color: transparent; }
.cursor-ring::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font: 600 10px var(--f-mono); letter-spacing: .08em; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-view .cursor-ring { width: 88px; height: 88px; background: #fff; }
.cursor.is-view .cursor-ring::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } body, a, button { cursor: none; } input { cursor: text; } }

/* NAV */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1180px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(8,9,14,.55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: transform .5s var(--ease), background .3s; }
.nav.is-hidden { transform: translate(-50%, -140%); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.logo b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { width: 28px; height: 28px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255,255,255,.06); }
.kbd-btn { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); transition: border-color .2s, color .2s; }
.kbd-btn:hover { border-color: var(--line-2); color: var(--text); }
.kbd-btn svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .nav-links { display: none; } .kbd-btn kbd { display: none; } }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad) 80px; overflow: hidden; isolation: isolate; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 40% at 25% 30%, rgba(139,92,255,.28), transparent 70%), radial-gradient(35% 35% at 80% 70%, rgba(34,227,255,.18), transparent 70%), radial-gradient(30% 30% at 60% 10%, rgba(198,255,61,.08), transparent 70%);
  animation: glow 14s ease-in-out infinite alternate; }
@keyframes glow { to { transform: scale(1.15) rotate(6deg); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  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(70% 60% at 50% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%); opacity: .5; }
.hero-inner { width: 100%; max-width: 1180px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,255,61,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(198,255,61,0); } }
.hero-title { margin: 28px 0 8px; font-family: var(--f-display); font-weight: 800; font-size: clamp(72px, 23vw, 240px); line-height: .86; letter-spacing: -.045em; }
.ht-line { display: block; overflow: hidden; padding: 0 .04em; position: relative; }
.ht-word { display: inline-block; }
.ht-word .ch { display: inline-block; transform: translateY(110%) rotate(8deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + 150ms); }
.is-loaded .ht-word .ch { transform: none; }
.ht-outline .ch { color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85);
  background-image: var(--grad); background-repeat: no-repeat; background-size: 400% 0%; background-position: var(--px) 100%;
  -webkit-background-clip: text; background-clip: text; }
.is-loaded .ht-outline .ch { animation: fillUp 1.3s calc(1.3s + var(--j) * 110ms) var(--ease) forwards; }
@keyframes fillUp { to { background-size: 400% 100%; -webkit-text-stroke-color: transparent; } }

/* 3D cube */
.ht-cube { position: relative; display: inline-block; vertical-align: top; margin: .14em 0 0 .16em; width: .3em; height: .3em; transform-style: preserve-3d; animation: cube 9s linear infinite; }
.ht-cube i { position: absolute; inset: 0; border: 2px solid var(--cyan); background: rgba(34,227,255,.07); box-shadow: inset 0 0 20px rgba(34,227,255,.25); }
.ht-cube i:nth-child(1) { transform: translateZ(.15em); }
.ht-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(.15em); }
.ht-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(.15em); border-color: var(--violet); }
.ht-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(.15em); border-color: var(--violet); }
.ht-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(.15em); border-color: var(--lime); }
.ht-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(.15em); border-color: var(--lime); }
@keyframes cube { to { transform: rotateX(360deg) rotateY(720deg); } }
@media (max-width: 700px) { .ht-cube { display: none; } }

.hero-sub { font-size: clamp(20px, 3vw, 32px); line-height: 1.3; margin: 26px auto 0; max-width: 760px; color: var(--muted); letter-spacing: -.01em; }
.hero-sub em { font-style: normal; color: var(--text); }
.scramble { font-family: var(--f-mono); color: var(--text); padding: 0 .25em; border-radius: 8px; background: linear-gradient(90deg, rgba(139,92,255,.25), rgba(34,227,255,.18)); white-space: nowrap; }
.br-m { display: none; }
@media (max-width: 600px) { .eb-loc { display: none; } }
@media (max-width: 600px) { .br-m { display: inline; } }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(20px, 6vw, 72px); margin: 64px 0 0; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats dt { font: 600 clamp(28px, 4vw, 44px)/1 var(--f-display); letter-spacing: -.03em; }
.hero-stats dd { margin: 8px 0 0; font: 400 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; border-radius: 2px; background: var(--text); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #05060a; background: #fff; }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn-primary:hover::before { transform: none; }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); }
.btn-small { padding: 9px 14px; font-size: 13px; border: 1px solid var(--line-2); border-radius: 10px; }
.btn-small:hover { background: #fff; color: #000; }

/* MARQUEE */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font: 600 clamp(18px, 2.4vw, 28px) var(--f-display); letter-spacing: -.02em; color: rgba(255,255,255,.75); white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-size: .6em; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--pad) 0; }
.section-head { max-width: 820px; margin-bottom: 48px; }
.kicker { font: 500 13px var(--f-mono); color: var(--cyan); letter-spacing: .04em; margin: 0 0 16px; }
.section h2 { font: 800 clamp(40px, 7vw, 92px)/.95 var(--f-display); letter-spacing: -.045em; margin: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 620px; margin: 22px 0 0; }

/* toolbar */
.toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 32px; position: relative; z-index: 20; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8,9,14,.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
@media (min-width: 1000px) { .toolbar { flex-wrap: nowrap; } .filters { min-width: 0; } .search { flex: 0 0 280px; } }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; font-size: 14px; color: var(--muted); border: 1px solid transparent; transition: all .25s var(--ease); }
.chip sup { font: 500 10px var(--f-mono); color: var(--muted); opacity: .8; }
.chip:hover { color: var(--text); background: rgba(255,255,255,.05); }
.chip.is-on { color: #05060a; background: #fff; }
.chip.is-on sup { color: #05060a; }
.search { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 320px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.03); }
.search:focus-within { border-color: var(--violet); }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { width: 100%; padding: 10px 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
@media (max-width: 700px) { .search { max-width: none; } }

/* GRID + CARDS */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; perspective: 1400px; }
.card { grid-column: span 4; position: relative; border-radius: 22px; padding: 1px; background: linear-gradient(160deg, var(--line-2), transparent 40%, var(--line)); transform-style: preserve-3d; transition: transform .6s var(--ease), opacity .5s, box-shadow .5s; will-change: transform; outline: none; }
.card.is-feature { grid-column: span 8; }
.card-inner { position: relative; height: 100%; border-radius: 21px; background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: 23px; z-index: -1; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: 0; filter: blur(24px); transition: opacity .5s; }
.card:hover::before, .card:focus-visible::before { opacity: .55; }
.card:focus-visible { box-shadow: 0 0 0 2px var(--cyan); }
.card-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 40%); opacity: 0; transition: opacity .3s; }
.card:hover .card-glare { opacity: 1; }
.shot { position: relative; margin: 10px 10px 0; border-radius: 14px; overflow: hidden; background: #0f1119; border: 1px solid var(--line); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.shot-bar i:first-child { background: #ff5f57; } .shot-bar i:nth-child(2) { background: #febc2e; } .shot-bar i:nth-child(3) { background: #28c840; }
.shot-bar span { margin-left: 8px; font: 400 11px var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.shot-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 0% 0%, var(--c1), transparent 60%), radial-gradient(120% 90% at 100% 100%, var(--c2), transparent 60%), #0b0c12; }
.shot-fallback b { font: 800 clamp(48px, 7vw, 96px)/1 var(--f-display); letter-spacing: -.06em; color: rgba(255,255,255,.92); mix-blend-mode: overlay; }
.shot-fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 2.2s infinite; }
.shot.is-ready .shot-fallback::after { display: none; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.shot.is-ready img { opacity: 1; transform: none; }
.card:hover .shot.is-ready img { transform: scale(1.05); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-cat { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card-cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.card-n { font: 500 11px var(--f-mono); color: rgba(255,255,255,.3); }
.card h3 { font: 600 clamp(20px, 2vw, 24px)/1.15 var(--f-display); letter-spacing: -.03em; margin: 0; }
.card-client { margin: 0; color: var(--muted); font-size: 14px; }
.card-desc { margin: 0; color: rgba(238,240,246,.75); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.tags li { font: 400 11.5px var(--f-mono); padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); color: rgba(238,240,246,.8); background: rgba(255,255,255,.025); }
.card-live { position: absolute; top: 20px; right: 20px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; font: 500 10px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; color: #05060a; background: var(--lime); box-shadow: 0 4px 20px rgba(198,255,61,.35); }
.card-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #05060a; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.card.is-hidden { display: none; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

@media (max-width: 1080px) { .card { grid-column: span 6; } .card.is-feature { grid-column: span 12; } }
@media (max-width: 680px) { .grid { gap: 16px; } .card, .card.is-feature { grid-column: span 12; } }

/* BENTO */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento-card { position: relative; overflow: hidden; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); min-height: 230px; transition: border-color .3s, transform .6s var(--ease); transform-style: preserve-3d; }
.bento-card:hover { border-color: var(--line-2); }
.bento-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(139,92,255,.16), transparent 45%); opacity: 0; transition: opacity .3s; }
.bento-card:hover::after { opacity: 1; }
.b-lg { grid-column: span 2; grid-row: span 2; }
.b-wide { grid-column: span 4; min-height: 200px; }
.b-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, rgba(139,92,255,.25), rgba(34,227,255,.15)); border: 1px solid var(--line-2); margin-bottom: 22px; }
.b-icon svg { width: 22px; height: 22px; }
.bento-card h3 { font: 600 22px/1.15 var(--f-display); letter-spacing: -.03em; margin: 0 0 10px; }
.bento-card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 460px; }
.b-lg h3 { font-size: clamp(26px, 3vw, 38px); }
.b-art-browser { position: absolute; left: 28px; right: -40px; bottom: -40px; height: 46%; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(139,92,255,.3), rgba(34,227,255,.1) 60%, transparent); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.b-art-browser span { height: 10px; border-radius: 6px; background: rgba(255,255,255,.15); }
.b-art-browser span:nth-child(1) { width: 40%; } .b-art-browser span:nth-child(2) { width: 70%; height: 28px; background: rgba(255,255,255,.22); } .b-art-browser span:nth-child(3) { width: 55%; }
.b-art-chart { position: absolute; right: 24px; bottom: 24px; display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.b-art-chart i { width: 14px; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--cyan), rgba(139,92,255,.3)); transform-origin: bottom; transform: scaleY(.2); transition: transform 1s var(--ease); }
.b-art-chart i:nth-child(n) { transition-delay: calc(var(--d, 0) * 1ms); }
.bento-card.in .b-art-chart i { transform: none; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .b-lg { grid-row: auto; min-height: 340px; } .b-wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .b-lg, .b-wide { grid-column: auto; } .b-art-chart { opacity: .35; } }

/* PROCESS */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.step { position: relative; padding: 32px 28px 8px 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--grad); transition: width 1.2s var(--ease); }
.step.in::before { width: calc(100% - 24px); }
.step-n { font: 500 13px var(--f-mono); color: var(--cyan); }
.step h3 { font: 600 24px/1.1 var(--f-display); letter-spacing: -.03em; margin: 14px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* CONTACT */
.contact { text-align: center; padding-bottom: clamp(80px, 12vw, 140px); overflow: hidden; }
.contact .lead { margin-inline: auto; }
.contact-title { font-size: clamp(44px, 9vw, 128px) !important; }
.contact-orb { position: absolute; left: 50%; top: 55%; width: min(720px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--lime), var(--violet)); filter: blur(110px); opacity: .22; animation: spin 18s linear infinite; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* FOOTER */
.footer { max-width: 1280px; margin: 0 auto; padding: 28px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); font: 400 12px var(--f-mono); color: var(--muted); }
.footer a:hover { color: var(--text); }
@media (max-width: 600px) { .footer-mid { display: none; } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card.pre { opacity: 0; transform: translateY(60px) rotateX(12deg); }

/* MODAL */
.modal, .palette { position: fixed; inset: 0; z-index: 150; }
.modal[hidden], .palette[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,8,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal-panel { position: absolute; inset: 16px; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 22px; background: #080910; overflow: hidden; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.m-cat { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.m-meta h3 { margin: 2px 0 0; font: 600 20px/1.2 var(--f-display); letter-spacing: -.03em; }
.m-actions { display: flex; align-items: center; gap: 8px; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; }
.seg-btn { width: 36px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.seg-btn svg { width: 17px; height: 17px; }
.seg-btn.is-on { background: #fff; color: #000; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: all .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.05); }
.modal-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 320px; }
.stage { position: relative; display: grid; place-items: center; padding: 22px; min-height: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(139,92,255,.12), transparent 70%), repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, var(--line) 31px 32px); overflow: hidden; }
.device { width: 100%; height: 100%; max-width: 1400px; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line-2); background: #0f1119; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.6); transition: max-width .6s var(--ease), border-radius .6s var(--ease); }
.device.is-mobile { max-width: 390px; border-radius: 38px; border-width: 8px; border-color: #1c1f2b; }
.device.is-mobile .device-bar { display: none; }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .device-bar i:nth-child(2) { background: #febc2e; } .device-bar i:nth-child(3) { background: #28c840; }
.device-bar span { margin-left: 10px; flex: 1; max-width: 420px; padding: 4px 12px; border-radius: 8px; font: 400 12px var(--f-mono); color: var(--muted); background: rgba(255,255,255,.05); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.device-screen { position: relative; flex: 1; background: #fff; }
.device-screen iframe, .device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.device-screen img { object-fit: cover; object-position: top; }
.device-screen iframe { background: transparent; }
.m-blocked { position: absolute; inset: 0; display: grid; place-content: center; gap: 18px; justify-items: center; text-align: center; padding: 24px; background: rgba(8,9,16,.82); backdrop-filter: blur(6px); }
.m-blocked[hidden] { display: none; }
.m-blocked p { max-width: 340px; margin: 0; color: var(--text); }
.m-loader { position: absolute; inset: 0; display: grid; place-items: center; background: #0b0c12; transition: opacity .5s; }
.m-loader.is-done { opacity: 0; pointer-events: none; }
.m-loader span { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
.m-info { border-left: 1px solid var(--line); padding: 26px 24px; overflow-y: auto; }
.m-client { margin: 0 0 12px; font: 500 13px var(--f-mono); color: var(--muted); }
.m-desc { margin: 0 0 20px; font-size: 16px; color: rgba(238,240,246,.85); }
.m-extra { margin-top: 24px; display: grid; gap: 8px; }
.m-extra p { margin: 0 0 4px; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.m-extra a { display: flex; justify-content: space-between; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line); font-size: 14px; transition: all .2s; }
.m-extra a:hover { border-color: var(--cyan); background: rgba(34,227,255,.06); }
@media (max-width: 900px) {
  .modal-panel { inset: 0; border-radius: 0; }
  .modal-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .m-info { border-left: 0; border-top: 1px solid var(--line); max-height: 32vh; padding: 18px; }
  .stage { padding: 12px; }
  .modal-top { padding: 12px; }
  .m-meta h3 { font-size: 16px; }
  .seg { display: none; }
}
@media (max-width: 520px) { .m-actions .btn-small { padding: 8px 10px; } #mPrev, #mNext { display: none; } }

/* PALETTE */
.palette-box { position: absolute; top: 12vh; left: 50%; transform: translateX(-50%); width: min(620px, calc(100% - 24px)); border: 1px solid var(--line-2); border-radius: 18px; background: rgba(12,13,20,.96); box-shadow: 0 40px 120px rgba(0,0,0,.7); overflow: hidden; animation: pop .35s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 18px; height: 18px; color: var(--muted); }
.palette-input input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow-y: auto; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.palette-list li.is-sel { background: rgba(255,255,255,.07); }
.p-dot { width: 28px; height: 28px; border-radius: 8px; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.p-txt { flex: 1; min-width: 0; }
.p-txt b { display: block; font-weight: 500; font-size: 15px; }
.p-txt small { display: block; color: var(--muted); font: 400 11.5px var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-go { font: 400 11px var(--f-mono); color: var(--muted); }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.palette-foot kbd { margin-right: 3px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .card.pre { opacity: 1; transform: none; }
}
