:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #0e0f12;
  --ink-2: #4a4c55;
  --muted: #8a8c94;
  --line: #e4e2dc;
  --accent: #5b5bf7;
  --accent-soft: #e9e9fe;
  --dark: #0e0f12;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: 1160px;
  --g: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font: 500 15px var(--sans); padding: 14px 22px; border-radius: 999px; border: 1px solid var(--ink); cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); background: #23252b; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246,245,242,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; margin-right: auto; }
.brand svg { width: 30px; height: 30px; color: var(--ink); }
.links { display: flex; gap: 26px; font-size: 15px; color: var(--ink-2); }
.links a { text-decoration: none; }
.links a:hover { color: var(--ink); }
.menu { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; }
.menu span { display: block; width: 20px; height: 1.6px; background: var(--ink); margin: 5px auto; }

/* hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(46px, 7.4vw, 98px); max-width: 980px; margin-bottom: 26px; }
.hero h1 em { color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 600px; margin-bottom: 34px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.console { margin-top: clamp(48px, 7vw, 80px); background: var(--dark); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(14,15,18,.5); max-width: 860px; margin-left: auto; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.console-bar span { margin-left: auto; font-size: 12.5px; color: rgba(255,255,255,.5); }
.console-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); border-bottom-left-radius: 4px; }
.typing { display: flex; gap: 5px; padding: 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* sections */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-soft { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { font-size: 13.5px; font-weight: 500; color: var(--accent); margin-bottom: 16px; }
.section-dark .kicker { color: #a5a5ff; }
.head h2 { font-size: clamp(36px, 5vw, 64px); }
.sub { color: var(--ink-2); margin-top: 18px; font-size: 18px; }
.section-dark .sub { color: rgba(255,255,255,.65); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(14,15,18,.3); }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.steps li { padding: 32px 24px 8px 0; }
.steps .n { font-family: var(--serif); font-style: italic; font-size: 22px; color: #a5a5ff; }
.steps h3 { font-size: 24px; margin: 14px 0 10px; }
.steps p { color: rgba(255,255,255,.65); font-size: 15.5px; }

.work { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.work-art { height: 240px; background: linear-gradient(135deg, #e9e9fe, #f6f5f2); display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 0 36px; position: relative; }
.work-art span { height: 1px; background: #a5a5ff; }
.work-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.work-card.placeholder { background: transparent; border-style: dashed; justify-content: center; }
.tag { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.work-body h3 { font-size: 28px; margin-bottom: 10px; }
.work-body p { color: var(--ink-2); }
.lock-link { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.lock-link:hover { border-color: var(--ink); }
.lock-link svg { width: 16px; height: 16px; }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 12px 0 0; }

.contact-card { background: var(--dark); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-card h2 { font-size: clamp(36px, 4.6vw, 58px); }
.contact-card .kicker { color: #a5a5ff; }
.contact-card .sub { color: rgba(255,255,255,.65); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.form label { display: grid; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.form input, .form textarea { font: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 13px 14px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: #a5a5ff; }
.form .full { grid-column: 1 / -1; }
.form .btn { background: #fff; color: var(--ink); border-color: #fff; }
.form-note { font-size: 13px; color: rgba(255,255,255,.5); margin: 0; }

.footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .typing span { animation: none; } }

@media (max-width: 960px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .work, .faq-wrap, .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); padding: 8px var(--g) 18px; border-bottom: 1px solid var(--line); gap: 0; }
  .links.open a { padding: 12px 0; font-size: 18px; color: var(--ink); }
  .menu { display: block; }
  .nav .btn-sm { display: none; }
  .grid4, .steps { grid-template-columns: 1fr; }
  .msg { max-width: 90%; font-size: 14.5px; }
  .form { grid-template-columns: 1fr; }
  .actions .btn { flex: 1; }
}
.lock-row { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.lock-row .lock-link { margin-top: 0; }
