/* ================================================================
   COREX — design system
   ================================================================ */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f2ed;
  --muted: #8f8e88;
  --accent: #c6ff34;
  --accent-ink: #0a0a0b;
  --accent-soft: rgba(198, 255, 52, 0.12);

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::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: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.eyebrow .num { color: var(--text); font-family: var(--f-display); letter-spacing: 0; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.02; }
.h-sec { font-size: clamp(36px, 6vw, 84px); }
.h-sec em, .hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 640px; margin: 0; }

.sec { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .sec-head.split { grid-template-columns: 1.4fr 1fr; gap: 48px; } }

/* ---------- buttons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d8ff6e; }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { --h: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.scrolled { background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.hdr.hide { transform: translateY(-100%); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark .core { fill: var(--accent); }
.logo-mark .ring { fill: none; stroke: var(--text); stroke-width: 1.6; }
.logo:hover .logo-mark .ring { animation: spin 3s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav { display: none; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.hdr-cta { display: none; }

.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: background 0.2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1040px) { .nav { display: flex; } .hdr-cta { display: inline-flex; } .burger { display: none; } }

.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.menu-open .mnav { opacity: 1; visibility: visible; }
.mnav a { font-family: var(--f-display); font-size: clamp(32px, 9vw, 56px); font-weight: 600; padding: 6px 0; display: flex; gap: 16px; align-items: baseline; }
.mnav a small { font-size: 14px; color: var(--muted); font-family: var(--f-body); }
.mnav .btn { margin-top: 32px; align-self: flex-start; }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 0; position: relative; overflow: hidden; }
#core-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,11,0) 38%), linear-gradient(90deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0) 60%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted);
  background: rgba(10,10,11,0.4); backdrop-filter: blur(6px);
}
.chip b { color: var(--accent); font-weight: 700; }
.hero h1 { font-size: clamp(44px, 9.2vw, 148px); line-height: 0.95; letter-spacing: -0.035em; max-width: 13ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.16s; }
@keyframes rise { to { transform: none; } }
.hero-bottom { display: grid; gap: 32px; margin-top: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .hero-bottom { grid-template-columns: 1fr auto; align-items: end; } }
.hero-bottom p { margin: 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 520px; }
.hero-bottom p strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s var(--ease) 0.45s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* marquee */
.marquee { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); }
.marquee-track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-size: clamp(22px, 3vw, 38px); font-weight: 500; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 36px 24px 36px 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stats .stat:nth-child(3) { border-left: 0; padding-left: 0; }
@media (min-width: 900px) { .stats .stat:nth-child(3) { border-left: 1px solid var(--line); padding-left: 24px; } }
.stat b { display: block; white-space: nowrap; font-family: var(--f-display); font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat b sup { font-size: 0.32em; color: var(--accent); vertical-align: top; margin-left: 6px; letter-spacing: 0; }
.stat span { display: block; color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- services ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  background: var(--bg); padding: 36px 32px 32px; min-height: 300px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: background 0.4s;
}
.svc::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.svc:hover { background: var(--bg-2); }
.svc:hover::before { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.svc-num { font-family: var(--f-display); font-size: 14px; color: var(--muted); }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; }
.svc-ico svg { width: 24px; height: 24px; stroke: var(--text); fill: none; stroke-width: 1.6; transition: stroke 0.3s; }
.svc:hover .svc-ico { background: var(--accent); border-color: var(--accent); }
.svc:hover .svc-ico svg { stroke: var(--accent-ink); }
.svc h3 { font-size: clamp(22px, 2vw, 28px); margin: 40px 0 12px; position: relative; }
.svc p { color: var(--muted); margin: 0 0 20px; font-size: 16px; position: relative; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.tag { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,0.05); color: #c9c8c2; }

/* ---------- quiz ---------- */
.quiz {
  border: 1px solid var(--line); border-radius: calc(var(--r) + 8px); background: var(--bg-2);
  display: grid; overflow: hidden;
}
@media (min-width: 1000px) { .quiz { grid-template-columns: 380px 1fr; } }
.quiz-side { padding: 40px 36px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; background: linear-gradient(160deg, rgba(198,255,52,0.08), transparent 60%); }
@media (min-width: 1000px) { .quiz-side { border-bottom: 0; border-right: 1px solid var(--line); } }
.quiz-side h3 { font-size: 28px; }
.quiz-side p { margin: 0; color: var(--muted); }
.quiz-steps { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 4px; }
.quiz-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); padding: 8px 0; transition: color 0.3s; }
.quiz-steps li i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; transition: all 0.3s; flex: none; }
.quiz-steps li.on { color: var(--text); }
.quiz-steps li.on i { border-color: var(--accent); color: var(--accent); }
.quiz-steps li.done i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.quiz-main { padding: 40px 36px; display: flex; flex-direction: column; min-height: 460px; }
.quiz-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 32px; }
.quiz-bar i { display: block; height: 100%; width: 20%; background: var(--accent); transition: width 0.5s var(--ease); }
.quiz-q { display: none; animation: qIn 0.5s var(--ease); }
.quiz-q.active { display: block; }
@keyframes qIn { from { opacity: 0; transform: translateX(16px); } }
.quiz-q h4 { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); margin: 0 0 6px; letter-spacing: -0.01em; }
.quiz-q .hint { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .opts { grid-template-columns: repeat(2, 1fr); } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; transition: all 0.2s; min-height: 64px;
}
.opt label::before { content: ""; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); flex: none; transition: all 0.2s; }
.opt input[type="radio"] + label::before { border-radius: 50%; }
.opt label:hover { border-color: var(--muted); background: rgba(255,255,255,0.02); }
.opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.opt input:checked + label::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg-2); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 32px; gap: 12px; }
.quiz-count { font-family: var(--f-display); font-size: 14px; color: var(--muted); }
.quiz-nav .btn[disabled] { opacity: 0.35; pointer-events: none; }

