/* Arco site — shared design system. TWO THEMES driven by CSS vars on <html data-theme="dark|light">.
   Dark = the product's identity (gold on near-black). Light = warm paper with the same gold. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html[data-theme="dark"] {
  --bg: #0b0b0d;            /* page */
  --bg-2: #111114;          /* raised cards */
  --line: #232328;          /* borders */
  --text: #e8e8ec;
  --dim: #9a9aa2;
  --faint: #5c5c64;
  --accent: #d4af37;        /* Arco gold */
  --accent-ink: #161617;    /* text ON gold */
  --accent-soft: rgba(212, 175, 55, 0.12);
  --hero-particle: #d4af37;
  --hero-particle-2: #8a7020;
  --hero-cyan: #4dd8e6;
  --hero-purple: #a06ee6;
  --hero-purple-2: #cdb4f5;
  --hero-red: #e0606a;
  --hero-blue: #5a8de6;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
html[data-theme="light"] {
  --bg: #faf9f6;
  --bg-2: #ffffff;
  --line: #e4e1d8;
  --text: #1c1b18;
  --dim: #6b675c;
  --faint: #a39e90;
  --accent: #a8851a;        /* deeper gold for contrast on light */
  --accent-ink: #ffffff;
  --accent-soft: rgba(168, 133, 26, 0.10);
  --hero-particle: #b8932a;
  --hero-particle-2: #d9c68a;
  --hero-cyan: #1a98a8;
  --hero-purple: #7a4ec2;
  --hero-purple-2: #a184d8;
  --hero-red: #c24a52;
  --hero-blue: #2f62b8;
  --shadow: 0 24px 64px rgba(60, 50, 20, 0.12);
}

/* SECTION PAGING is JS-driven (site.js): one wheel gesture = one section, with an EASED glide.
   scroll-behavior stays auto so the pager's frame-by-frame animation is the only easing. */
html { scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--text);
  /* terminal voice — Arco is a coding agent, the site types like one */
  font-family: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, monospace;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }

/* ── Top bar: scrolls AWAY with the page (absolute, pinned to the page top). Only the ARCO mark
      stays — fixed, floating, no background. ── */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 28px; gap: 16px;
}
.tb-left { position: fixed; top: 14px; left: 28px; z-index: 60;
  display: flex; align-items: center; gap: 10px; }
.tb-left img { height: 26px; width: auto; }
.tb-left .tb-name { font-weight: 800; letter-spacing: 1.5px; font-size: 16px; }
/* the fixed ARCO mark leaves the grid flow — pin the clusters to their columns explicitly,
   or they slide left into the vacated cells */
.tb-center { grid-column: 2; display: flex; align-items: center; gap: 10px; justify-self: center; }
.tb-right { grid-column: 3; display: flex; align-items: center; gap: 22px; justify-self: end; }
.tb-link { font-size: 13.5px; font-weight: 600; color: var(--dim); transition: color 0.15s; }
.tb-link:hover, .tb-link.active { color: var(--text); }

.btn { display: inline-block; border: none; cursor: pointer; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; padding: 9px 20px; line-height: 1.2;
  transition: filter 0.15s, background 0.15s, color 0.15s, border-color 0.15s; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* theme toggle — a quiet sun/moon button */
.theme-btn { background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; color: var(--dim);
  display: grid; place-items: center; transition: color 0.15s, border-color 0.15s; }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 16px; height: 16px; }
/* Language switcher (globe) — matches the theme button */
.lang-btn { background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; color: var(--dim);
  display: grid; place-items: center; transition: color 0.15s, border-color 0.15s; }
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-menu { position: fixed; z-index: 1000; background: var(--bg, #14141a); border: 1px solid var(--line);
  border-radius: 11px; padding: 6px; max-height: 60vh; overflow: auto; min-width: 168px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45); }
.lang-item { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 8px 12px; border-radius: 7px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.lang-item:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.lang-item.sel { color: var(--accent); font-weight: 700; }
:root[dir="rtl"] .lang-item { text-align: right; }

/* hamburger (mobile only) — opens the Enterprise/Pricing/theme menu */
.tb-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 38px; height: 34px; cursor: pointer; color: var(--text); align-items: center; justify-content: center; }
.tb-burger:hover { border-color: var(--accent); color: var(--accent); }
.tb-burger svg { width: 20px; height: 20px; }

