/* Odd Syntax Studios — site stylesheet. Built on the Nocturne tokens. No external requests. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #161826;
  --color-bg-deep: #11131e;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-muted: #b2b6ca;
  --color-accent: #9184d9;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --color-section: #262a60;
  --color-section-glow: #353b80;
  --color-section-ghost: #4c5397;

  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading-weight: 500;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 28px;

  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px #3f424d, 0 24px 60px rgba(0, 0, 0, 0.6);

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(56px, 8vw, 96px);
  --rule: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent);
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--color-accent-400); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-300); }
a:active { color: var(--color-accent-200); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
address { font-style: normal; }
strong { font-weight: 600; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 35%, transparent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text);
  box-shadow: var(--shadow-md); text-decoration: none;
}
.skip:focus { top: 12px; }

/* — header — */
.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 32px;
  padding-block: 18px;
  background: var(--rule) no-repeat bottom / 100% 1px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-text); }
.brand-mark { height: 34px; width: auto; }
.brand-word { height: 21px; width: auto; }
.brand:hover .brand-mark { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--color-accent) 45%, transparent)); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-md);
  color: var(--color-neutral-300); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav a:hover { color: var(--color-text); background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.site-nav a:active { background: color-mix(in srgb, var(--color-text) 12%, transparent); }
.site-nav a[aria-current="page"] { color: var(--color-accent-400); box-shadow: inset 0 0 0 1px var(--color-accent-700); }

@media (max-width: 640px) {
  .site-header .wrap { padding-block: 14px 10px; }
  .site-nav { width: 100%; margin-inline: -12px; }
  .site-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 10px 12px; }
}

/* — buttons & actions — */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid var(--color-accent); border-radius: var(--radius-md);
  background: transparent; color: var(--color-accent-300);
  font-family: var(--font-heading); font-weight: 500; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 24px -6px color-mix(in srgb, var(--color-accent) 45%, transparent);
}
.button:hover, .btn:hover { color: var(--color-accent-200); background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.button:active, .btn:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero-actions > a:not(.button) {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  color: var(--color-text); text-decoration: none; font-weight: 500;
}
.hero-actions > a:not(.button)::after { content: "\2192"; color: var(--color-accent); }
.hero-actions > a:not(.button):hover { color: var(--color-accent-300); }

/* — type helpers — */
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--color-neutral-300); max-width: 38em; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--color-accent-900); box-shadow: inset 0 0 0 1px var(--color-accent-800);
  color: var(--color-accent-200); font-size: 14px; line-height: 1.4;
}
.status::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-accent-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 25%, transparent);
}
.tight { margin-bottom: 0.15em; }
.spaced { margin-top: 1.25em; }

/* — home hero — */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-section-glow) 55%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center; gap: 48px;
  padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px);
}
.hero h1 { max-width: 13ch; }
.hero-figure {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-surface), var(--color-bg-deep));
  box-shadow: var(--shadow-lg);
  padding: 12px 12px 12px 28px;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 460px; }
}

/* — hero app screenshot — */
.hero-shot { margin: 0; justify-self: center; }
.hero-shot img {
  width: 100%; max-width: 340px; height: auto;
  border-radius: 36px;
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .hero-shot { margin-top: 16px; }
  .hero-shot img { max-width: 280px; }
}

/* — chart — */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.c-shore-fill { fill: #1d2030; }
.c-deep-fill { fill: color-mix(in srgb, var(--color-section) 70%, transparent); }
.c-shore { fill: none; stroke: var(--color-neutral-500); stroke-width: 1.4; }
.c-line { fill: none; stroke: var(--color-neutral-700); stroke-width: 0.9; }
.sounding { fill: var(--color-neutral-500); font-family: var(--font-body); font-size: 10px; font-variant-numeric: tabular-nums; }
.route { fill: none; stroke: var(--color-accent-400); stroke-width: 2.4; stroke-dasharray: 6 5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(150, 138, 224, 0.6)); }
.route-mask { stroke-dasharray: 1; stroke-dashoffset: 1; animation: route-draw 2.6s 0.4s cubic-bezier(.45, 0, .2, 1) forwards; }
.launch { fill: var(--color-bg); stroke: var(--color-accent-300); stroke-width: 2.2; }
.chart-label { fill: var(--color-neutral-200); font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .route-mask { animation: none; stroke-dashoffset: 0; } }