.quiz-result { display: none; animation: qIn 0.6s var(--ease); }
.quiz-result.active { display: block; }
.quiz-result .badge { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.quiz-result h4 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); margin: 20px 0 12px; letter-spacing: -0.02em; }
.quiz-result p { color: var(--muted); max-width: 560px; }
.quiz-result ul { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.quiz-result li { display: flex; gap: 12px; align-items: flex-start; }
.quiz-result li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; flex: none; border-radius: 50%; background: var(--accent-soft); border: 1.5px solid var(--accent); }
.quiz-result .row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- cases ---------- */
.cases-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }
.case { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.case-meta > div { min-width: 0; }
.case-cover {
  aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; position: relative;
  background: var(--bg-3); isolation: isolate;
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.case:hover .case-cover img, .case:hover .gen { transform: scale(1.04); }
.gen {
  position: absolute; inset: 0; transition: transform 0.8s var(--ease);
  background:
    radial-gradient(circle at var(--gx) var(--gy), hsla(var(--h), 90%, 60%, 0.55), transparent 55%),
    radial-gradient(circle at calc(100% - var(--gx)) 100%, hsla(calc(var(--h) + 40), 80%, 45%, 0.35), transparent 50%),
    linear-gradient(160deg, #19191c, #0d0d0f);
}
.gen::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}
.gen-mono {
  position: absolute; left: 24px; bottom: 14px; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(64px, 9vw, 120px); line-height: 1; letter-spacing: -0.05em; color: rgba(255,255,255,0.92);
  mix-blend-mode: overlay; z-index: 3;
}
/* device mocks */
.mock { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,0.22); background: rgba(12,12,14,0.55); backdrop-filter: blur(8px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.mock-browser { right: -8%; top: 16%; width: 72%; height: 78%; border-radius: 12px; }
.mock-browser::before { content: ""; position: absolute; left: 12px; top: 11px; width: 34px; height: 8px; background: radial-gradient(circle, rgba(255,255,255,.4) 3px, transparent 3.5px) 0 0 / 12px 8px repeat-x; }
.mock-browser i { position: absolute; left: 0; right: 0; top: 30px; border-top: 1px solid rgba(255,255,255,0.12); }
.mock-browser b { position: absolute; left: 16px; top: 52px; width: 55%; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.35); box-shadow: 0 22px 0 -2px rgba(255,255,255,0.15), 0 40px 0 -2px rgba(255,255,255,0.12); }
.mock-browser em { position: absolute; left: 16px; bottom: 16px; width: 70px; height: 22px; border-radius: 999px; background: hsla(var(--h), 90%, 65%, 0.9); }
.mock-phone { right: 12%; top: 12%; width: 32%; height: 96%; border-radius: 26px; }
.mock-phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 30%; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.3); transform: translateX(-50%); }
.mock-phone b { position: absolute; left: 12%; right: 12%; top: 18%; height: 34%; border-radius: 14px; background: hsla(var(--h), 90%, 62%, 0.5); }
.mock-phone em { position: absolute; left: 12%; right: 30%; top: 58%; height: 8px; border-radius: 6px; background: rgba(255,255,255,0.35); box-shadow: 0 18px 0 rgba(255,255,255,0.15), 0 34px 0 rgba(255,255,255,0.12); }
.mock-dash { right: -6%; top: 18%; width: 74%; height: 76%; border-radius: 12px; display: flex; gap: 8px; padding: 14px; align-items: flex-end; }
.mock-dash::before { content: ""; position: absolute; left: 14px; top: 14px; width: 40%; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.35); }
.mock-dash i { flex: 1; border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,0.18); }
.mock-dash i:nth-child(3n) { background: hsla(var(--h), 90%, 62%, 0.85); }