/* ── Hero ── */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }

/* ── Hero: the terminal voice, sitting HIGH (not dead center) — page stop #1 ── */
.hero-split { display: flex; flex-direction: column; justify-content: flex-start;
  padding: 23vh 3vw 48px; min-height: 100vh; height: auto; }
.hero-term { text-align: center; padding: 6px 18px 22px; }

/* ── the screenshot panel — a full 100vh stop with the image DEAD-CENTERED; pulled up under the
      hero so ~half of it peeks there ── */
.shot-band { height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 0 4vw; margin-top: -48vh; }
.shot-band img { display: block; max-width: min(1150px, 94vw); max-height: 88vh;
  width: auto; height: auto; border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 28px color-mix(in srgb, var(--accent) 7%, transparent); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-right { display: flex; align-items: center; justify-content: flex-start; min-width: 0;
  perspective: 1500px; }
@media (max-width: 920px) {
  .hero-row { grid-template-columns: 1fr; gap: 18px; }
  .hero-neb { height: 320px; }
  .hero-right { justify-content: center; }
}
.ht-line { color: var(--faint); font-size: 13px; letter-spacing: 1.5px; margin-bottom: 16px; }
.ht-prompt { color: var(--accent); }
.hero-term h1 { font-size: clamp(23px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.5px; }
.caret { display: inline-block; width: 0.55em; height: 1em; background: var(--accent);
  margin-left: 8px; vertical-align: text-bottom; animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.ht-sub { margin-top: 14px; color: var(--dim); font-size: clamp(12px, 1.4vw, 14.5px); }
/* (the hero screenshot was removed — dark.png/white.png stay in website/ for later sections) */
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--faint); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  animation: hero-bob 2.4s ease-in-out infinite; }
@keyframes hero-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ── COSMOS (page stop #3): the live window DOCKED LEFT, the explainer on the right. The window
      must NOT fill the viewport — the gutters + right column stay page-owned so the wheel there
      keeps paging; only inside the frame does it zoom the galaxy. Band bg = page bg. ── */
.cosmos-band { position: relative; height: 100vh; background: var(--bg); overflow: hidden;
  display: flex; align-items: center; gap: 3vw; padding: 0 3vw 0 2.5vw; }
.cosmos-stage { position: relative; flex-shrink: 0; width: min(1300px, 70vw); height: 86vh;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #000005;
  box-shadow: var(--shadow),
              0 0 46px color-mix(in srgb, var(--accent) 14%, transparent); }
.cosmos-stage canvas { display: block; }
/* the frame IS Arco (its own document with the app's real stylesheet) — fill the stage exactly */
.cosmos-stage iframe.cosmos-frame { position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; background: #000; }
/* the right column — a slim strip of explanatory text; the cosmos is the star */
.cosmos-copy { flex: 1; min-width: 0; max-width: 360px; }
.cosmos-copy h2 { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.4px;
  margin: 4px 0 12px; }
.cc-lead { color: var(--text); font-size: 13px; margin-bottom: 16px; }
.cc-list { list-style: none; display: flex; flex-direction: column; gap: 10px;
  color: var(--dim); font-size: 12.5px; line-height: 1.6; margin-bottom: 18px; }
.cc-list li { padding-left: 18px; position: relative; }
.cc-list li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.cc-end { color: var(--text); font-size: 13.5px; margin-bottom: 14px; }
.cc-hint { color: var(--faint); font-size: 11.5px; }
@media (max-width: 1100px) {
  .cosmos-band { flex-direction: column; justify-content: center; gap: 22px; padding: 10vh 4vw 0; }
  .cosmos-stage { width: 92vw; height: 56vh; }
  .cosmos-copy { max-width: 92vw; }
}
.cosmos-fail { display: grid; place-items: center; height: 100%; color: #5c5c64;
  font-size: 12px; letter-spacing: 1px; }

/* ── CONVERSATION-MAP RAIL: fixed right, centered; one icon per section; active lights up gold ── */
.rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 70;
  display: flex; flex-direction: column; gap: 8px; padding: 8px 6px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent); border: 1px solid var(--line);
  border-radius: 999px; backdrop-filter: blur(10px); }
.rail-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--dim); cursor: pointer; border-radius: 50%;
  transition: color .18s, background .18s, box-shadow .18s; }
