/* Proxly's landing page. The app's own palette (app/src/app.css) and font, laid out like a
   dark frame holding light cards. Nothing here loads from another website. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --frame: #111318;      /* the app's dark ground */
  --frame-line: #2a2e38;
  --on-frame: #f1f2f5;
  --on-frame-dim: #9aa1af;
  --card: #f4f5f7;       /* the app's light ground */
  --card-dot: #d5d9e1;
  --ink: #15171c;
  --ink2: #3c414c;
  --muted: #5b616e;
  --accent: #2f5bea;     /* light-mode accent: on the light cards */
  --accent-dark: #3d68f0;
  --accent-soft: #c7d3fb;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: "Figtree", system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--frame);
  color: var(--on-frame);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2 { margin: 0; font-weight: 900; text-transform: uppercase; line-height: 0.98; letter-spacing: -0.035em; }
h1 { font-size: clamp(40px, 7.2vw, 88px); }
h2 { font-size: clamp(30px, 4.6vw, 56px); }
p { margin: 0; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Header ---- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--frame) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--frame-line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-frame); }
.logo { width: 30px; height: 30px; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; }
.nav a {
  text-decoration: none; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-frame);
}
.nav a:hover { color: #fff; }
.nav .nav-cta { color: #8aa6ff; }
@media (max-width: 520px) { .nav a:not(.nav-cta) { display: none; } }

/* ---- Light cards on the dark frame ---- */
main { padding: 0 var(--gutter); }
.card {
  position: relative;
  background-color: var(--card);
  background-image: radial-gradient(var(--card-dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  border-radius: var(--radius);
  max-width: 1240px;
  margin: 0 auto;
}

/* ---- Hero ---- */
.hero {
  margin-top: clamp(28px, 6vw, 64px);
  padding: clamp(32px, 6vw, 80px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero-text { display: grid; gap: 22px; justify-items: start; }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink2); max-width: 34em; font-weight: 500; }
.button {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 22px; border-radius: 6px;
}
.button:hover { background: var(--accent); }

.hero-art { position: relative; display: grid; gap: 14px; justify-items: center; padding: 12px 0; }
.clip {
  width: min(100%, 300px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e3e5ea; border-radius: 12px;
  padding: 16px 18px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px -18px rgba(21, 23, 28, 0.35);
}
.clip b { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: 13px; }
.clip.c1 { transform: rotate(-2deg); }
.clip.c2 { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: rotate(1.5deg); }
.arrow { width: 4px; height: 46px; background: var(--accent); border-radius: 2px; position: relative; }
.arrow::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 9px solid transparent; border-top: 11px solid var(--accent); border-bottom: 0;
}
.note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }

/* ---- The story: a tall section whose card stays put while the line grows ---- */
.story { height: 420vh; margin-top: clamp(28px, 6vw, 64px); }
.story-stick { position: sticky; top: 80px; height: calc(100vh - 96px); display: flex; align-items: stretch; }
.story-card {
  width: 100%;
  display: grid; grid-template-rows: 1fr auto;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
}
.steps { position: relative; }
.step {
  position: absolute; inset: 0 0 auto auto; width: min(100%, 640px);
  display: grid; gap: 18px; text-align: right; justify-items: end;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.step p:not(.label) { color: var(--ink2); font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; max-width: 32em; }

.track { position: relative; height: 120px; margin: 0 2%; }
.rail { position: absolute; left: 0; right: 0; top: 40px; height: 8px; }
.fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--accent); border-radius: 4px;
  transition: width 0.15s linear;
}
.ahead {
  position: absolute; top: 0; height: 100%; right: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 28px);
  opacity: 0.35; border-radius: 4px;
}
.node { position: absolute; top: 20px; transform: translateX(-50%); display: grid; justify-items: center; gap: 14px; }
.n0 { left: 0%; } .n1 { left: 33.33%; } .n2 { left: 66.66%; } .n3 { left: 100%; }
.dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--card); border: 4px dashed var(--accent);
  display: grid; place-items: center;
  transition: background 0.3s ease, border-style 0.3s ease, transform 0.3s ease;
}
.dot::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: transparent; transition: background 0.3s; }
.node.is-on .dot { background: var(--accent); border-style: solid; transform: scale(1.06); }
.node.is-on .dot::after { background: #1f45c7; }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.node.is-on .tag { color: var(--ink); }

/* ---- Works with ---- */
.works {
  max-width: 1240px; margin: clamp(40px, 8vw, 96px) auto;
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center;
}
.works .label { color: var(--on-frame-dim); }
.app { font-weight: 800; font-size: clamp(16px, 2vw, 22px); letter-spacing: -0.01em; color: var(--on-frame); }

/* ---- Private by design ---- */
.private { padding: clamp(32px, 6vw, 80px); display: grid; gap: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.fact { background: #fff; border: 1px solid #e3e5ea; border-radius: 14px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.fact .big { font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.fact p:not(.big) { color: var(--ink2); font-weight: 500; }

/* ---- Coming soon ---- */
.soon {
  max-width: 1240px; margin: clamp(56px, 10vw, 128px) auto; text-align: center;
  display: grid; gap: 16px; justify-items: center;
}
.soon .label { color: var(--on-frame-dim); }
.soon h2 { font-size: clamp(44px, 9vw, 120px); color: var(--on-frame); }
.soon p:not(.label) { color: var(--on-frame-dim); font-size: 18px; max-width: 30em; }

/* ---- Footer ---- */
.foot {
  border-top: 1px solid var(--frame-line);
  padding: 40px var(--gutter) 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px;
  max-width: 1320px; margin: 0 auto;
}
.foot-brand p { color: var(--on-frame-dim); margin-top: 8px; max-width: 26em; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col .label { color: var(--on-frame-dim); }
.foot-col a { text-decoration: none; color: var(--on-frame); }
.foot-col a:hover { color: #8aa6ff; }
.copy { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; color: var(--on-frame-dim); letter-spacing: 0.1em; }

:focus-visible { outline: 3px solid #8aa6ff; outline-offset: 3px; border-radius: 4px; }

/* ---- Phones and small windows ---- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .step { text-align: left; justify-items: start; inset: 0 auto auto 0; }
  .step h2 br { display: none; }
  .track { margin: 0 24px; }
  .tag { font-size: 10px; letter-spacing: 0.04em; }
  .dot { width: 34px; height: 34px; border-width: 3px; }
  .dot::after { width: 10px; height: 10px; }
  .rail { top: 33px; height: 6px; }
}
@media (max-width: 420px) {
  .tag { white-space: normal; text-align: center; width: 64px; }
}

/* Without motion: every step is shown, one under the other, and the line is full. */
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story-stick { position: static; height: auto; }
  .steps { display: grid; gap: 40px; margin-bottom: 40px; }
  .step { position: static; opacity: 1; transform: none; transition: none; }
  .fill { width: 100% !important; transition: none; }
  .node .dot { background: var(--accent); border-style: solid; }
}