.case-type { position: absolute; left: 16px; top: 16px; z-index: 3; }
.case-type .chip { height: 30px; font-size: 12.5px; padding: 0 12px; color: var(--text); }
.case-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.case h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.case p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.case-ind { font-size: 13px; color: var(--muted); padding-top: 4px; text-align: right; flex: none; max-width: 42%; }
.case-wide { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .cases-grid.featured .case:nth-child(6n + 1) { grid-column: span 2; }
  .cases-grid.featured .case:nth-child(6n + 1) .case-cover { aspect-ratio: auto; height: 100%; min-height: 360px; }
}
.cases-more { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- industries ---------- */
.ind-list { border-top: 1px solid var(--line); }
.ind {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding 0.4s var(--ease);
}
.ind::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); z-index: -1; }
.ind:hover { padding-left: 20px; padding-right: 20px; color: var(--accent-ink); }
.ind:hover::before { transform: scaleY(1); }
.ind-n { font-family: var(--f-display); font-size: 14px; color: var(--muted); transition: color 0.3s; }
.ind:hover .ind-n, .ind:hover .ind-c { color: var(--accent-ink); }
.ind h3 { font-size: clamp(22px, 3.4vw, 44px); font-weight: 500; }
.ind-c { color: var(--muted); font-size: 15px; transition: color 0.3s; text-align: right; }
.ind-list-wrap { position: relative; isolation: isolate; }

