/* ==========================================================================
   LOUDRYX — landing page
   Palette is sampled from the shipping LOUDRYX UI:
   canvas #1E2024 · panel #2A2D34 · track #464A52 · accent #7053FF · gray #969CA6
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-sans-var-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/onest-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121417;
  --surface: #181B1F;
  --surface-2: #1F2329;
  --line: #262A31;
  --line-2: #3A3F48;
  --ink: #EDEEF0;
  --ink-2: #C9CCD2;
  --muted: #969CA6;
  --muted-2: #6E747E;
  --accent: #7053FF;
  --accent-ink: #A99AFF;
  --accent-soft: rgba(112, 83, 255, .14);
  --shell: 1120px;
  --gutter: 32px;
  --radius: 12px;
  --display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --text: 'Onest', 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ---------- Layout -------------------------------------------------------- */

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

.section { padding-block: clamp(56px, 5.2vw, 80px); }
.section-tight { padding-block: clamp(44px, 3.8vw, 60px); }
main > section[id] { scroll-margin-top: 92px; }

/* ---------- Type ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 600;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: -.028em;
  max-width: 100%;
}

h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.85rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -.008em;
}

.lede {
  margin: 26px 0 0;
  max-width: 640px;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.62;
  color: var(--muted);
}

.body {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.68;
}

.label {
  margin: 0 0 20px;
  font-family: var(--text);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* ---------- Section head -------------------------------------------------- */

.head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 0 56px;
  align-items: start;
}

.head-side { padding-top: 32px; }

.head-single .head-side { padding-top: 10px; }

/* ---------- Buttons ------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--text);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.005em;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #7F66FF; }

.btn-quiet {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-quiet:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}

.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .17em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav > a {
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s ease;
}
.nav > a:hover { color: var(--ink); }

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: border-color .22s ease, background-color .22s ease;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
}

.nav-toggle-bar {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease;
}

.site-header.nav-open .nav-toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------------------------------------------------------- */

.hero { padding-top: clamp(40px, 6vw, 88px); }

.hero-copy { padding-bottom: clamp(48px, 6vw, 80px); }

.frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .9), 0 4px 16px -8px rgba(0, 0, 0, .6);
}

.frame img { width: 100%; }

