/* ==========================================================================
   8iGen.com — site styles
   Brand: red #D00F10 / black / white (taken from the 8iGen mark)
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --red: #d00f10;
  --red-600: #b00c0d;
  --red-tint: #fdecec;

  --ink: #0c0c0e;
  --ink-2: #17171b;
  --ink-3: #26262c;

  --paper: #ffffff;
  --paper-2: #f6f6f7;

  --text: #17171b;
  --muted: #5c5c66;
  --muted-dark: #a4a4b0;
  --line: #e4e4e7;
  --line-dark: #2c2c33;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(12, 12, 14, .06), 0 4px 12px rgba(12, 12, 14, .05);
  --shadow-md: 0 8px 30px rgba(12, 12, 14, .10);
  --shadow-lg: 0 18px 50px rgba(12, 12, 14, .16);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

/* --- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #e9e9ee; }
.section--dark h2, .section--dark h3 { color: #fff; }

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

/* --- Eyebrow / lede ----------------------------------------------------- */
.eyebrow {
  /* Block-level so it always starts its own line, but only as wide as its
     content so the rule before the label doesn't stretch across the column. */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}
.section--dark .eyebrow { color: #ff5f60; }
.section--dark .eyebrow::before { background: #ff5f60; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lede { color: var(--muted-dark); }

.measure { max-width: 66ch; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease,
              border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(208, 15, 16, .28);
}
.btn--primary:hover { background: var(--red-600); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.section--dark .btn--ghost,
.site-hero .btn--ghost,
.page-head .btn--ghost,
.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.section--dark .btn--ghost:hover,
.site-hero .btn--ghost:hover,
.page-head .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.btn--sm { padding: 10px 20px; font-size: .95rem; }
.btn--block { width: 100%; }

/* The CTA that lives inside the collapsed mobile menu — the header carries its
   own copy at desktop width, so this one stays hidden until the menu exists. */
.btn--nav { display: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand span i { font-style: normal; color: var(--red); }

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

.nav a {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 500;
  color: var(--ink-3);
  padding: 9px 15px;
  border-radius: 999px;
  transition: background-color .16s ease, color .16s ease;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; }

.header-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: background-color .16s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s 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 { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.site-hero {
  position: relative;
  background: var(--ink);
  color: #e9e9ee;
  overflow: hidden;
}

.site-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.site-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}
.site-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--ink) 6%, rgba(12, 12, 14, .82) 46%, rgba(12, 12, 14, .38) 100%),
    radial-gradient(70% 90% at 85% 15%, rgba(208, 15, 16, .30), transparent 62%);
}

.site-hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 11vw, 132px) 0 clamp(64px, 9vw, 112px);
  max-width: 46rem;
}
.site-hero h1 { color: #fff; }
.site-hero .lede { color: #c8c8d2; margin-top: 6px; }

.hero-note {
  margin-top: 30px;
  font-size: .95rem;
  color: var(--muted-dark);
}
.hero-note strong { color: #fff; font-weight: 600; }

/* --- Page head (interior pages) ----------------------------------------- */
.page-head {
  background: var(--ink);
  color: #e9e9ee;
  padding: clamp(54px, 8vw, 92px) 0 clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 88% 10%, rgba(208, 15, 16, .26), transparent 60%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; }
.page-head .lede { color: #c8c8d2; }

/* --- Feature grid ------------------------------------------------------- */
.grid {
  display: grid;
  gap: 22px;
  margin-top: 44px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d5d5da;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-tint);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; stroke-width: 1.9; }

/* --- Promo cards (image + copy) ----------------------------------------- */
.promo-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.promo-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}
.promo-card__media img { width: 100%; height: 100%; object-fit: cover; }

.promo-card__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.promo-card__body { padding: 24px 26px 28px; }
.promo-card__body h3 { margin-bottom: .35em; }
.promo-card__body p { color: var(--muted); font-size: .98rem; margin: 0; }

/* --- Split (image beside copy) ------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.split--flip .split__media { order: -1; }

/* --- Stat strip --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.stat { background: var(--ink-2); padding: 30px 26px; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1;
}
.stat__label {
  margin-top: 10px;
  font-size: .93rem;
  color: var(--muted-dark);
}

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 92% 50%, rgba(208, 15, 16, .34), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band__copy { flex: 1 1 24rem; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: var(--muted-dark); margin: 0; }
.cta-band .btn-row { margin-top: 0; }

/* --- Price tag ---------------------------------------------------------- */
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.price__amount {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1;
}
.price__unit { font-size: 1rem; color: var(--muted-dark); font-weight: 500; }

/* --- Contact ------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.contact-aside img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 3px; }
.contact-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-list a,
.contact-list .value { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--red); }

/* --- Form --------------------------------------------------------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req { color: var(--red); }

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #9a9aa4; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(208, 15, 16, .12);
}

.field textarea { resize: vertical; min-height: 132px; }

.field--invalid input,
.field--invalid textarea { border-color: var(--red); }

.field__error {
  display: none;
  font-size: .86rem;
  color: var(--red);
  margin-top: 6px;
}
.field--invalid .field__error { display: block; }

/* Honeypot — hidden from humans, visible to naive bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: .88rem;
  color: var(--muted);
  margin: 16px 0 0;
}

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .95rem;
  margin-bottom: 20px;
}
.form-status--ok { display: block; background: #e9f7ef; color: #17643a; border: 1px solid #b9e3ca; }
.form-status--err { display: block; background: var(--red-tint); color: #8f1011; border: 1px solid #f3bdbd; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-size: .95rem;
}
.site-footer a { color: var(--muted-dark); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}
.footer-brand i { font-style: normal; color: var(--red); }
.footer-brand:hover { color: #fff; }

.footer-col h4 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .88rem;
}

/* --- Utility ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 14px; border-radius: var(--radius-sm); }
  .nav .btn { margin-top: 8px; }
  .nav .btn--nav { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-row .btn { width: 100%; }
}

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