/* ═══════════════════════════════════════════════════════
   REARDEN PRECISION — SpaceX-style minimal design system
   Black · White · Teal #5EC1A5 · Cyan #02BAE0 (divider only)
   ═══════════════════════════════════════════════════════ */

:root {
  --black:   #000000;
  --white:   #ffffff;
  --teal:    #5EC1A5;
  --cyan:    #02BAE0;
  --grey:    #888888;
  --grey-dk: #333333;

  --gutter:  clamp(1.4rem, 6vw, 9rem);
  --nav-h:   clamp(52px, 7vw, 64px);
  --tab-h:   58px;

  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Fluid type */
  --t-xs:   clamp(.62rem,  1.2vw,  .74rem);
  --t-sm:   clamp(.78rem,  1.5vw,  .88rem);
  --t-base: clamp(.88rem,  1.8vw,  1rem);
  --t-lg:   clamp(1rem,    2.2vw,  1.25rem);
  --t-xl:   clamp(1.2rem,  3vw,    1.8rem);
  --t-2xl:  clamp(1.6rem,  4vw,    2.6rem);
  --t-3xl:  clamp(2rem,    5.5vw,  4rem);
  --t-hero: clamp(2.4rem,  8vw,    7rem);

  --touch: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
}

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

/* ── NAV — desktop ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-logo img { height: clamp(24px, 3.5vw, 34px); width: auto; }
.nav-links { display: flex; gap: clamp(1.2rem, 2.5vw, 3rem); list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.6);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s;
  height: var(--touch); display: flex; align-items: center;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  border: 1px solid rgba(255,255,255,.3);
  padding: 0 1.2rem; color: var(--white) !important;
}
.nav-cta:hover { border-color: var(--white); background: rgba(255,255,255,.05); }

/* ── MOBILE TOP BAR ── */
.mobile-bar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-bar img { height: 24px; width: auto; }

/* ── MOBILE TAB BAR ── */
.tab-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,.08);
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}
.tab-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; text-decoration: none;
  color: rgba(255,255,255,.4);
  height: var(--tab-h);
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.tab-item.active { color: var(--white); }
.tab-item:active { opacity: .6; }
.tab-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.tab-icon svg { width: 20px; height: 20px; }
.tab-label { font-size: .54rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tab-item.active::before {
  content: ''; position: absolute; top: 5px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--teal);
}
.tab-cta { color: var(--teal) !important; }
.tab-cta::before { background: var(--teal) !important; }

/* ── PAGE CONTENT ── */
.page { padding-top: var(--nav-h); }

/* ── FULL-BLEED SECTION ── */
.fullbleed {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.fullbleed-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  background-color: #111;
}
.fullbleed-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.5)  45%,
    rgba(0,0,0,.1)  100%);
}
.fullbleed-body {
  position: relative; z-index: 2;
  padding: var(--gutter) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  max-width: 720px;
}

/* right-aligned variant */
.fullbleed-body.right {
  margin-left: auto; max-width: 620px; text-align: left;
}
.fullbleed-bg.right-fade::after {
  background: linear-gradient(to left,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.5)  50%,
    rgba(0,0,0,.05) 100%);
}

/* ── TYPOGRAPHY ── */
.section-label {
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .8rem;
}
.section-label::before { content: '— '; }

.hero-title {
  font-size: var(--t-hero);
  font-weight: 800; line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-title .accent { color: var(--teal); display: block; }

.section-title {
  font-size: var(--t-3xl);
  font-weight: 800; line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}

.body-text {
  font-size: var(--t-base); line-height: 1.75;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin-bottom: 2rem;
}

/* Cyan divider — brand guide */
.divider {
  width: 40px; height: 2px;
  background: var(--cyan);
  margin: .8rem 0 1.6rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: var(--touch);
  padding: 0 clamp(1.2rem, 3vw, 2rem);
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .2s;
  width: fit-content; white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--white); color: var(--black);
}
.btn-primary:hover { background: rgba(255,255,255,.85); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.05); }