.hero-status {
  margin: 20px 0 0;
  font-family: var(--text);
  font-size: .7rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-status-sep {
  padding: 0 8px;
  color: var(--muted-2);
}

/* ---------- Real product -------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 56px;
  align-items: start;
  margin-top: clamp(36px, 4vw, 56px);
}

.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 26px;
  border-top: 1px solid var(--line);
  counter-reset: stage;
}

.stages li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--ink-2);
}

.stages li::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  flex: none;
  font-family: var(--text);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
}

/* ---------- Intelligence -------------------------------------------------- */

.label-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.intel { margin-top: clamp(36px, 4vw, 56px); }

.quote {
  margin: 0;
  max-width: 640px;
  padding: 30px 32px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-role {
  margin: 0 0 16px;
  font-family: var(--text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.quote-text {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: pretty;
}

.flow-block { margin-top: clamp(36px, 4vw, 52px); }

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow li {
  position: relative;
  padding: 30px 28px 0 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.008em;
  color: var(--muted);
}

.flow li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
}

.flow li::after {
  content: '';
  position: absolute;
  left: 17px;
  right: 10px;
  top: 9.5px;
  height: 1px;
  background: var(--line);
}

.flow li:last-child { color: var(--ink); }
.flow li:last-child::after { display: none; }
.flow li:last-child::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.state-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 40px 0 0;
  font-size: .9375rem;
  color: var(--ink-2);
}

.state-line .dot { flex: none; }

.aside {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 58ch;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- From presets to intent --------------------------------------- */

.compare {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(32px, 3.6vw, 46px);
  border-top: 1px solid var(--line);
}

.compare-title {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -.012em;
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 56px;
  margin-top: clamp(24px, 2.6vw, 34px);
}

.compare-label {
  margin: 0 0 16px;
  font-family: var(--text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.compare-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--muted);
}

.compare-list-intent li {
  font-family: var(--text);
  font-size: .975rem;
  font-weight: 500;
  letter-spacing: -.008em;
  color: var(--ink-2);
}

.compare-note {
  margin: clamp(24px, 2.6vw, 32px) 0 0;
  max-width: 62ch;
  font-size: 1rem;
  color: var(--ink-2);
}

/* ---------- Use cases ----------------------------------------------------- */

.usecases {
  list-style: none;
  margin: clamp(28px, 3.2vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}

.usecases li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.usecases p {
  margin: 12px 0 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Screenshot switcher ------------------------------------------- */

.shots { margin-top: clamp(28px, 3.2vw, 44px); }

.tablist {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--text);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background-color .24s ease, border-color .24s ease, color .24s ease;
}

.tab:hover { color: var(--ink); border-color: var(--line-2); }

.tab[aria-selected='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

#shot { transition: opacity .26s ease; }
#shot.is-fading { opacity: 0; }

/* ---------- About --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px 56px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.about-copy {
  margin: 0;
  max-width: 48ch;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.46;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: pretty;
}

.about-contact {
  margin: 0;
  font-size: .9375rem;
  color: var(--muted-2);
}

.about-contact a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  transition: color .2s ease, border-color .2s ease;
}

.about-contact a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ---------- Final CTA ----------------------------------------------------- */

.final h2 { max-width: 24ch; }
.final .body { margin-top: 20px; }

.contact {
  margin: 24px 0 0;
  font-size: .9375rem;
  color: var(--muted-2);
}

.contact a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  transition: color .2s ease, border-color .2s ease;
}
.contact a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  padding-block: 44px 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--ink); }

.footer-note {
  margin: 22px 0 0;
  font-size: .8125rem;
  color: var(--muted-2);
}

/* ---------- Motion -------------------------------------------------------- */

.js .rise,
.js .reveal { opacity: 0; }

.js .rise {
  transform: translateY(14px);
  animation: riseIn .9s cubic-bezier(.22, .7, .2, 1) var(--d, 0s) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.js .reveal {
  transform: translateY(12px);
  transition:
    opacity .8s cubic-bezier(.22, .7, .2, 1) var(--d, 0s),
    transform .8s cubic-bezier(.22, .7, .2, 1) var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1000px) {
  .head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .head-side { padding-top: 20px; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 44px; }

  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li { padding: 0 0 26px 38px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before { top: .42em; }
  .flow li::after {
    left: 5px;
    right: auto;
    top: 1.5em;
    bottom: .1em;
    width: 1px;
    height: auto;
  }

  .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav { gap: 24px; }
}

@media (max-width: 860px) {
  :root { --gutter: 22px; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .nav { display: flex; }

  .nav > a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav > a:last-child {
    border-bottom: 0;
    margin-top: 14px;
    align-self: flex-start;
  }

  .nav > a.nav-cta {
    padding: 11px 22px;
    border: 1px solid var(--line-2);
  }

  h1 { max-width: 100%; }
}

@media (max-width: 620px) {
  .stages { grid-template-columns: minmax(0, 1fr); }
  .usecases { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .compare-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  .quote { padding: 24px 22px 26px; }

  .actions .btn { flex: 1 1 100%; }

  .tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tab { padding: 9px 6px; font-size: .72rem; letter-spacing: .06em; text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav { gap: 22px; }
}

/* ---------- Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .rise,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .dot { animation: none; opacity: 1; }
}

/* ---------- Simple document page (privacy) -------------------------------- */

.doc { padding-top: clamp(40px, 6vw, 72px); }

.doc h1 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  max-width: 20ch;
}

.doc p {
  margin: 0 0 20px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.doc .doc-meta {
  margin: 22px 0 40px;
  font-size: .875rem;
  color: var(--muted-2);
}

.doc a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}
.doc a:hover { color: var(--ink); border-color: var(--accent); }

.doc-back {
  display: inline-block;
  margin-bottom: 34px;
  font-family: var(--text);
  font-size: .875rem;
  color: var(--muted);
  border-bottom: 0 !important;
}
.doc-back:hover { color: var(--ink); }