/* — sections — */
.section .wrap, .page-head + .section .wrap { padding-block: var(--section-pad); background: var(--rule) no-repeat top / 100% 1px; }
.page-head + .section .wrap { background: none; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; align-items: start; }
.split > h2 { position: sticky; top: 24px; }
@media (max-width: 800px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > h2 { position: static; }
}
.prose { max-width: 40em; }
.prose > :last-child { margin-bottom: 0; }
.prose h3 { margin-top: 1.6em; }

/* full-bleed product band — the one saturated field on the page */
.product-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 90% at 85% 0%, var(--color-section-glow), transparent 70%),
    var(--color-section);
}
.product-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--color-section-ghost), transparent);
}
.product-band .wrap { position: relative; padding-block: var(--section-pad); }
.product-band .prose { color: var(--color-neutral-200); }
.product-band .status { background: color-mix(in srgb, var(--color-bg) 45%, transparent); box-shadow: inset 0 0 0 1px var(--color-section-ghost); }
.product-band a:not(.button) { color: var(--color-accent-200); }

/* — fact lists — */
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.facts > div {
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--color-surface), color-mix(in srgb, var(--color-surface) 40%, var(--color-bg)));
  box-shadow: var(--shadow-sm);
}
.facts dt { font-family: var(--font-heading); font-weight: 500; font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.facts dt::before {
  content: ""; display: block; width: 20px; height: 2px; margin-bottom: 16px;
  background: var(--color-accent); box-shadow: 0 0 10px var(--color-accent);
}
.facts dd { margin: 0; color: var(--color-neutral-300); font-size: 16px; line-height: 1.6; }
@media (max-width: 600px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts > div { padding: 20px; } }

/* — page heads (product, legal, contact, 404) — */
.page-head { position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; top: -40%; left: -10%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-section-glow) 45%, transparent), transparent);
  pointer-events: none;
}
.page-head .wrap { position: relative; padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-head .lede { margin-bottom: 20px; }
.tagline {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--color-accent-300); margin: -0.1em 0 0.9em;
}
.page-head .lede a { color: var(--color-accent-300); }

/* product page head with logo plate */
.product-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.product-logo {
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
  background: var(--color-neutral-100);
  box-shadow: 0 0 0 1px var(--color-neutral-300), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.product-logo img { width: 100%; }
@media (max-width: 860px) {
  .product-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .product-logo { order: -1; max-width: 420px; padding: 24px 28px; }
}

/* screenshots */
.screens .wrap { padding-block: 0 var(--section-pad); }
.screens-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; max-width: 960px; }
.screens-row img {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: 0 0 0 1px var(--color-neutral-700), 0 0 0 7px #0d0f18, 0 0 0 8px var(--color-neutral-800), 0 30px 60px rgba(0, 0, 0, 0.55);
}
.screens-row img:nth-child(2) { margin-top: 48px; }
.screens-row img:nth-child(3) { margin-top: 96px; }
@media (max-width: 700px) {
  .screens-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 12px 20px; margin-inline: -12px;
    scrollbar-width: thin;
  }
  .screens-row img { scroll-snap-align: center; }
  .screens-row img:nth-child(n) { margin-top: 0; }
}

