:root {
  --bg: #101010;
  --panel: #1d1d1e;
  --line: #343436;
  --text: #f5f5f5;
  --muted: #aab2c0;
  --accent: #087bff;
  --max: 1180px;
}

/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

/* =========================
   HEADER / NAVIGATION
========================= */

.topbar {
  height: 82px;
  border-bottom: 1px solid #29292b;
  display: flex;
  align-items: center;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  position: sticky;
  top: 0;
  background: rgba(16, 16, 16, 0.96);
  z-index: 20;
}

.brand img {
  width: 164px;
  display: block;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  align-items: center;
}

.topbar a {
  color: #d7d7da;
  text-decoration: none;
  font-size: 14px;
}

.login {
  border: 1px solid #3a3a3d;
  border-radius: 8px;
  padding: 12px 16px !important;
  background: #19191a;
}

.login:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.menu {
  display: none;
  background: none;
  border: 1px solid #39393b;
  color: white;
  padding: 9px 12px;
  border-radius: 6px;
  margin-left: auto;
}

/* =========================
   HERO
========================= */

.hero {
  max-width: var(--max);
  min-height: 690px;
  margin: auto;
  padding: 105px 28px 85px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.overline,
.section-no {
  font-size: 12px;
  letter-spacing: 0.11em;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(58px, 7vw, 100px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 22px 0 8px;
  max-width: 850px;
}

.hero-line {
  font-size: clamp(26px, 3vw, 42px);
  margin: 0 0 35px;
  color: #b9c0cb;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.intro {
  max-width: 680px;
  color: #c4c7cc;
  font-size: 18px;
}

.arrow-link {
  display: inline-flex;
  gap: 18px;
  margin-top: 35px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid #555;
  padding-bottom: 7px;
}

.arrow-link span {
  color: var(--accent);
}

.hero-mark {
  display: flex;
  justify-content: flex-end;
  opacity: 0.13;
}

.hero-mark img {
  width: min(380px, 100%);
}

/* =========================
   SECTIONS
========================= */

.section-rule {
  max-width: var(--max);
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 90px 28px;
}

.statement h2,
.origin h2,
.closing h2 {
  font-size: clamp(42px, 5.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 30px 0 55px;
  max-width: 980px;
}

.statement-copy {
  margin-left: 42%;
  max-width: 620px;
}

.statement-copy p,
.origin-layout p,
.closing p,
.platform-copy > p {
  font-size: 18px;
  color: #c4c7cc;
}

/* =========================
   WORK / PROCESS
========================= */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 45px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-step {
  padding: 38px 28px 45px 0;
  border-right: 1px solid var(--line);
  min-height: 270px;
}

.work-step:not(:first-child) {
  padding-left: 28px;
}

.work-step:last-child {
  border-right: 0;
}

.work-step span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.work-step h3 {
  font-size: 32px;
  margin: 48px 0 12px;
}

.work-step p {
  color: #aeb3bb;
  margin: 0;
}

/* =========================
   PLATFORM / ZARO 2.0
========================= */

.platform {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 70px;
  align-items: center;
}

.platform h2 {
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin: 28px 0 35px;
}

.big-copy {
  font-size: 24px !important;
  line-height: 1.35;
  color: white !important;
  font-weight: 700;
}

.note {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 30px 0 !important;
  color: #9ca5b2 !important;
  font-size: 15px !important;
}

.inline {
  display: inline-block;
  margin-top: 8px;
  color: white;
  text-decoration: none;
}

.real-ui {
  margin: 0;
}

.real-ui img {
  display: block;
  width: 100%;
  border: 1px solid #3b3b3e;
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.real-ui figcaption {
  font-size: 12px;
  color: #858d99;
  margin-top: 12px;
}

/* =========================
   ORIGIN / CAHIER NOIR
========================= */

.origin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.origin-layout h2 {
  margin-top: 30px;
}

.origin-layout > div {
  padding-top: 40px;
}

.notebook-story {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  align-items: center;
  margin-top: 35px;
}

.notebook-copy h2 {
  font-size: clamp(48px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 12px 0 35px;
}

.year-kicker {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
}

.notebook-copy > p:not(.year-kicker) {
  color: #c4c7cc;
  font-size: 18px;
}

.notebook-photo {
  margin: 0;
}

.notebook-photo img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border: 1px solid #3b3b3e;
  border-radius: 10px;
  background: #181819;
}

.notebook-photo figcaption {
  font-size: 12px;
  color: #858d99;
  margin-top: 12px;
}

.privacy-note {
  font-size: 12px !important;
  color: #7f8792 !important;
  margin-top: 28px !important;
}

/* =========================
   HISTORY
========================= */

.history-intro {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  margin-top: 95px;
  padding-top: 55px;
  border-top: 1px solid var(--line);
}

.history-intro h3 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}

.history-intro p {
  font-size: 18px;
  color: #c4c7cc;
  margin: 0;
  max-width: 690px;
}

/* =========================
   TIMELINE
========================= */

.timeline {
  display: flex;
  align-items: center;
  margin-top: 75px;
}

.timeline div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
  width: 190px;
  min-height: 108px;
}

.timeline b {
  display: block;
  color: white;
  margin-bottom: 8px;
}

.timeline span {
  font-size: 13px;
  color: #9ea6b1;
}

.timeline i {
  height: 1px;
  background: #4a4a4c;
  flex: 1;
  min-width: 22px;
}

.timeline .live {
  border-color: var(--accent);
}

.timeline .live b {
  color: var(--accent);
}

.timeline-history {
  margin-top: 55px;
}

.timeline-history div {
  min-width: 145px;
  width: auto;
  flex: 0 0 145px;
}

.timeline-history i {
  min-width: 18px;
}

/* =========================
   CLOSING
========================= */

.closing {
  padding-top: 120px;
  padding-bottom: 140px;
}

.closing h2 em {
  font-style: normal;
  color: #8e97a5;
}

.closing > p:last-child {
  max-width: 650px;
  margin-left: 42%;
}

/* =========================
   FOOTER
========================= */

footer {
  max-width: var(--max);
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 40px 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

footer img {
  width: 180px;
}

footer div {
  display: flex;
  gap: 35px;
  color: #89919d;
  font-size: 12px;
}

/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 850px) {
  .topbar {
    height: 72px;
    padding: 0 20px;
  }

  .brand img {
    width: 135px;
  }

  .menu {
    display: block;
  }

  .topbar nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #151515;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .topbar nav.open {
    display: flex;
  }

  .topbar nav a {
    padding: 13px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 85px 20px 70px;
  }

  .hero-mark {
    display: none;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-line {
    font-size: 28px;
  }

  .section-rule {
    padding: 70px 20px;
  }

  .statement-copy,
  .closing > p:last-child {
    margin-left: 0;
  }

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

  .work-step:nth-child(2) {
    border-right: 0;
  }

  .work-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .platform,
  .origin-layout,
  .notebook-story,
  .history-intro {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .real-ui {
    margin-top: 15px;
  }

  .notebook-photo {
    order: -1;
  }

  .history-intro {
    margin-top: 70px;
  }

  .timeline,
  .timeline-history {
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .timeline div {
    min-width: 155px;
  }

  .timeline i {
    min-width: 28px;
  }

  .closing {
    padding-bottom: 90px;
  }

  footer {
    margin: 0 20px;
    padding-left: 0;
    padding-right: 0;
    align-items: flex-start;
    gap: 30px;
    flex-direction: column;
  }

  footer div {
    flex-direction: column;
    gap: 6px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 520px) {
  .hero h1 {
    font-size: 49px;
  }

  .statement h2,
  .origin h2,
  .closing h2 {
    font-size: 42px;
  }

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

  .work-step,
  .work-step:not(:first-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
    min-height: auto;
  }

  .work-step:last-child {
    border-bottom: 0;
  }

  .work-step h3 {
    margin: 20px 0 8px;
  }

  .platform h2 {
    font-size: 55px;
  }
}