/* RUVNOX Website v6 — Mobile First, Logo + Typography Fix */

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

:root {
  --primary-dark: #121212;
  --graphite: #1E1E1E;
  --moss-green: #4F5D3A;
  --rust-earth: #A45A32;
  --fog-white: #F2EFE8;
  --warm-white: #EDEAE3;
  --steel-gray: #6F7373;

  --bg: var(--primary-dark);
  --surface: var(--graphite);
  --surface-soft: #24241F;
  --text: var(--fog-white);
  --muted: rgba(237, 234, 227, 0.74);
  --quiet: var(--steel-gray);
  --line: rgba(242, 239, 232, 0.12);
  --line-strong: rgba(164, 90, 50, 0.38);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);

  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;

  --page: min(100% - 32px, 1120px);
  --section-y: 76px;

  --font-headline: "Bahnschrift", "Aptos Narrow", "Segoe UI Variable", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI Variable", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-tech: Consolas, "Cascadia Code", "Liberation Mono", monospace;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 93, 58, 0.22), transparent 320px),
    radial-gradient(circle at 92% 20%, rgba(164, 90, 50, 0.16), transparent 360px),
    linear-gradient(180deg, #171812 0%, var(--bg) 520px);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(242, 239, 232, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 232, 0.024) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: var(--page);
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--warm-white);
  font-family: var(--font-headline);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.brand-wordmark { color: var(--warm-white); }

.nav { display: none; }
.mobile-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--warm-white);
  font-family: var(--font-headline);
  font-size: 0.82rem;
  font-weight: 800;
}
.section { width: var(--page); margin: 0 auto; padding: var(--section-y) 0; }
.kicker {
  margin: 0 0 18px;
  color: var(--rust-earth);
  font-family: var(--font-tech);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .button, .brand, .log-card h2 { font-family: var(--font-headline); }
h1 {
  max-width: 8ch;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(2.95rem, 13.8vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(2.15rem, 10vw, 4rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.05em;
}
h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 4.4vw, 1.18rem);
  line-height: 1.72;
}
.hero { width: var(--page); margin: 0 auto; padding: 64px 0 84px; }
.hero-copy { max-width: 640px; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}
.pills span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.8);
  color: var(--fog-white);
  font-family: var(--font-headline);
  font-size: 0.84rem;
  font-weight: 700;
}
.actions {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
}
.button-primary {
  background: var(--rust-earth);
  color: var(--fog-white);
  box-shadow: 0 18px 38px rgba(164, 90, 50, 0.18);
}
.button-secondary {
  border-color: var(--line-strong);
  background: rgba(164, 90, 50, 0.06);
  color: var(--warm-white);
}
.subline {
  margin: 26px 0 0;
  color: var(--quiet);
  font-weight: 700;
}
.hero-visual { margin-top: 68px; }
.device-card {
  position: relative;
  min-height: 420px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(30, 30, 30, 0.92), rgba(18, 18, 18, 0.96)),
    url("assets/route-pattern.svg") center / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.device-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 22px 22px;
  height: 120px;
  border-radius: 999px;
  background: rgba(164, 90, 50, 0.14);
  filter: blur(44px);
}
.device-inner {
  position: relative;
  z-index: 1;
  min-height: 388px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(242, 239, 232, 0.08);
  border-radius: 22px;
}
.device-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--steel-gray);
  font-family: var(--font-tech);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.device-logo {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 0 20px;
}
.device-logo img {
  width: 102px;
  object-fit: contain;
}
.log-card {
  padding: 20px;
  border: 1px solid rgba(242, 239, 232, 0.1);
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.78);
}
.log-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.56rem, 7vw, 2.08rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.log-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tags span, .price {
  font-family: var(--font-tech);
}
.tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(79, 93, 58, 0.36);
  color: var(--warm-white);
  font-size: 0.7rem;
  font-weight: 700;
}
.promise-grid { display: grid; gap: 14px; }
.promise-card,
.feature,
.export-copy,
.export-item,
.tabs-shell,
.privacy-box,
.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.promise-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.94), rgba(24, 24, 22, 0.9));
}
.promise-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--rust-earth);
  font-family: var(--font-headline);
  font-size: clamp(2.1rem, 11vw, 3.3rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.promise-card p,
.feature p,
.export-item span,
.text-block p,
.checks li { color: var(--muted); }
.split {
  display: grid;
  gap: 34px;
  border-top: 1px solid var(--line);
}
.text-block {
  font-size: 1.05rem;
  line-height: 1.82;
}
.text-block p:last-child { margin-bottom: 0; }
.statement {
  width: var(--page);
  margin: 10px auto 0;
  padding: 46px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(164, 90, 50, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(30, 30, 30, 0.96), rgba(18, 18, 18, 0.94));
}
.statement p {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 11vw, 4.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.feature-head { max-width: 760px; margin-bottom: 36px; }
.feature-grid { display: grid; gap: 14px; }
.feature {
  padding: 26px;
  background: rgba(30, 30, 30, 0.9);
}
.process { border-top: 1px solid var(--line); }
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(30, 30, 30, 0.9);
  color: var(--text);
  font-family: var(--font-headline);
  font-weight: 800;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  color: var(--rust-earth);
  font-family: var(--font-tech);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.tabs-section { border-top: 1px solid var(--line); }
.tabs-shell { background: rgba(30, 30, 30, 0.88); overflow: hidden; }
.tabs-shell input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.46);
}
.tab-labels label {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-headline);
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
#tab-free:checked ~ .tab-labels label[for="tab-free"],
#tab-pro:checked ~ .tab-labels label[for="tab-pro"],
#tab-cloud:checked ~ .tab-labels label[for="tab-cloud"] {
  background: var(--rust-earth);
  color: var(--fog-white);
}
.tab-panels { padding: 26px; }
.tab-panel { display: none; }
#tab-free:checked ~ .tab-panels #panel-free,
#tab-pro:checked ~ .tab-panels #panel-pro,
#tab-cloud:checked ~ .tab-panels #panel-cloud {
  display: grid;
  gap: 28px;
}
.plan h3 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 10vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.price {
  display: inline-flex;
  margin: 4px 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 93, 58, 0.38);
  color: var(--warm-white);
  font-size: 0.86rem;
  font-weight: 700;
}
.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(18, 18, 18, 0.48);
  font-weight: 560;
}
.checks li::before { content: "— "; color: var(--rust-earth); font-weight: 700; }
.export-panel { display: grid; gap: 14px; }
.export-copy, .export-item { background: rgba(30, 30, 30, 0.9); }
.export-copy { padding: 28px; }
.export-list { display: grid; gap: 12px; }
.export-item { padding: 22px; }
.export-item strong {
  display: block;
  color: var(--rust-earth);
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.export-item span { display: block; margin-top: 10px; }
.privacy-box {
  width: var(--page);
  margin: 0 auto;
  padding: 38px 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(79, 93, 58, 0.28), transparent 260px),
    rgba(30, 30, 30, 0.9);
}
.status-card {
  padding: 38px 24px;
  background:
    linear-gradient(135deg, rgba(164, 90, 50, 0.95), rgba(79, 93, 58, 0.82)),
    var(--graphite);
  color: var(--fog-white);
}
.status-card h2, .status-card p, .status-card .kicker { color: var(--fog-white); }
.status-card .button-primary {
  margin-top: 12px;
  background: var(--fog-white);
  color: var(--primary-dark);
  box-shadow: none;
}
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 30px 0;
  display: grid;
  gap: 14px;
  color: var(--steel-gray);
  font-size: 0.92rem;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a:hover { color: var(--rust-earth); }

