:root {
  --paper: #f2f0eb;
  --paper-2: #e8e5de;
  --ink: #0e0e0c;
  --ink-2: #55534e;
  --line: #0e0e0c26;
  --accent: #ff5a1f;
  --gutter: clamp(16px, 4vw, 48px);
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --display: "Archivo", "Zen Kaku Gothic New", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--paper); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  height: 64px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__logo {
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: 22px; text-decoration: none; letter-spacing: -.02em;
}
.nav__logo span { font-size: 10px; vertical-align: super; font-weight: 400; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-family: var(--mono); font-size: 13px; text-decoration: none; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor;
  transition: right .25s;
}
.nav__links a:hover::after { right: 0; }
.nav__cta {
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 8px 18px; background: var(--ink); color: var(--paper); border-radius: 999px;
  transition: background .2s;
}
.nav__cta:hover { background: var(--accent); }
.nav__menu { display: none; }

/* HERO */
.hero {
  min-height: 100svh;
  padding: 112px var(--gutter) 48px;
  display: flex; flex-direction: column;
}
.hero__meta { display: flex; gap: 24px; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero__title {
  margin: auto 0 0;
  padding: 48px 0 40px;
  font-size: clamp(40px, 12.4vw, 210px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 900;
}
.hero__title .line { display: block; }
.hero__sub { margin: -16px 0 32px; font-size: clamp(14px, 1.5vw, 19px); font-weight: 700; }
.hero__sub b { font-family: var(--display); font-weight: 900; font-stretch: 125%; margin-right: 4px; }
.hero__title em { font-style: normal; color: var(--accent); }

.hero__bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px;
  padding-top: 28px; border-top: 1px solid var(--ink);
}
.hero__lead { max-width: 34em; font-size: 15px; color: var(--ink-2); }
.hero__stats { margin: 0; border-top: 1px solid var(--line); }
.hero__stats div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hero__stats dt { font-size: 13px; color: var(--ink-2); padding-top: 2px; }
.hero__stats dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
.nw { white-space: nowrap; }

/* TICKER */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); padding: 14px 0; }
.ticker__track { display: flex; width: max-content; animation: run 40s linear infinite; }
.ticker__track span {
  font-family: var(--display); font-weight: 700; font-stretch: 120%; font-size: 20px;
  padding: 0 28px; white-space: nowrap;
}
.ticker__track span::after { content: "/"; margin-left: 56px; color: var(--accent); }
@keyframes run { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section__head {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 40px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section__no { color: var(--ink-2); padding-top: 12px; }
.section__head h2 { font-size: clamp(28px, 4.6vw, 64px); letter-spacing: -.03em; text-wrap: pretty; }
.section__note { grid-column: 2; margin-top: 20px; max-width: 36em; color: var(--ink-2); font-size: 15px; }

.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .section__no, .section--dark .section__note { color: #a9a69e; }
.section--paper { background: var(--paper-2); }

/* CONCEPT */
.flow { display: grid; grid-template-columns: 220px repeat(4, minmax(0, 1fr)); gap: 0 40px; row-gap: 12px; }
.flow__stage { color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.flow__label { font-size: 13px; color: var(--ink-2); align-self: center; }
.flow__label--run { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 18px; color: var(--ink); }
.flow__seg {
  font-size: 13px; color: var(--ink-2); text-align: center; padding: 10px 8px;
  border: 1px dashed #0e0e0c40; border-radius: 4px;
}
.flow__seg--run {
  grid-column: span 4; background: var(--accent); color: var(--paper); border: 0;
  font-weight: 700; font-size: 15px; padding: 14px 16px;
}
.flow__step { padding-top: 28px; }
.flow__stepno { display: none; color: var(--accent); }
.flow__step h3 { font-size: 19px; margin-bottom: 10px; }
.flow__step p { font-size: 14px; color: var(--ink-2); }

/* SERVICES */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 180px; gap: 40px;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.service__no {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%; transition: .25s;
}
.service:hover .service__no { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.service h3 { font-size: clamp(20px, 2.2vw, 28px); margin-bottom: 12px; }
.service p { color: var(--ink-2); max-width: 40em; font-size: 15px; }
.service__price { text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; }
.service__price small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-2); }
.menu { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; max-width: 760px; }
.menu li { font-size: 14px; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); position: relative; line-height: 1.6; }
.menu li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 2px; background: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.tags li { font-size: 11px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* PRODUCTS */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  align-items: center; padding: 56px 0; border-top: 1px solid #ffffff26;
}
.product--rev .product__visual { order: -1; }
.product__label { color: var(--accent); }
.product h3 {
  font-family: var(--display); font-stretch: 115%; font-weight: 800;
  font-size: clamp(44px, 6vw, 88px); letter-spacing: -.04em; line-height: 1; margin: 12px 0 16px;
}
.product__catch { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.product__text > p:not(.product__label):not(.product__catch) { color: #c9c6be; font-size: 15px; }
.product__spec { margin: 28px 0; border-top: 1px solid #ffffff26; }
.product__spec div { display: grid; grid-template-columns: 80px 1fr; padding: 10px 0; border-bottom: 1px solid #ffffff26; font-size: 14px; }
.product__spec dt { font-family: var(--mono); font-size: 12px; color: #a9a69e; }
.product__spec dd { margin: 0; }

.link-arrow {
  display: inline-flex; gap: 10px; align-items: center; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "↗"; transition: transform .2s; }
.link-arrow:hover::after { transform: translate(3px, -3px); }

/* mocks: real-feeling UI, not illustrations */
.mock {
  background: #1b1b19; border: 1px solid #ffffff1f; border-radius: 14px;
  padding: 16px; max-width: 460px; margin-inline: auto; width: 100%;
  box-shadow: 0 30px 60px -30px #000;
}
.mock__video {
  aspect-ratio: 16 / 10; border-radius: 8px; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent 40%, #000c),
    repeating-linear-gradient(90deg, #3a2f26 0 18%, #4a3b2e 18% 20%),
    #3a2f26;
  position: relative;
}
.mock__scene { position: absolute; top: 14px; left: 16px; font-size: 10px; color: #ffffffb3; }
.mock__sub { font-size: 18px; font-weight: 700; color: #fff; font-family: var(--display); letter-spacing: 0; }
.mock__subja { font-size: 12px; color: #ffffffb3; }
.mock__score { padding: 16px 4px 4px; }
.mock__score > p { font-size: 10px; color: #a9a69e; margin-bottom: 10px; }
.bar { display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 10px; font-size: 12px; margin-top: 8px; }
.bar b { height: 6px; background: #ffffff1a; border-radius: 3px; position: relative; overflow: hidden; }
.bar b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--accent); border-radius: 3px; }
.bar .v86 { --v: 86%; } .bar .v74 { --v: 74%; } .bar .v92 { --v: 92%; }
.bar em { font-style: normal; font-family: var(--mono); text-align: right; }

.mock__tabs { display: flex; gap: 4px; font-size: 10px; margin-bottom: 12px; }
.mock__tabs span { flex: 1; text-align: center; padding: 8px 4px; border-radius: 6px; color: #a9a69e; text-transform: none; }
.mock__tabs .on { background: var(--paper); color: var(--ink); }
.mock__list { list-style: none; margin: 0; padding: 0; }
.mock__list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #ffffff14; font-size: 14px; }
.mock__list i { width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h) 35% 55%); flex: none; }
.mock__list .av1 { --h: 18; } .mock__list .av2 { --h: 200; } .mock__list .av3 { --h: 120; } .mock__list .av4 { --h: 330; } .mock__list .av5 { --h: 60; }
.mock__list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mock__list b { font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.mock__list b.ghost { background: none; border: 1px solid #ffffff40; color: #c9c6be; }
.mock__foot { font-size: 10px; color: #7d7a73; margin-top: 12px; text-transform: none; }

/* STACK */
.stack { margin: 0; border-top: 1px solid var(--ink); }
.stack div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack dt { color: var(--ink-2); padding-top: 6px; }
.stack dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2vw, 26px); line-height: 1.5; }

/* PRICING */
.price-table { }
.price-row {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px;
  transition: padding .2s;
}
.price-row:not(.price-row--head):hover { padding-left: 12px; }
.price-row b { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.price-group { display: flex; gap: 12px; align-items: baseline; padding: 40px 0 10px; font-weight: 900; font-size: 17px; border-bottom: 1px solid var(--ink); }
.price-group:first-child { padding-top: 0; }
.price-group .mono { color: var(--accent); }
.price-row--head { color: var(--ink-2); padding: 10px 0; }
.price-foot { margin-top: 20px; font-size: 13px; color: var(--ink-2); }

/* PROCESS */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process li { padding: 24px 24px 0 0; border-top: 2px solid var(--ink); position: relative; }
.process li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -13px; right: 24px; background: var(--paper); padding: 0 8px;
  font-family: var(--mono); font-size: 12px;
}
.process span { color: var(--accent); }
.process h3 { font-size: 22px; margin: 8px 0 10px; }
.process p { font-size: 14px; color: var(--ink-2); }

/* COMPANY */
.company { margin: 0; border-top: 1px solid var(--ink); max-width: 960px; margin-left: 260px; }
.company div { display: grid; grid-template-columns: 160px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company dt { font-size: 14px; color: var(--ink-2); }
.company dd { margin: 0; }

/* CONTACT */
.contact { background: var(--accent); color: var(--ink); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.contact h2 { font-size: clamp(28px, 8.2vw, 104px); letter-spacing: -.045em; margin: 16px 0 56px; line-height: 1.1; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; max-width: 960px; }
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.contact__form .full { grid-column: 1 / -1; }
.contact__form input, .contact__form select, .contact__form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 10px 0; border-radius: 0; outline: none; resize: vertical;
}
.contact__form ::placeholder { color: #0e0e0c80; }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { border-bottom-width: 3px; }
.btn {
  justify-self: start; display: inline-flex; gap: 14px; align-items: center;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 0; padding: 16px 32px; border-radius: 999px;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }

/* FOOTER */
.footer { padding: 48px var(--gutter) 24px; background: var(--ink); color: var(--paper); overflow: hidden; }
.footer__logo {
  display: block; font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(120px, 34vw, 520px); line-height: .8; letter-spacing: -.06em;
}
.footer p { margin-top: 24px; color: #a9a69e; }

/* reveal (only the big headings, kept subtle) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .ticker__track, .status i { animation: none; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .section__head { grid-template-columns: 1fr; }
  .section__note { grid-column: 1; }
  .section__no { padding: 0 0 12px; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service__price { text-align: left; }
  .service__price small { display: inline; margin-right: 8px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 32px; }
  .product, .product--rev { grid-template-columns: 1fr; }
  .product--rev .product__visual { order: 0; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .company { margin-left: 0; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .flow__blank { display: none; }
  .flow__stage { font-size: 11px; }
  .flow__label { grid-column: 1 / -1; margin-top: 12px; }
  .flow__seg { font-size: 11px; padding: 8px 2px; }
  .flow__seg--run { font-size: 13px; }
  .flow__step { grid-column: 1 / -1; padding-top: 20px; }
  .flow__stepno { display: block; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 40px; height: 40px; background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav__menu span { height: 2px; background: var(--ink); transition: transform .25s; }
  .nav.is-open { height: auto; flex-wrap: wrap; padding-bottom: 20px; background: var(--paper); }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 14px; width: 100%; order: 3; margin: 8px 0 0; }
  .nav.is-open .nav__links a { font-size: 18px; }
  .nav.is-open .nav__cta { display: inline-block; order: 4; }
  .nav.is-open .nav__menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding-top: 96px; }
  .hero__meta { gap: 16px; }
  .hero__stats div { grid-template-columns: 1fr; gap: 2px; }
  .stack div { grid-template-columns: 1fr; gap: 4px; }
  .stack dt { padding: 0; }
  .price-row { font-size: 14px; }
  .price-row b { font-size: 15px; }
  .process { grid-template-columns: 1fr; }
  .company div { grid-template-columns: 1fr; gap: 2px; }
  .contact__form { grid-template-columns: 1fr; }
  .menu { grid-template-columns: 1fr; }
}
