/* ==========================================================================
   Shinray Diamond — site styles
   Hand-written, no build step, no external requests.
   ========================================================================== */

:root {
  --bg: #070a10;
  --bg-soft: #0b1018;
  --panel: #0f1624;
  --panel-2: #131c2c;
  --line: #1d2738;
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #eef2f8;
  --muted: #98a4ba;
  --muted-2: #6f7c93;
  --ice: #8ad8ff;
  --mint: #5eead4;
  --violet: #a78bfa;
  --light: #f5f7fb;
  --light-line: #dfe4ee;
  --ink: #0a0e16;
  --ink-muted: #4d596e;

  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas,
    "Liberation Mono", monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; }

::selection { background: var(--ice); color: #04121b; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ice);
  color: #04121b;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- type utilities ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.mono { font-family: var(--font-mono); }

.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line-soft);
}
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head p { margin: 0; }

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--text);
  color: #070a10;
}
.btn--primary:hover { background: var(--ice); }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: #3a4761; background: rgba(255, 255, 255, 0.05); }

.btn--light {
  background: var(--ink);
  color: #fff;
}
.btn--light:hover { background: #17233a; }

.btn--outline-light {
  border-color: rgba(10, 14, 22, 0.22);
  color: var(--ink);
}
.btn--outline-light:hover { border-color: var(--ink); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */

.topbar {
  background: #05070c;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 36px;
  overflow: hidden;
  white-space: nowrap;
}
.topbar__inner span:last-child { color: var(--muted); }

@media (max-width: 720px) {
  .topbar__inner { justify-content: flex-start; }
  .topbar__inner span:last-child { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(7, 10, 16, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 2px;
}
.brand__name { line-height: 1.1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links > li { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav__link[aria-current="page"] { color: var(--ice); }

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 268px;
  padding: 8px;
  list-style: none;
  margin: 0;
  background: #0c121d;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__has-menu:hover .nav__menu,
.nav__has-menu:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  transition: background 0.18s var(--ease);
}
.nav__menu a:hover { background: rgba(255, 255, 255, 0.05); }
.nav__menu strong { display: block; font-size: 0.9rem; font-weight: 600; }
.nav__menu span { display: block; font-size: 0.78rem; color: var(--muted-2); margin-top: 2px; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 108px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 26px;
    background: #080c13;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    max-height: calc(100vh - 108px);
    overflow: auto;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { padding: 14px 12px; font-size: 1rem; }
  .nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .nav__menu span { display: none; }
  .nav__actions .btn { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(54px, 8vw, 96px) 0 clamp(56px, 8vw, 92px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -30% -10% auto;
  height: 900px;
  background:
    radial-gradient(46% 42% at 68% 22%, rgba(138, 216, 255, 0.16), transparent 66%),
    radial-gradient(40% 36% at 88% 44%, rgba(167, 139, 250, 0.12), transparent 70%),
    radial-gradient(38% 34% at 40% 6%, rgba(94, 234, 212, 0.07), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 78%);
  opacity: 0.55;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 { margin: 18px 0 22px; }
.hero h1 .grad {
  background: linear-gradient(100deg, #ffffff 8%, var(--ice) 42%, var(--violet) 78%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(40px, 6vw, 64px) 0 0;
  border-top: 1px solid var(--line-soft);
}
.hero__stat { padding: 20px 18px 0 0; }
.hero__stat + .hero__stat { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.hero__stat b {
  display: block;
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero__stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}
@media (max-width: 620px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { padding: 16px 12px 12px 0; }
  .hero__stat + .hero__stat { padding-left: 0; border-left: 0; }
  .hero__stat:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line-soft); }
  .hero__stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); margin-top: 4px; }
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero__visual svg { width: min(100%, 520px); height: auto; }
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(13, 19, 30, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  animation: float 7s ease-in-out infinite;
}
.hero__chip b { color: var(--text); font-weight: 500; }
.hero__chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  flex: none;
}
.hero__chip--a { top: 12%; left: -2%; }
.hero__chip--b { bottom: 16%; right: -2%; animation-delay: -3.5s; }
@media (max-width: 940px) {
  .hero__visual { min-height: 320px; margin-top: 8px; }
  .hero__chip { font-size: 0.62rem; padding: 8px 11px; }
  .hero__chip--a { top: 2%; left: 2%; }
  .hero__chip--b { bottom: 0; right: 2%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- marquee / capability strip ---------- */

.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #05080d;
  overflow: hidden;
}
.strip__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.strip__inner span { display: inline-flex; align-items: center; gap: 40px; }
.strip__inner span::after { content: "◇"; color: var(--line); }
@media (max-width: 760px) {
  .strip__inner { gap: 26px; }
  .strip__inner span { gap: 26px; }
}

/* ---------- product cards ---------- */

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(138, 216, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #0e1522, #0a0f18);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product:hover { border-color: #33415c; transform: translateY(-3px); }
.product__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(70% 70% at 50% 45%, #131d2d 0%, #080c13 72%);
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product__media svg, .product__media img { width: 78%; height: auto; }
.product__body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.product__body p { color: var(--muted); font-size: 0.95rem; }
.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 22px;
  padding: 0;
  list-style: none;
}
.product__meta li {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
}
.product__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ice);
}
.product__link .arrow { transition: transform 0.25s var(--ease); }
.product:hover .product__link .arrow { transform: translateX(4px); }

/* ---------- feature list ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}
.feature__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 22px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- spec table ---------- */

.spec-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0f18;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table caption {
  text-align: left;
  padding: 20px 24px 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table thead th {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.02);
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody th { font-weight: 500; color: var(--muted); width: 34%; }
.spec-table td { color: var(--text); font-family: var(--font-mono); font-size: 0.84rem; }
.spec-table td.plain { font-family: var(--font-sans); font-size: 0.9rem; }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(138, 216, 255, 0.03); }

/* category row inside a specification table */
.spec-table tr.group th {
  width: auto;
  padding: 10px 24px;
  background: rgba(138, 216, 255, 0.05);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}
.spec-table tr.group:hover th { background: rgba(138, 216, 255, 0.05); }

.spec-note {
  font-size: 0.78rem;
  color: var(--muted-2);
  margin: 12px 0 0;
}

/* On phones the tables shrink rather than scroll: no horizontal overflow,
   and every value stays visible without a sideways swipe. */
@media (max-width: 760px) {
  .spec-table { font-size: 0.84rem; }
  .spec-table th, .spec-table td { padding: 11px 12px; }
  .spec-table td { font-size: 0.78rem; }
  .spec-table caption { padding: 16px 14px 0; }
}

/* ---------- applications ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .apps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .apps { grid-template-columns: 1fr; } }

.app {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0f18;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.app:hover { background: #0d1522; border-color: #2b3950; }
.app__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  color: var(--ice);
}
.app h3 { font-size: 1rem; margin-bottom: 6px; }
.app p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.app__tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step {
  padding: 28px 24px 32px 0;
  border-bottom: 1px solid var(--line);
}
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .step + .step { padding-left: 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .step:nth-child(even) { padding-left: 0; border-left: 0; }
}
.step__n {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--ice);
  margin-bottom: 18px;
}
.step h3 { font-size: 1rem; }
.step p { font-size: 0.87rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 58px);
  background:
    radial-gradient(90% 140% at 88% 10%, rgba(167, 139, 250, 0.22), transparent 60%),
    radial-gradient(80% 120% at 8% 90%, rgba(138, 216, 255, 0.18), transparent 60%),
    #0c1320;
  border: 1px solid #223049;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin: 0; max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 820px) { .cta-band__actions { justify-content: flex-start; } }

/* ---------- light sections ---------- */

.light {
  background: var(--light);
  color: var(--ink);
}
.light .lede { color: var(--ink-muted); }
.light .eyebrow { color: #0d7f9c; }
.light .eyebrow::before { background: currentColor; }

.light .feature,
.light .app,
.light .spec-wrap,
.light .product {
  background: #fff;
  border-color: var(--light-line);
}
.light .feature p,
.light .app p { color: var(--ink-muted); }
.light .feature__num { color: #8b96a9; }
.light .app:hover { background: #fff; border-color: #b9c4d6; }
.light .spec-table thead th { background: #f7f9fc; color: #7b879a; }
.light .spec-table th,
.light .spec-table td { border-bottom-color: var(--light-line); }
.light .spec-table tbody th { color: #5c687c; }
.light .spec-table td { color: var(--ink); }
.light .spec-table tr:hover td,
.light .spec-table tr:hover th { background: #f6f9fe; }
.light .spec-table tr.group th { background: #eef3fa; color: #0d7f9c; }
.light .spec-note { color: #7b879a; }
.light .product__media {
  background: radial-gradient(70% 70% at 50% 45%, #eef3fb 0%, #dce4f1 75%);
  border-bottom-color: var(--light-line);
}
.light .product__body p { color: var(--ink-muted); }
.light .product__meta li { color: #5c687c; border-color: #d3dae6; }
.light .checklist li { color: var(--ink-muted); }
.light .checklist strong { color: var(--ink); }
.light .checklist li::before { border-color: #0d7f9c; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(46px, 6vw, 76px) 0 clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -60% 20% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(138, 216, 255, 0.12), transparent);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 16px 0 16px; }
.page-hero .lede { margin: 0; }
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.crumbs a:hover { color: var(--text); }
.crumbs span { color: #33405a; }

/* ---------- content layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split__visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(80% 80% at 50% 40%, #121b2a, #080c13 78%);
  padding: 26px;
  display: grid;
  place-items: center;
}
.split__visual svg, .split__visual img { width: 100%; height: auto; }

.checklist { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #2b7f96;
  background:
    radial-gradient(closest-side, var(--mint) 44%, transparent 46%);
}
.checklist strong { color: var(--text); font-weight: 600; }

/* ---------- tabs ---------- */

.tabs { margin-top: 8px; }
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { color: var(--text); border-bottom-color: var(--ice); }
.tabs__panel[hidden] { display: none; }

/* ---------- grade cards ---------- */

.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grades--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grades, .grades--2 { grid-template-columns: 1fr; } }
.grade {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0f18;
}
.grade__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 12px;
}
.grade h3 { font-size: 1.1rem; margin-bottom: 10px; }
.grade p { font-size: 0.88rem; color: var(--muted); }
.grade dl { margin: 18px 0 0; display: grid; gap: 8px; font-size: 0.82rem; }
.grade dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.grade dt { color: var(--muted-2); }
.grade dd { margin: 0; font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--muted-2);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 0.92rem; max-width: 80ch; margin: 0 0 20px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0e1522, #0a0f18);
  padding: clamp(24px, 4vw, 36px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field label .req { color: var(--ice); }
.field input, .field select, .field textarea {
  width: 100%;
  background: #070b12;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  padding: 12px 13px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #55617a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #3a7d95;
  background: #080d15;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6f7c93 50%), linear-gradient(135deg, #6f7c93 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}
.form-note { font-size: 0.76rem; color: var(--muted-2); margin: 0; max-width: 38ch; }
.form-status { margin: 14px 0 0; font-size: 0.86rem; display: none; }
.form-status.is-ok { display: block; color: var(--mint); }
.form-status.is-err { display: block; color: #ff9c9c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  background: #0a0f18;
  margin-bottom: 16px;
}
.info-card h3 { font-size: 0.8rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 0.88rem; }
.info-row:first-of-type { border-top: 0; }
.info-row dt, .info-row span:first-child { color: var(--muted-2); }
.info-row strong { font-weight: 500; }
.info-row a:hover { color: var(--ice); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #05080d;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand p { color: var(--muted-2); font-size: 0.86rem; max-width: 34ch; margin: 16px 0 0; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 0.86rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* ---------- reveal ---------- */

/* Reveal-on-scroll is opt-in: the .js class is added by main.js, so a visitor
   without JavaScript sees every section instead of a blank page. */
.js .reveal {
  transform: translateY(18px);
  transition: transform 0.7s var(--ease);
}
.js .reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { transform: none; }
  .js .reveal { transform: none; }
}

/* ---------- misc ---------- */

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}
.notice {
  border-left: 2px solid var(--ice);
  padding: 4px 0 4px 16px;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 22px 0 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