/* ---------- process ---------- */
.proc { display: grid; gap: 40px; }
@media (min-width: 1000px) { .proc { grid-template-columns: 1fr 1fr; gap: 80px; } }
.proc-sticky { position: relative; }
@media (min-width: 1000px) { .proc-sticky { position: sticky; top: 120px; align-self: start; } }
.proc-big {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(120px, 22vw, 300px); line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-2); margin-top: 32px; position: relative;
}
.proc-big span { position: absolute; left: 0; top: 0; color: var(--accent); -webkit-text-stroke: 0; clip-path: inset(var(--fill, 100%) 0 0 0); transition: clip-path 0.6s var(--ease); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { padding: 36px 0; border-top: 1px solid var(--line); opacity: 0.35; transition: opacity 0.5s; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step.on { opacity: 1; }
.step-h { display: flex; align-items: baseline; gap: 20px; }
.step-h span { font-family: var(--f-display); font-size: 14px; color: var(--accent); }
.step h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; }
.step p { color: var(--muted); margin: 14px 0 0 0; padding-left: 44px; max-width: 520px; }
.step .tags { padding-left: 44px; margin-top: 16px; }

/* ---------- why ---------- */
.why-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why { padding: 32px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); transition: transform 0.4s var(--ease), border-color 0.4s; }
.why:hover { transform: translateY(-6px); border-color: var(--line-2); }
.why svg { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.why h3 { font-size: 21px; margin: 28px 0 10px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.why p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { border-radius: var(--r); border: 1px solid var(--line); padding: 36px 32px; display: flex; flex-direction: column; background: var(--bg-2); position: relative; overflow: hidden; }
.price.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.price.hot .price-k, .price.hot li, .price.hot .price-note { color: rgba(10,10,11,0.72); }
.price.hot li::before { background: var(--accent-ink); }
.price-k { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price h3 { font-size: 28px; margin: 18px 0 8px; line-height: 1.1; }
.price-note { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.price ul { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.price li { display: flex; gap: 12px; color: #c9c8c2; }
.price li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; flex: none; }
.price .btn { margin-top: auto; align-self: flex-start; }
.price.hot .btn-primary { background: var(--accent-ink); color: var(--accent); }
.price-foot { margin-top: 32px; color: var(--muted); font-size: 15px; max-width: 780px; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: 1fr 1.4fr; gap: 80px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: all 0.3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { color: var(--muted); padding: 0 64px 28px 0; margin: 0; }

/* ---------- contact ---------- */
.cta-sec { padding-top: 0; }
.cta-box { border-radius: calc(var(--r) + 12px); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; display: grid; position: relative; }
@media (min-width: 1000px) { .cta-box { grid-template-columns: 1fr 1.1fr; } }
.cta-left { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.cta-left::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -200px; bottom: -280px; background: radial-gradient(circle, rgba(198,255,52,0.22), transparent 65%); pointer-events: none; }
.cta-left h2 { font-size: clamp(36px, 4.6vw, 64px); }
.contacts { display: grid; gap: 4px; margin-top: auto; position: relative; z-index: 1; }
.contacts a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); font-weight: 600; transition: color 0.2s; }
.contacts a span { color: var(--muted); font-weight: 500; font-size: 14px; }
.contacts a:hover { color: var(--accent); }

.form { padding: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); display: grid; gap: 20px; align-content: start; }
@media (min-width: 1000px) { .form { border-top: 0; border-left: 1px solid var(--line); } }
.form .row2 { display: grid; gap: 20px; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 26px 0 12px; font-size: 17px; outline: none; transition: border-color 0.3s; resize: none; border-radius: 0;
}
.field textarea { min-height: 110px; }
.field label { position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none; transition: all 0.25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: 13px; color: var(--accent); }
.field.err input, .field.err textarea { border-color: #ff5c5c; }
.field .msg { font-size: 13px; color: #ff5c5c; margin-top: 6px; display: none; }
.field.err .msg { display: block; }
.form-label { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill label { display: inline-flex; height: 40px; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pill label:hover { border-color: var(--muted); }
.pill input:checked + label { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent.err { color: #ff5c5c; }
.form-ok { display: none; text-align: left; padding: 24px; border-radius: var(--r-sm); background: var(--accent-soft); border: 1px solid var(--accent); }
.form-ok.show { display: block; }
.form-ok b { display: block; font-family: var(--f-display); font-size: 20px; margin-bottom: 6px; }
.form-ok p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.ftr { padding: 80px 0 32px; border-top: 1px solid var(--line); }
.ftr-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ftr p { color: var(--muted); max-width: 320px; font-size: 15px; }
.ftr h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 600; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a { font-size: 15px; transition: color 0.2s; }
.ftr ul a:hover { color: var(--accent); }
.ftr-word {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 16vw, 250px); letter-spacing: -0.05em; line-height: 0.85; white-space: nowrap; overflow: hidden;
  margin: 72px 0 32px; background: linear-gradient(180deg, var(--text) 0%, rgba(243,242,237,0.06) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; text-align: center;
}
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }
.ftr-bot button { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ftr-bot button:hover { color: var(--text); }

/* ---------- cases page ---------- */
.page-hero { padding: 160px 0 60px; }
.page-hero h1 { font-size: clamp(48px, 9vw, 140px); letter-spacing: -0.04em; margin: 24px 0; }
.page-hero h1 sup { font-size: 0.25em; color: var(--accent); vertical-align: top; margin-left: 8px; letter-spacing: 0; }
.filters { position: sticky; top: 76px; z-index: 20; background: rgba(10,10,11,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 48px; }
.filters .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; }
.seg button { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.seg button sup { font-size: 11px; margin-left: 4px; opacity: 0.6; }
.seg button.on { background: var(--text); color: var(--bg); }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; padding: 0 20px 0 46px; outline: none; transition: border-color 0.2s; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 17px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 2; }
.ind-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; width: 100%; padding-top: 4px; }
.ind-chips::-webkit-scrollbar { display: none; }
.ind-chips button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.ind-chips button:hover { color: var(--text); border-color: var(--line-2); }
.ind-chips button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.empty { text-align: center; padding: 80px 0; color: var(--muted); display: none; }
.empty.show { display: block; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 24px; }


/* ---------- AI ---------- */
.nav-ai { color: var(--text) !important; display: inline-flex; align-items: center; gap: 8px; }
.nav-ai::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tag-link { color: var(--accent); background: var(--accent-soft); }
.tag-link:hover { background: var(--accent); color: var(--accent-ink); }
.svc-ai { background: linear-gradient(160deg, rgba(198,255,52,0.07), var(--bg) 55%); }

.ai-sec { overflow: hidden; }
.ai-glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(198,255,52,0.10), transparent 60%); pointer-events: none; }
.ai-sec .wrap { position: relative; }

.agent { display: grid; gap: 0; border: 1px solid var(--line); border-radius: calc(var(--r) + 8px); overflow: hidden; background: var(--bg-2); margin-bottom: 20px; }
@media (min-width: 1000px) { .agent { grid-template-columns: 0.85fr 1.15fr; } }
.agent-side { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .agent-side { border-bottom: 0; border-right: 1px solid var(--line); } }
.agent-quote { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.agent-quote em { font-style: normal; color: var(--accent); }
.agent-sub { color: var(--muted); margin: 0; font-size: 16px; }
.agent-tabs { display: grid; gap: 8px; margin-top: auto; }
.agent-tab { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--muted); transition: all 0.25s; position: relative; overflow: hidden; }
.agent-tab i { font-style: normal; font-family: var(--f-display); font-size: 12px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); flex: none; }
.agent-tab:hover { color: var(--text); border-color: var(--line-2); }
.agent-tab.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.agent-tab.on i { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.agent-tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--accent); }

.term { display: flex; flex-direction: column; background: #070708; min-height: 460px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.term-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.term-title { flex: 1; }
.term-status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.term-status b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.term-status.done b { animation: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.term-log { list-style: none; margin: 0; padding: 20px; display: grid; gap: 12px; flex: 1; align-content: start; font-size: 14px; line-height: 1.5; }
.term-log li { display: grid; grid-template-columns: 48px auto 1fr; gap: 12px; align-items: baseline; animation: lineIn 0.4s var(--ease); }
.term-log .ts { color: #55554f; }
.term-log .tool { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,0.06); color: #c9c8c2; white-space: nowrap; }
.term-log .tool.ai { background: var(--accent-soft); color: var(--accent); }
.term-log .msg { color: #dcdbd5; }
.term-log li.ok .msg { color: var(--accent); }
.term-log li.ok .tool { background: var(--accent); color: var(--accent-ink); }
.term-log .caret { display: inline-block; width: 8px; height: 16px; background: var(--accent); vertical-align: text-bottom; animation: blink 0.9s infinite; margin-left: 2px; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
.term-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.term-foot b { color: var(--text); font-weight: 600; }
@media (max-width: 600px) {
  .term-log li { grid-template-columns: auto 1fr; }
  .term-log .ts { display: none; }
}

.ai-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ai-grid { grid-template-columns: repeat(3, 1fr); } }
.ai-card { padding: 32px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 14px; transition: border-color 0.3s, transform 0.4s var(--ease); }
.ai-card:hover { border-color: rgba(198,255,52,0.45); transform: translateY(-4px); }
.ai-n { font-family: var(--f-display); font-size: 13px; color: var(--accent); }
.ai-card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.ai-card p { margin: 0 0 6px; color: var(--muted); font-size: 16px; flex: 1; }

.vs { display: grid; gap: 20px; }
@media (min-width: 900px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs-col { border-radius: var(--r); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); }
.vs-col h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 24px; line-height: 1.15; }
.vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vs-col li { display: flex; gap: 14px; align-items: flex-start; }
.vs-col li::before { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.vs-bad { background: var(--bg-2); }
.vs-bad li { color: var(--muted); }
.vs-bad li::before { content: "✕"; border: 1px solid var(--line-2); color: #ff6b6b; }
.vs-good { background: linear-gradient(160deg, rgba(198,255,52,0.12), rgba(198,255,52,0.02) 70%); border-color: rgba(198,255,52,0.35); }
.vs-good li::before { content: "✓"; background: var(--accent); color: var(--accent-ink); }

.tl { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 800px) { .tl { grid-template-columns: repeat(4, 1fr); } }
.tl li { background: var(--bg); padding: 28px; display: grid; gap: 8px; position: relative; }
.tl-k { font-family: var(--f-display); font-size: 13px; color: var(--accent); }
.tl b { font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.tl-t { color: var(--muted); font-size: 14px; }
@media (min-width: 800px) { .tl li:not(:last-child)::after { content: "→"; position: absolute; right: 18px; top: 26px; color: var(--muted); } }

.sec-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.sec-chips-l { color: var(--muted); font-size: 14px; margin-right: 8px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* cursor dot */
.cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 150; transform: translate(-50%, -50%); transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.3s; mix-blend-mode: difference; opacity: 0; }
.cursor.big { width: 56px; height: 56px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- reduced motion ---------- */
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
.no-motion .marquee-track { animation: none !important; }
.no-motion .term-status b, .no-motion .term-log .caret { animation: none !important; }
.no-motion .rv { opacity: 1; transform: none; }
.no-motion .cursor { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .rv { opacity: 1; transform: none; }
}
