/* ============================================================
   RedMont Labs — design system
   Palette sampled directly from the logo:
     red bright  #F1181A   red core #D3060A   red deep #A30203
     chrome      #C9CACC   chrome hi #FFFFFF
   ============================================================ */

:root {
  --bg:            #08090B;
  --bg-2:          #0C0E12;
  --surface:       #101318;
  --surface-2:     #151920;
  --line:          #1E232C;
  --line-2:        #2A3038;

  --text:          #E9EBEF;
  --text-2:        #A8AEB8;
  --text-3:        #767D88;

  --red:           #D3060A;
  --red-bright:    #F1181A;
  --red-deep:      #A30203;
  --chrome:        #C9CACC;

  --chrome-grad:   linear-gradient(180deg, #FFFFFF 0%, #D6D8DC 45%, #9DA1A8 100%);
  --red-grad:      linear-gradient(135deg, #F1181A 0%, #A30203 100%);

  --radius:        14px;
  --radius-sm:     10px;
  --maxw:          1160px;
  --pad:           clamp(20px, 5vw, 40px);

  --ease:          cubic-bezier(.22,.61,.36,1);

  --font-display:  'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(72px, 11vw, 132px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 88px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-bright);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }

h1 { font-size: clamp(38px, 6.4vw, 66px); }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: clamp(19px, 2.1vw, 23px); letter-spacing: -.01em; }

.lead { font-size: clamp(17px, 1.9vw, 20px); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.chrome-text {
  background: var(--chrome-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.red-text { color: var(--red-bright); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 9, 11, .82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { height: 26px; width: auto; }
.brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: .01em;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  padding: 9px 14px; border-radius: 8px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px; background: var(--red);
}
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--text);
  border-radius: 9px; padding: 8px 11px; cursor: pointer; font-size: 15px; line-height: 1;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 20px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 4px; font-size: 16px; }
  .nav a[aria-current="page"]::after { width: 22px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn--primary {
  background: var(--red-grad); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 8px 26px -12px rgba(241,24,26,.85);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 14px 34px -12px rgba(241,24,26,.95); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: #3B424D; background: var(--surface); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn:active { transform: translateY(0); }

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

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text);
}
.link-arrow:hover { color: var(--red-bright); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vw, 116px) 0 clamp(64px, 9vw, 108px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(211,6,10,.24), transparent 68%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(120,130,150,.10), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero-logo {
  width: min(430px, 76vw); margin: 0 auto clamp(28px, 4vw, 40px);
  filter: drop-shadow(0 18px 46px rgba(211,6,10,.30));
}
.hero h1 { max-width: 17ch; margin: 0 auto; }
.hero .lead { margin: clamp(20px, 3vw, 26px) auto 0; text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(30px, 4vw, 40px); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: clamp(48px, 7vw, 72px);
}
.hero-stats div { background: var(--bg); padding: 24px 20px; }
.hero-stats dt { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; }
.hero-stats dd { margin: 6px 0 0; font-size: 13.5px; color: var(--text-3); letter-spacing: .02em; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr; } }

/* ---------- page head (interior pages) ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 92px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: ""; position: absolute; inset: -60% -20% auto -20%; height: 160%;
  background: radial-gradient(ellipse 45% 40% at 25% 0%, rgba(211,6,10,.18), transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .lead { margin-top: 20px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 30px);
  position: relative;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card__num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--red-bright); display: block; margin-bottom: 14px;
}

/* ---------- product cards ---------- */
.product {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.2vw, 34px);
  position: relative; overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.product::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red-grad); opacity: 0; transition: opacity .22s var(--ease);
}
.product:hover { border-color: var(--line-2); transform: translateY(-3px); }
.product:hover::before { opacity: 1; }
.product__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.product__name { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.product__tag { font-size: 13px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.product p { color: var(--text-2); font-size: 15.5px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.product__foot { margin-top: auto; padding-top: 24px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2); background: var(--bg);
  white-space: nowrap;
}
.pill--live { color: #6FE39A; border-color: rgba(111,227,154,.32); background: rgba(111,227,154,.07); }
.pill--soon { color: #F1181A; border-color: rgba(241,24,26,.34); background: rgba(241,24,26,.08); }
.pill--dev  { color: var(--chrome); border-color: var(--line-2); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist li {
  position: relative; padding-left: 30px; margin-top: 14px;
  color: var(--text-2); font-size: 16px;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 2px; background: var(--red); border-radius: 2px;
}
.checklist strong { color: var(--text); font-weight: 600; }

/* ---------- contact / CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: clamp(36px, 5.5vw, 60px);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -70% -10%; height: 160%;
  background: radial-gradient(ellipse 40% 50% at 50% 100%, rgba(211,6,10,.20), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .lead { margin: 18px auto 0; }
.cta-band .hero-cta { margin-top: 30px; }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 34px);
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card a.mail {
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px); font-weight: 600;
  color: var(--text); word-break: break-word;
  border-bottom: 1px solid rgba(241,24,26,.45); padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.contact-card a.mail:hover { color: var(--red-bright); border-color: var(--red-bright); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(44px, 6vw, 64px) 0 32px;
  margin-top: 0;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 168px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-3); font-size: 14.5px; max-width: 34ch; }
.footer-col h4 {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 14px; font-weight: 600;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-2); font-size: 15px; transition: color .16s var(--ease); }
.footer-col a:hover { color: var(--red-bright); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center;
  margin-top: clamp(36px, 5vw, 52px); padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 13.5px;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- refinements ---------- */
/* The Contact nav item is a button; it shouldn't also grow an underline bar. */
.nav a.btn[aria-current="page"]::after { display: none; }
.nav a.btn[aria-current="page"] { border-color: var(--line-2); background: var(--surface); }

/* Full-width product cards would otherwise run to a 120-character measure. */
.product > p, .product > .checklist { max-width: 82ch; }

/* A long link (an email, a domain) must not be able to widen the footer grid
   past the viewport on narrow screens. */
.footer-top, .footer-col, .footer-brand { min-width: 0; }
.footer-col a, .footer-col li { overflow-wrap: anywhere; }