@media (min-width: 680px) {
  :root { --page: min(100% - 56px, 1120px); --section-y: 94px; }
  h1 { max-width: 9.5ch; font-size: clamp(3.6rem, 10vw, 5.3rem); }
  .actions { display: flex; align-items: center; flex-wrap: wrap; }
  .button { width: auto; min-width: 176px; }
  .promise-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { min-height: 152px; }
  .steps li::before { margin-bottom: 34px; }
  .tab-labels { grid-template-columns: repeat(3, 1fr); }
  #tab-free:checked ~ .tab-panels #panel-free,
  #tab-pro:checked ~ .tab-panels #panel-pro,
  #tab-cloud:checked ~ .tab-panels #panel-cloud {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }
  .export-panel { grid-template-columns: 0.92fr 1.08fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1024px) {
  :root { --page: min(100% - 96px, 1140px); --section-y: 110px; }
  .mobile-anchor { display: none; }
  .nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--warm-white);
    font-family: var(--font-headline);
    font-size: 0.88rem;
    font-weight: 700;
  }
  .nav a { opacity: 0.82; }
  .nav a:hover { color: var(--rust-earth); opacity: 1; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
    gap: clamp(68px, 8vw, 110px);
    align-items: center;
    min-height: calc(100vh - 70px);
    max-height: 900px;
    padding: 82px 0 110px;
  }
  h1 { max-width: 8.5ch; font-size: clamp(4.6rem, 6.7vw, 6.6rem); }
  .lead { max-width: 42ch; }
  .hero-visual { margin-top: 0; }
  .device-card { min-height: 500px; }
  .device-inner { min-height: 468px; }
  .device-logo img { width: 124px; }
  .split { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 74px; }
  .statement { padding: 74px 56px; }
  .statement p { max-width: 14ch; }
  .feature-grid { grid-template-columns: repeat(12, 1fr); }
  .feature { grid-column: span 4; min-height: 194px; }
  .feature.wide { grid-column: span 6; }
  .privacy-box { padding: 58px 56px; }
  .status-card { padding: 64px 56px; }
}

@media (min-width: 1440px) {
  :root { --page: 1140px; }
}
