/* Cheetahs Deliver — company site. No scripts; light and dark follow the visitor's setting. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;

  --paper: #f6f3ec;
  --paper-2: #efebe1;
  --card: #fbf9f4;
  --ink: #17150f;
  --ink-2: #3a3730;
  --muted: #5f5a4f;
  --line: #e2dccf;
  --line-strong: #cfc7b6;
  --accent: #a85a0c;       /* text-safe amber on paper */
  --spot: #e3862a;         /* the bright amber, for marks only */
  --spot-soft: rgba(227, 134, 42, 0.14);
  --invert-bg: #17150f;
  --invert-ink: #f6f3ec;
  --invert-muted: #b9b2a3;
  --focus: #a85a0c;

  --doosi-bg-1: #234a3d;
  --doosi-bg-2: #0f241d;
  --doosi-ink: #f2f1ea;
  --doosi-muted: #b8cbc1;
  --doosi-screen: #f2f1eb;

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1200px;
  --radius: 14px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0e0b;
    --paper-2: #15130f;
    --card: #19170f;
    --ink: #f2eee4;
    --ink-2: #d8d3c6;
    --muted: #a59f90;
    --line: #2a2720;
    --line-strong: #3a362c;
    --accent: #f0a24f;
    --spot: #f0a24f;
    --spot-soft: rgba(240, 162, 79, 0.14);
    --invert-bg: #f2eee4;
    --invert-ink: #17150f;
    --invert-muted: #5f5a4f;
    --focus: #f0a24f;
    --doosi-screen: #0e1311;
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

::selection { background: var(--spot); color: #17150f; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  transition: top 200ms var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Type ───────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 7.2vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em, .h2 em, .h3 em {
  font-style: italic;
  color: var(--accent);
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}

.lead {
  font-size: clamp(1.075rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .n {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--ink-2); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn:hover svg.go { transform: translate(2px, -2px); }
  .btn:hover svg.down { transform: translateY(2px); }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  min-height: 44px;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.mark .t { fill: var(--ink); }
.mark .h { fill: var(--spot); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 160ms var(--ease-out);
}
@media (hover: hover) { .nav a:not(.btn):hover { color: var(--ink); } }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; margin-left: 8px; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero .eyebrow { margin-bottom: 28px; }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.field { width: 100%; height: auto; aspect-ratio: 540 / 496; }
.field circle { fill: var(--line-strong); }
.field circle.b { fill: var(--ink); opacity: 0.88; }
.field circle.a { fill: var(--spot); }

@media (prefers-reduced-motion: no-preference) {
  .field circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 5.6s var(--ease-out) infinite;
    animation-delay: calc(var(--i) * 110ms);
  }
}
@keyframes pulse {
  0%, 62%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin-left: -6px; }
}
@media (max-width: 560px) {
  .hero-art { max-width: 220px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Facts strip under the hero */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts li {
  padding: 22px 0 22px 24px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li:nth-child(3) { border-left: 0; padding: 16px 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .facts strong { display: inline; margin-right: 8px; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 148px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .lead { justify-self: end; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
}

/* What we do */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service {
  position: relative;
  padding: 32px 28px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.service .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--spot-soft);
  color: var(--accent);
  margin-bottom: 40px;
}
.service .icon svg { width: 22px; height: 22px; }
.service h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.service p { color: var(--muted); font-size: 16px; }
.service ul { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.service li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.service li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--spot);
}
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .service .icon { margin-bottom: 28px; }
}

/* ── Product: Doosi ─────────────────────────────────────────────────────── */
.product {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 178, 77, 0.22), rgba(255, 178, 77, 0) 55%),
    linear-gradient(160deg, var(--doosi-bg-1), var(--doosi-bg-2));
  color: var(--doosi-ink);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 5.5vw, 72px) clamp(24px, 5.5vw, 72px) 0;
  isolation: isolate;
}
.product-copy { padding-bottom: clamp(32px, 5.5vw, 72px); align-self: center; }
.product-id { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.product-id svg { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); }
.product-id strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.product-id span { font-size: 14px; color: var(--doosi-muted); }
.product .h3 { color: var(--doosi-ink); }
.product .h3 em { color: #ffbe73; }
.product p.body { margin-top: 18px; color: var(--doosi-muted); font-size: 17px; max-width: 30em; }
.features { margin-top: 32px; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; }
.features svg { width: 20px; height: 20px; margin-top: 2px; color: #ffbe73; }
.features b { font-weight: 500; color: var(--doosi-ink); }
.features span { color: var(--doosi-muted); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; }
.product .btn-primary { background: var(--doosi-ink); color: #0f241d; }
@media (hover: hover) { .product .btn-primary:hover { background: #ffffff; } }
.status {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1.4;
  gap: 8px;
  font-size: 14px;
  color: var(--doosi-muted);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  margin-top: 0.35em;
  background: #7fd1a8;
  box-shadow: 0 0 0 4px rgba(127, 209, 168, 0.18);
}

.device-stage { position: relative; align-self: end; display: flex; justify-content: center; }
.device {
  position: relative;
  width: min(330px, 100%);
  margin-bottom: -96px;
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2b2b2b, #0a0a0a 40%, #1d1d1d);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.55),
    0 18px 36px -18px rgba(0, 0, 0, 0.5);
}
.screen {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  background: var(--doosi-screen);
  padding-top: 44px;
}
.screen::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.screen img { width: 100%; height: auto; }
.glow {
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 178, 77, 0.28), transparent 70%);
  filter: blur(10px);
}

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product-copy { padding-bottom: 0; }
  .device { width: min(280px, 82%); margin-bottom: -120px; }
}

.after-product {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--muted);
}

/* ── Principles ─────────────────────────────────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.principles-intro { position: sticky; top: 120px; }
.principles-intro .lead { margin-top: 24px; }
.principles { counter-reset: p; }
.principle {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 16px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle::before {
  counter-increment: p;
  content: counter(p, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  padding-top: 2px;
}
.principle h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.principle p { color: var(--muted); max-width: 34em; }
@media (max-width: 860px) {
  .principles-grid { grid-template-columns: 1fr; }
  .principles-intro { position: static; }
  .principle { grid-template-columns: 48px 1fr; }
}

/* ── Company ────────────────────────────────────────────────────────────── */
.company { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px);
}
.company-grid .lead { margin-top: 24px; }
.details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 28px;
}
.details div {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) 1.3fr;
  gap: 4px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.details div:first-child { border-top: 0; }
