:root {
  --bg: #090807;
  --bg-elev: #12100e;
  --bg-card: #161310;
  --ink: #f4efe8;
  --ink-dim: #b8afa4;
  --ink-mute: #81786e;
  --line: rgba(244, 239, 232, 0.1);
  --line-strong: rgba(244, 239, 232, 0.2);
  --orange: #ff5600;
  --orange-2: #c85727;
  --orange-3: #d97638;
  --peach: #eba667;
  --cream: #f3eee7;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --nav-h: 68px;
  --toc-w: 148px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(255, 86, 0, 0.28);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(9, 8, 7, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  border-radius: 8px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.chev {
  width: 7px;
  height: 7px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
}

.drop {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 8px;
  background: #14110f;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.nav-item:hover .drop,
.nav-item:focus-within .drop {
  display: block;
}

.drop a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-dim);
}

.drop a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login {
  font-size: 14.5px;
  padding: 8px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-solid {
  background: var(--cream);
  color: #161310;
}

.btn-solid:hover {
  background: #fff;
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  place-items: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 14px;
  height: 1.4px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  padding: 48px 72px 88px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6.6vw, 88px);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 9.4ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: min(540px, 100%);
  filter: drop-shadow(0 28px 70px rgba(255, 86, 0, 0.16));
}

/* Layout: reasons + TOC */
.reasons-wrap {
  display: grid;
  grid-template-columns: var(--toc-w) minmax(0, 1fr);
  gap: 64px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 56px 120px;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 56px);
  display: flex;
  flex-direction: column;
}

.toc-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.toc-title em {
  font-style: italic;
  color: var(--ink-dim);
}

.toc-current {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-mute);
  min-height: 34px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.toc-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  padding-right: 6px;
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}

.toc-list::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.toc-list::-webkit-scrollbar {
  width: 0;
}

.toc-list a {
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
  padding-left: 14px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  transition: color 0.2s ease;
}

.toc-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
  transform: translateY(-50%);
}

.toc-list a:hover {
  color: var(--ink-dim);
}

.toc-list a.is-active {
  color: var(--ink);
}

.toc-list a.is-active::before {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 86, 0, 0.18);
}

.toc-mobile {
  display: none;
}

/* Reason sections */
.reason {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.reason:first-child {
  border-top: 0;
  padding-top: 8px;
}

.reason-num {
  font-family: var(--sans);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 16px;
}

.reason h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 24px;
}

.reason p,
.reason li {
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.6;
  max-width: 60ch;
}

.reason p + p {
  margin-top: 14px;
}

.reason a.in {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.reason a.in:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.media {
  margin-top: 36px;
}

.panel {
  background: #14110f;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.video-card {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 86, 0, 0.26), transparent 42%),
    linear-gradient(180deg, #1f1915, #0e0c0b);
}

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
}

.play span {
  width: 0;
  height: 0;
  border-left: 15px solid #161310;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.video-meta {
  font-size: 14px;
  color: var(--cream);
}

.video-meta small {
  display: block;
  color: var(--ink-mute);
  margin-top: 4px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.metric {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 20px;
}

.metric b {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--ink-dim);
  font-size: 14px;
}

.note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-mute);
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.role {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.role-art {
  height: 164px;
}

.role-art.service {
  background: radial-gradient(circle at 30% 40%, #ff7a4d, #7a2a16 70%);
}

.role-art.sales {
  background: radial-gradient(circle at 70% 30%, #eba667, #8a3a18 72%);
}

.role-art.ecom {
  background: radial-gradient(circle at 50% 60%, #d97638, #4a1d10 75%);
}

.role-body {
  padding: 18px;
}

.role h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}

.role p {
  font-size: 14px !important;
}

.chat {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.4;
}

.bubble.bot {
  background: #2a241f;
  align-self: flex-start;
}

.bubble.user {
  background: var(--orange);
  color: #fff;
  align-self: flex-end;
}

.quote {
  margin-top: 32px;
  background: #14110f;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}

.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-3), var(--orange-2));
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.who strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.who span {
  font-size: 13px;
  color: var(--ink-mute);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 28px;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
}

.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.cert {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.mock-ui {
  min-height: 240px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 86, 0, 0.07), transparent 42%),
    #14110f;
}

.bars {
  display: grid;
  gap: 10px;
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: #2b2622;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--peach));
}

.steps {
  display: grid;
  gap: 8px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #1c1815;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.person {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.face {
  height: 108px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: linear-gradient(160deg, #3a2a22, #1a1411);
}

.person strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.person span {
  font-size: 12px;
  color: var(--ink-mute);
}

.papers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.paper {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}

.paper-art {
  height: 128px;
}

.paper-body {
  padding: 16px;
}

.paper h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.paper .more {
  font-size: 13px;
  color: var(--orange);
}

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 28px;
  scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
  height: 0;
}

.slide {
  min-width: 228px;
  height: 268px;
  border-radius: 16px;
  scroll-snap-align: start;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  font-size: 14px;
  border: 1px solid var(--line);
}

.vision {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  counter-reset: v;
}

.vision li {
  counter-increment: v;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.vision li::before {
  content: counter(v);
  color: var(--orange);
  font-family: var(--serif);
  font-size: 22px;
}

.close {
  text-align: center;
  padding: 88px 24px 120px;
}

.close h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.close img {
  width: min(400px, 68vw);
  margin: 28px auto;
}

.close-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 64px 48px 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto 48px;
}

.foot-grid h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.foot-grid a {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 4px 0;
}

.foot-grid a:hover {
  color: var(--ink);
}

.legal {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-mute);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.legal div {
  display: flex;
  gap: 16px;
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 40;
  padding: 12px 24px 32px;
  overflow: auto;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

@media (max-width: 1100px) {
  .nav-center,
  .login,
  .nav-right .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px 48px;
    min-height: auto;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual img {
    width: min(360px, 80vw);
    margin: 0 auto;
  }

  .reasons-wrap {
    grid-template-columns: 1fr;
    padding: 12px 22px 80px;
    gap: 0;
  }

  .toc {
    display: none;
  }

  .toc-mobile {
    display: flex;
    position: sticky;
    top: var(--nav-h);
    z-index: 30;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0 14px;
    margin: 0 -22px 8px;
    padding-left: 22px;
    padding-right: 22px;
    background: rgba(9, 8, 7, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }

  .toc-mobile::-webkit-scrollbar {
    height: 0;
  }

  .toc-mobile a {
    flex: 0 0 auto;
    min-width: 40px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--ink-mute);
  }

  .toc-mobile a.is-active {
    color: var(--ink);
    border-color: var(--orange);
    background: rgba(255, 86, 0, 0.12);
  }

  .metrics,
  .roles,
  .papers,
  .team {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .metrics,
  .roles,
  .papers,
  .team {
    grid-template-columns: 1fr;
  }

  .legal {
    flex-direction: column;
  }

  .reason h2 {
    max-width: none;
  }
}