.btn-teal {
  background: var(--teal); color: var(--black);
}
.btn-teal:hover { background: #72ceb3; }

.btn-stack { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── DATA TABLE ── */
.data-block {
  border-top: 1px solid rgba(255,255,255,.1);
}
.data-row {
  display: grid; grid-template-columns: 1fr 1.5fr;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 1rem; align-items: baseline;
}
.data-row:last-child { border-bottom: none; }
.dk { font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.dv { font-size: var(--t-sm); color: var(--white); font-weight: 500; }
.dv.accent { color: var(--teal); }

/* ── GRADE COMPARISON TABLE ── */
.grade-table-wrap { overflow-x: auto; }
.grade-table {
  width: 100%; border-collapse: collapse;
  min-width: 700px;
}
.grade-table th {
  padding: 1rem 1.2rem;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.15);
  text-align: left; color: rgba(255,255,255,.5);
}
.grade-table th.our { color: var(--teal); border-bottom-color: var(--teal); }
.grade-table td {
  padding: .85rem 1.2rem;
  font-size: var(--t-sm); line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: top;
}
.grade-table tr:last-child td { border-bottom: none; }
.grade-table .row-label { color: rgba(255,255,255,.5); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; }
.grade-table .row-sub { color: rgba(255,255,255,.3); font-size: var(--t-xs); margin-top: .2rem; }
.grade-table .bad   { color: #e05555; }
.grade-table .ok    { color: rgba(255,255,255,.5); }
.grade-table .good  { color: var(--teal); font-weight: 600; }
.grade-table .col-our { background: rgba(94,193,165,.04); border-left: 1px solid rgba(94,193,165,.15); border-right: 1px solid rgba(94,193,165,.15); }
.grade-table .verdict td { border-top: 1px solid rgba(255,255,255,.1); font-size: var(--t-xs); color: rgba(255,255,255,.5); padding-top: 1.2rem; }
.grade-table .verdict .col-our { color: var(--white); font-weight: 600; }

/* ── PROCESS STEPS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.process-step {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.process-step:last-child { border-right: none; }
.step-num {
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .2em; color: var(--teal);
  margin-bottom: 1.2rem;
}
.step-title {
  font-size: var(--t-xl); font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: .8rem; line-height: 1.05;
}
.step-text { font-size: var(--t-sm); line-height: 1.75; color: rgba(255,255,255,.55); }

/* ── PROFILES SHAPES ── */
.shapes-section { padding: clamp(3rem, 8vw, 7rem) var(--gutter); }
.shapes-img-wrap {
  width: 100%; max-width: 900px; margin: 2.5rem auto 0;
  filter: brightness(.95);
}

/* ── SPECS GRID ── */
.specs-section { padding: clamp(3rem, 8vw, 7rem) var(--gutter); }
.specs-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(2rem, 4vw, 5rem);
  margin-top: 2.5rem;
}

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.check-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: var(--t-sm); line-height: 1.6; color: rgba(255,255,255,.6); }
.check-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ── ARROW LIST ── */
.arrow-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.arrow-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: var(--t-sm); line-height: 1.6; color: rgba(255,255,255,.6); }
.arrow-list li::before { content: '→'; color: var(--grey); flex-shrink: 0; }

/* ── CONTACT SECTION ── */
.contact-section { padding: clamp(4rem, 10vw, 9rem) var(--gutter); }
.contact-links { display: flex; flex-direction: column; gap: 1px; margin-top: 2.5rem; }
.contact-link {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none; color: inherit;
  transition: color .2s;
  min-height: var(--touch);
}
.contact-link:hover { color: var(--teal); }
.contact-link:hover .cl-arrow { transform: translateX(4px); }
.cl-label { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); width: 60px; flex-shrink: 0; }
.cl-val { font-size: var(--t-lg); font-weight: 300; }
.cl-arrow { margin-left: auto; transition: transform .2s; }
.cl-arrow svg { width: 20px; height: 20px; }

/* ── FOOTER ── */
.footer {
  padding: 2rem var(--gutter) calc(1rem + var(--safe-bottom));
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer img { height: 20px; opacity: .35; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: var(--t-xs); color: rgba(255,255,255,.3); letter-spacing: .08em; transition: color .2s; min-height: var(--touch); display: flex; align-items: center; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: var(--t-xs); color: rgba(255,255,255,.25); width: 100%; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 4px); }
  .nav       { display: none !important; }
  .mobile-bar{ display: flex !important; }
  .tab-bar   { display: grid !important; }
  .page      { padding-top: calc(var(--nav-h) + var(--safe-top)); }
  .btn-stack { flex-direction: column; }
  .btn-stack .btn { width: 100%; justify-content: center; }
  .footer    { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .data-row  { grid-template-columns: 1fr; gap: .2rem; }
  .process-step { border-right: none; }
  .fullbleed { min-height: 85svh; }
  .fullbleed-body.right { margin-left: 0; }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none !important; }
  .tab-bar    { display: none !important; }
  .btn-stack  { flex-direction: row; }
}

/* Shared nav snippet — same across all pages */
.nav-shared { display: contents; }