/* — tables — */
.table-scroll { overflow-x: auto; margin: 1.5em 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
th {
  text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--color-neutral-300); padding: 14px 18px; background: var(--color-surface);
}
th + th { color: var(--color-accent-300); }
td { padding: 13px 18px; vertical-align: top; border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
td + td, th + th { border-left: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
tbody tr:hover td { background: color-mix(in srgb, var(--color-text) 3%, transparent); }

/* — about / founder — */
.not-found .wrap { min-height: min(70vh, 640px); display: flex; flex-direction: column; justify-content: center; }
.not-found .wrap::before {
  content: "404"; display: block; margin-bottom: 8px;
  font-family: var(--font-heading); font-weight: 500; line-height: 0.9; letter-spacing: -0.05em;
  font-size: clamp(120px, 24vw, 260px);
  color: transparent; -webkit-text-stroke: 1.5px var(--color-accent-600);
  text-shadow: 0 0 40px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.not-found .wrap::after {
  content: ""; position: absolute; right: var(--gutter); top: 50%; width: min(36vw, 420px); aspect-ratio: 149 / 120;
  transform: translateY(-50%); background: url("../img/oss-mark.png") center / contain no-repeat;
  opacity: 0.12; pointer-events: none;
}
.not-found h1 { max-width: 14ch; }
@media (max-width: 760px) { .not-found .wrap::after { display: none; } }

/* — about / founder — */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; align-items: start; }
.founder-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.founder-text h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 0.2em; }
.role { color: var(--color-accent-300); font-weight: 500; font-size: 18px; margin-bottom: 1.6em; }
@media (max-width: 760px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { max-width: 320px; }
}

/* — legal documents (privacy, terms) — */
.legal-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px 64px; align-items: start; }
.legal-layout .toc { position: sticky; top: 24px; margin: 0; font-size: 14px; line-height: 1.4; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.legal-layout .toc ol { columns: auto; padding-left: 1.4em; }
.legal-layout .toc li { margin-bottom: 0.3em; }
.toc-title { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-400); margin-bottom: 12px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-layout .toc { position: static; max-height: none; overflow: visible; }
  .legal-layout .toc ol { columns: 2 14em; column-gap: 32px; }
}
.legal .callout { padding: 18px 22px; border-radius: var(--radius-lg); background: var(--color-accent-900); box-shadow: inset 0 0 0 1px var(--color-accent-800); color: var(--color-accent-100); margin: 0 0 1.4em; }
.legal .caps { text-transform: uppercase; font-size: 15px; letter-spacing: 0.01em; }
.legal, .doc { max-width: 42em; font-size: 17px; line-height: 1.7; }
.legal h2, .doc h2, main .prose h2 {
  font-size: clamp(22px, 2.6vw, 26px); margin: 2.4em 0 0.7em; padding-top: 1.2em;
  background: var(--rule) no-repeat top / 100% 1px;
}
.legal h2:first-child, .doc h2:first-child { margin-top: 0; padding-top: 0; background: none; }
.legal h3, .doc h3 { font-size: 19px; margin: 1.8em 0 0.5em; color: var(--color-neutral-100); }
main ul, main ol { padding-left: 1.3em; margin: 0 0 1.1em; }
main li { margin-bottom: 0.45em; }
main li::marker { color: var(--color-accent-400); }
.legal p, .doc p, .legal li, .doc li { color: var(--color-neutral-200); }
.effective, .updated, .meta { color: var(--color-muted); font-size: 15px; }
.toc { margin: 0 0 2.5em; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.toc ol, .toc ul { margin: 0; columns: 2 16em; column-gap: 32px; }
.toc a { color: var(--color-neutral-200); text-decoration: none; }
.toc a:hover { color: var(--color-accent-300); text-decoration: underline; }
:target { scroll-margin-top: 24px; }
h2:target, h3:target { color: var(--color-accent-300); }

/* — footer — */
.site-footer { background: var(--color-bg-deep); margin-top: auto; }
.site-footer .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px 48px;
  padding-block: 56px 48px; font-size: 15px; color: var(--color-neutral-400);
  background: var(--rule) no-repeat top / 100% 1px;
}
.footer-mark { height: 30px; width: auto; margin-bottom: 18px; opacity: 0.9; }
.footer-name { color: var(--color-text); font-weight: 500; margin-bottom: 0.4em; }
.site-footer address { margin-bottom: 0.6em; }
.site-footer ul { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 6px; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--color-neutral-200); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent-300); text-decoration: underline; }
.site-footer p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .legal, .doc { font-size: 16px; }
}