.rail-btn svg { width: 19px; height: 19px; }
/* real app icons (cosmos/designer/mc) as masks → take the button color, like the desktop .ic-mono */
/* Cosmos/Designer/MC = the app's mono assets shown as <img> (renders on every browser, unlike CSS
   masks). The glyphs are black, so invert them to read light on the dark rail; opacity carries the
   idle/hover/active state and the active GOLD cue comes from the button background. */
.rail-img { display: block; width: 19px; height: 19px; object-fit: contain;
  filter: invert(1); opacity: .5; transition: opacity .18s; pointer-events: none; }
.rail-btn:hover .rail-img { opacity: .82; }
.rail-btn.active .rail-img { opacity: 1; }
.rail-btn:hover { color: var(--dim); }
.rail-btn.active { color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
              0 0 14px color-mix(in srgb, var(--accent) 28%, transparent); }
.rail-tip { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-size: 12px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 4px 9px; opacity: 0; pointer-events: none; transition: opacity .15s;
  box-shadow: var(--shadow); }
.rail-btn:hover .rail-tip { opacity: 1; }
@media (max-width: 760px) { .rail { right: 5px; gap: 5px; padding: 6px 4px; }
  .rail-btn { width: 30px; height: 30px; } .rail-btn svg { width: 15px; height: 15px; }
  .rail-img { width: 15px; height: 15px; } .rail-tip { display: none; } }

/* ── FEATURE sections (Designer, Mission Control): a LARGE screenshot on its side, with the copy
      CENTERED in the remaining space so the text floats midway between the shot and the page edge.
      ALTERNATING — Designer = shot LEFT / copy RIGHT; MC (.feat-rev) = copy LEFT / shot RIGHT. ── */
.feat-band { min-height: 100vh; background: var(--bg); display: flex; align-items: center;
  justify-content: center; padding: 8vh 4vw; }
.feat-inner { width: 100%; display: grid; gap: 2vw; align-items: center;
  grid-template-columns: minmax(0, 1150px) minmax(320px, 1fr); }   /* Designer: BIG shot LEFT (dark.png size), copy RIGHT */
.feat-rev .feat-inner { grid-template-columns: minmax(320px, 1fr) minmax(0, 1150px); }   /* MC: shot RIGHT */
.feat-copy { max-width: 340px; margin: 0 auto; }             /* center the copy within its space */
.feat-copy h2 { font-size: clamp(23px, 2.7vw, 36px); font-weight: 700; letter-spacing: -0.5px; margin: 6px 0 12px; }
.feat-lead { color: var(--dim); font-size: 15px; line-height: 1.65; }
.feat-lead b { color: var(--text); }
/* same treatment as .shot-band img: rounded corners + a LIGHT gold glow */
.feat-shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 28px color-mix(in srgb, var(--accent) 7%, transparent); }
@media (max-width: 900px) {
  .feat-inner, .feat-rev .feat-inner { grid-template-columns: 1fr; gap: 24px; }
  .feat-copy { order: 1; max-width: 540px; text-align: center; } .feat-shot { order: 2; } }

/* ── SLASH COMMANDS reference ── */
.cmd-band { min-height: 100vh; background: var(--bg); display: flex; align-items: center;
  justify-content: center; padding: 10vh 6vw; }
.cmd-inner { max-width: 780px; width: 100%; text-align: center; }
.cmd-inner h2 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.4px; margin: 4px 0 8px; }
.cmd-lead { color: var(--dim); font-size: 14px; margin: 0 auto 30px; }
.cmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; text-align: left; }
.cmd-row { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmd-row code { color: var(--accent); font-weight: 700; font-size: 13.5px; flex: none; min-width: 90px; }
.cmd-row span { color: var(--dim); font-size: 13px; line-height: 1.5; }
@media (max-width: 720px) { .cmd-grid { grid-template-columns: 1fr; } }

/* ── EFFICIENCY (page stop #4): mechanism → 99% claim → THE NUMBERS → the honest part ── */
.eff-band { height: 100vh; background: var(--bg); display: flex; align-items: center;
  justify-content: center; padding: 0 6vw; }
.eff-inner { max-width: 740px; text-align: center; }
.eff-inner h2 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.4px;
  margin: 6px 0 18px; }