.details dt { font-size: 14px; color: var(--muted); padding-top: 2px; }
.details dd { font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.details dd a { text-decoration-color: var(--line-strong); }
.details dd small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
@media (hover: hover) { .details dd a:hover { text-decoration-color: currentColor; } }
@media (max-width: 860px) {
  .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .details { padding: 4px 20px; }
  .details div { grid-template-columns: 1fr; }
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact {
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px clamp(32px, 6vw, 80px);
  align-items: end;
  position: relative;
  overflow: hidden;
}
.contact .eyebrow { color: var(--invert-muted); margin-bottom: 24px; }
.contact .h2 em { color: var(--spot); }
.contact p { color: var(--invert-muted); margin-top: 20px; max-width: 30em; }
.contact-actions { display: grid; gap: 12px; justify-items: start; }
.contact .btn-primary { background: var(--invert-ink); color: var(--invert-bg); }
.contact .btn-ghost { border-color: color-mix(in srgb, var(--invert-ink) 30%, transparent); color: var(--invert-ink); }
@media (hover: hover) {
  .contact .btn-primary:hover { background: var(--spot); color: #17150f; }
  .contact .btn-ghost:hover { border-color: var(--invert-ink); }
}
.contact-note { font-size: 14px; color: var(--invert-muted); margin-top: 6px; }
.contact-note a { color: var(--invert-ink); }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-actions, .contact-actions .btn { width: 100%; }
  .contact-actions .btn { white-space: normal; text-align: center; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { padding: 72px 0 40px; font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding-bottom: 56px;
}
.footer-grid p { color: var(--muted); margin-top: 16px; max-width: 26em; }
.footer-grid h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid ul { display: grid; gap: 4px; }
.footer-grid li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  text-decoration: none;
  color: var(--ink-2);
}
.footer-grid li a svg { width: 14px; height: 14px; opacity: 0.6; }
@media (hover: hover) { .footer-grid li a:hover { color: var(--accent); } }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ── Long-form pages (privacy, 404) ─────────────────────────────────────── */
.page { padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px); }
.prose { max-width: 42rem; }
.prose .display { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.prose .meta { margin-top: 20px; color: var(--muted); font-size: 15px; }
.prose h2 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 48px 0 12px;
}
.prose p, .prose ul { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 12px; display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose ul li::marker { color: var(--spot); }
.prose a { color: var(--accent); }
.prose .lead { margin-top: 24px; }

/* ── Entrance (scroll-driven where supported; content is never hidden otherwise) ── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-art, .device-stage { display: none; }
  body { background: #fff; color: #000; }
}