.eff-mech { color: var(--dim); font-size: 13.5px; line-height: 1.7; margin-bottom: 14px; }
.eff-claim { color: var(--text); font-size: 14px; margin-bottom: 34px; }
.eff-claim b { color: var(--accent); }
.eff-bench { margin-bottom: 34px; }
.eff-big { font-size: clamp(52px, 7vw, 86px); font-weight: 800; letter-spacing: -2px;
  color: var(--accent); line-height: 1; margin-bottom: 12px; }
.eff-big span { font-size: 0.32em; font-weight: 650; letter-spacing: 0; color: var(--text); }
.eff-pair { display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: clamp(14px, 1.6vw, 18px); margin-bottom: 10px; }
.eff-pair code { font-family: inherit; }
.eff-a { color: var(--accent); font-weight: 700; }
.eff-vs { color: var(--faint); font-size: 0.75em; }
.eff-b { color: var(--dim); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.eff-cond { color: var(--dim); font-size: 12px; letter-spacing: 0.4px; margin-bottom: 6px; }
.eff-note { color: var(--faint); font-size: 11px; letter-spacing: 0.4px; }
.eff-honest { max-width: 640px; margin: 0 auto; text-align: left;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 14px 18px; color: var(--dim); font-size: 12.5px; line-height: 1.7;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.eff-honest b { color: var(--text); }
.eff-honest-k { display: block; color: var(--accent); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }

/* (cosmos labels, bubble, toolbar, panels and composer all live INSIDE the frame now —
   styled by arco-app.css, the app's real stylesheet) */

/* ── Simple page shell (signin / stubs) ── */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 96px 24px 48px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 420px; overflow: hidden; box-shadow: var(--shadow); }
.stub { text-align: center; max-width: 520px; }
.stub h1 { font-size: 30px; margin-bottom: 12px; }
.stub p { color: var(--dim); line-height: 1.7; }
.stub .btn { margin-top: 22px; }

@media (max-width: 760px) {
  /* TOP BAR: logo far-left (un-fixed into the flow), smaller CTAs, and Enterprise/Pricing/theme tucked
     into a hamburger menu on the far right. */
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; gap: 8px; }
  .tb-left { position: static; }
  .tb-left img { height: 22px; }
  .tb-left .tb-name { font-size: 15px; }
  .tb-center { grid-column: auto; justify-self: auto; gap: 8px; }
  .tb-center .btn { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
  .tb-burger { display: inline-flex; }
  .tb-right { grid-column: auto; justify-self: auto; position: absolute; top: calc(100% + 2px); right: 10px;
    flex-direction: column; align-items: stretch; gap: 2px; min-width: 156px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
    box-shadow: var(--shadow); display: none; }
  .topbar.menu-open .tb-right { display: flex; }
  .tb-right .tb-link { display: block; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
  .tb-right .tb-link:hover { background: var(--accent-soft); }
  .tb-right .theme-btn { align-self: flex-start; margin-top: 2px; }
  /* PHONE bands: no fixed 100vh, no hero-peek pull, and a right inset (~46px) so content + screenshots
     clear the nav rail. The screenshots shrink to the inset width = "smaller, with room for the map". */
  .hero, .hero-split { padding: 15vh 46px 6vh 4vw; min-height: 86vh; }
  .shot-band { height: auto; min-height: auto; margin-top: 0; padding: 4vh 46px 6vh 4vw; }
  .shot-band img { max-width: 100%; }
  .cosmos-band { height: auto; min-height: auto; padding: 7vh 46px 5vh 4vw; }
  .cosmos-stage { width: 100%; height: 58vh; }
  .cosmos-band iframe.cosmos-frame { pointer-events: none; }   /* don't trap touch-scroll on the 3D canvas */
  .feat-band { min-height: auto; padding: 8vh 46px 8vh 5vw; }
  .eff-band { height: auto; min-height: auto; padding: 9vh 46px 9vh 6vw; }
  .cmd-band { min-height: auto; padding: 9vh 46px 9vh 6vw; }
}
