@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, a { font: inherit; }
  a { color: inherit; }
}

@layer base {
  :root {
    --ink: #090a0c;
    --ink-soft: #101216;
    --panel: #13151a;
    --cream: #f7f2e9;
    --muted: #a6a4a2;
    --orange: #ff762b;
    --orange-bright: #ff8336;
    --line: rgba(247, 242, 233, .12);
    --display: Impact, Haettenschweiler, "Arial Black", sans-serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "Courier New", Courier, monospace;
    --shell: min(1180px, calc(100% - 48px));
  }

  html { background: var(--ink); color-scheme: dark; }
  body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  body.menu-open { overflow: hidden; }
  ::selection { background: var(--orange); color: #090a0c; }
  :focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
  .page-shell { width: var(--shell); margin-inline: auto; }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .skip-link {
    position: fixed; z-index: 1000; left: 16px; top: 12px; padding: 10px 14px;
    transform: translateY(-150%); background: var(--orange); color: #090a0c;
    border-radius: 8px; font-weight: 900; text-decoration: none;
  }
  .skip-link:focus { transform: translateY(0); }
}

@layer components {
  .site-header {
    position: relative; z-index: 50; height: 78px; background: rgba(9, 10, 12, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .025);
  }
  .nav-shell {
    width: var(--shell); height: 100%; margin-inline: auto;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px;
  }
  .brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; }
  .brand-copy { font-size: 1.42rem; font-weight: 900; letter-spacing: -.04em; }
  .brand-copy strong, .footer-brand strong { color: var(--orange); }
  .brand-mark {
    width: 42px; height: 42px; flex: 0 0 auto; object-fit: cover;
    border-radius: 12px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.7));
  }
  .site-nav { display: flex; align-items: center; gap: 36px; }
  .site-nav a {
    position: relative; padding: 28px 0 24px; color: #d0cdca;
    font-size: .86rem; text-decoration: none; transition: color .2s ease;
  }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 19px; height: 2px;
    transform: scaleX(0); background: var(--orange); transition: transform .2s ease;
  }
  .site-nav a:hover, .site-nav a.active { color: var(--orange); }
  .site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
  .button {
    min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 28px; border: 1px solid transparent; border-radius: 11px;
    font-weight: 900; line-height: 1; text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
  }
  .button:hover { transform: translateY(-2px); }
  .button-primary { background: var(--orange); color: #0a0a0a; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
  .button-primary:hover { background: var(--orange-bright); }
  .button-secondary { color: var(--cream); border-color: rgba(255,255,255,.78); background: rgba(8,9,12,.38); backdrop-filter: blur(8px); }
  .button-secondary:hover { border-color: var(--orange); }
  .nav-cta { justify-self: end; min-height: 43px; padding-inline: 27px; }
  .menu-toggle { display: none; }

  .hero { position: relative; min-height: 595px; overflow: hidden; isolation: isolate; background: #07090c; }
  .hero-art { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }
  .hero-shade {
    position: absolute; z-index: -2; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(7,8,10,.98) 0%, rgba(7,8,10,.91) 28%, rgba(7,8,10,.48) 46%, rgba(7,8,10,.02) 70%),
      linear-gradient(0deg, rgba(7,8,10,.96) 0%, transparent 21%);
  }
  .hero-content { min-height: inherit; display: flex; align-items: center; padding-block: 55px 66px; }
  .hero-copy { width: min(560px, 50%); }
  .eyebrow, .section-kicker {
    margin: 0 0 13px; color: var(--orange); font: 700 .72rem/1.2 var(--mono);
    letter-spacing: .14em; text-transform: uppercase;
  }
  .hero h1 {
    margin: 0; font-family: var(--sans); font-size: clamp(3.55rem, 5vw, 5.65rem);
    font-weight: 900; line-height: .92; letter-spacing: -.04em; text-transform: uppercase;
  }
  .hero h1 span, .hero h1 strong { display: block; }
  .hero h1 span { letter-spacing: -.025em; }
  .hero h1 strong { color: var(--orange); font-weight: 900; letter-spacing: -.045em; }
  .hero-tagline { margin: 31px 0 27px; color: #b7b4b1; font: 1.28rem/1.48 var(--mono); letter-spacing: .02em; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
  .hero-values {
    display: flex; align-items: center; gap: 14px; margin: 29px 0 0;
    color: #aaa7a4; font: .64rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  }
  .hero-values i { width: 3px; height: 3px; border-radius: 50%; background: #777; }

  .features {
    position: relative; isolation: isolate; padding: 68px 0 63px;
    background:
      linear-gradient(90deg, rgba(7,9,12,.48), rgba(7,9,12,.24) 50%, rgba(7,9,12,.48)),
      linear-gradient(0deg, rgba(7,9,12,.48), rgba(7,9,12,.08) 62%),
      #0c0d0f url("assets/generated/benefits-background.webp") center bottom / cover no-repeat;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .feature-card { text-align: center; }
  .feature-icon { width: 58px; height: 58px; margin: 0 auto 19px; fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
  .cat-icon { fill: var(--orange); stroke: var(--orange); }
  .cat-icon path:last-child { fill: none; stroke: #0b0c0e; stroke-width: 3.5; }
  .bars-icon { stroke-width: 8; }
  .feature-card h3 { margin: 0 0 12px; font-size: 1.12rem; letter-spacing: -.02em; }
  .feature-card p { margin: 0; color: #b0adaa; font: .84rem/1.56 var(--mono); }

  .about { min-height: 360px; display: grid; grid-template-columns: 1.08fr .92fr; background: #0d0f12; }
  .about-media { position: relative; min-height: 360px; overflow: hidden; background: #17181a; }
  .about-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 73%, #0d0f12 100%); }
  .about-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
  .about-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 52px clamp(32px, 7vw, 98px) 52px 54px; }
  .about-copy h2 { margin: 0; font: 900 clamp(2.25rem, 4vw, 4rem)/1.03 var(--mono); letter-spacing: -.055em; }
  .about-copy h2 strong { color: var(--orange); font-weight: 900; }
  .about-copy > p:not(.section-kicker) { max-width: 510px; margin: 21px 0 25px; color: #aaa7a4; font: .88rem/1.65 var(--mono); }
  .about-copy .button { min-height: 47px; }

  .community { position: relative; min-height: 350px; overflow: hidden; isolation: isolate; background: #0b0e14; }
  .community-art { position: absolute; z-index: -3; inset: 0; }
  .community-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .community-shade {
    position: absolute; z-index: -2; inset: 0;
    background: linear-gradient(90deg, rgba(9,10,13,.98) 0%, rgba(9,10,13,.84) 38%, rgba(9,10,13,.18) 72%, rgba(9,10,13,.38) 100%);
  }
  .community-content { padding-block: 70px; }
  .community h2 { margin: 0 0 13px; font-size: clamp(2.35rem, 4.5vw, 4.2rem); letter-spacing: -.055em; }
  .community-content > p:not(.section-kicker) { margin: 0; color: #b7b4b1; font: .9rem/1.5 var(--mono); }
  .socials { display: flex; gap: 14px; margin-top: 27px; }
  .socials a {
    width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255,255,255,.11); color: #fff; text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
  }
  .socials a:hover { background: var(--orange); color: #090a0c; transform: translateY(-2px); }
  .socials span { font-size: 1.45rem; line-height: 1; }
  .socials svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mini-cat { position: relative; width: 21px; height: 17px; overflow: visible; color: currentColor !important; font-size: 0 !important; background: currentColor; border-radius: 48%; }
  .mini-cat::before, .mini-cat::after { content: ""; position: absolute; top: -5px; border: 5px solid transparent; border-bottom-color: currentColor; }
  .mini-cat::before { left: 0; transform: rotate(-15deg); }
  .mini-cat::after { right: 0; transform: rotate(15deg); }

  .site-footer { border-top: 1px solid var(--line); background: #0a0b0d; }
  .footer-shell { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .footer-brand { display: flex; align-items: baseline; gap: 14px; }
  .footer-brand > span { font-weight: 900; }
  .footer-brand small { color: #928f8d; font: .69rem var(--mono); }
  .site-footer nav { display: flex; align-items: center; gap: 27px; color: #989593; font: .66rem var(--mono); }
  .site-footer a { text-decoration: none; }
  .site-footer a:hover { color: var(--orange); }
}

@layer responsive {
  @media (max-width: 920px) {
    :root { --shell: min(100% - 36px, 760px); }
    .nav-shell { grid-template-columns: 1fr auto; }
    .nav-cta { display: none; }
    .menu-toggle {
      position: relative; z-index: 3; display: grid; width: 44px; height: 44px; place-content: center; gap: 5px;
      justify-self: end; border: 1px solid var(--line); border-radius: 10px; background: #121419; color: #fff; cursor: pointer;
    }
    .menu-toggle > span:not(.sr-only) { width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
    .site-nav {
      position: fixed; inset: 77px 0 auto; display: grid; gap: 0; padding: 18px;
      border-bottom: 1px solid var(--line); background: rgba(9,10,12,.98);
      transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
    }
    .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .site-nav a { padding: 17px; border-bottom: 1px solid rgba(255,255,255,.06); }
    .site-nav a::after { display: none; }
    .hero { min-height: 690px; }
    .hero-art { object-position: 63% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(7,8,10,.97) 0%, rgba(7,8,10,.78) 48%, rgba(7,8,10,.08) 100%), linear-gradient(0deg, rgba(7,8,10,.97), transparent 30%); }
    .hero-copy { width: min(520px, 68%); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); row-gap: 52px; }
    .about { grid-template-columns: 1fr; }
    .about-media { min-height: 440px; }
    .about-media::after { background: linear-gradient(0deg, #0d0f12 0%, transparent 22%); }
    .about-copy { padding: 46px max(18px, calc((100vw - 760px) / 2)); }
    .community { min-height: 390px; }
    .footer-shell { padding-block: 30px; align-items: flex-start; }
    .site-footer nav { flex-wrap: wrap; justify-content: flex-end; }
  }

  @media (max-width: 640px) {
    :root { --shell: calc(100% - 32px); }
    .site-header { height: 70px; }
    .brand-copy { font-size: 1.2rem; }
    .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
    .site-nav { inset-block-start: 69px; }
    .hero { min-height: auto; padding-top: 0; display: flex; flex-direction: column; background: #090a0c; }
    .hero-art { position: relative; inset: auto; z-index: -1; order: 2; width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; object-position: 68% center; }
    .hero-shade { z-index: 0; top: auto; height: 57%; background: linear-gradient(0deg, rgba(9,10,12,.25), #090a0c 100%); }
    .hero-content { order: 1; min-height: 0; padding-block: 48px 25px; }
    .hero-copy { width: 100%; }
    .eyebrow { margin-bottom: 10px; }
    .hero h1 { font-size: clamp(2.9rem, 13.3vw, 4rem); line-height: .92; }
    .hero-tagline { margin: 25px 0 24px; font-size: 1rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .button { min-height: 48px; padding-inline: 17px; font-size: .88rem; }
    .hero-values { flex-wrap: wrap; gap: 9px; margin-top: 22px; font-size: .55rem; }
    .features { padding-block: 54px; }
    .feature-grid { grid-template-columns: 1fr; gap: 46px; }
    .feature-card p { font-size: .8rem; }
    .about-media { min-height: 310px; }
    .about-copy { padding: 40px 16px 50px; }
    .about-copy h2 { font-size: clamp(2.1rem, 10vw, 3rem); }
    .community { min-height: 510px; }
    .community-art img { object-position: 67% center; }
    .community-shade { background: linear-gradient(0deg, rgba(9,10,13,.98) 0%, rgba(9,10,13,.78) 52%, rgba(9,10,13,.12) 100%); }
    .community-content { display: flex; min-height: inherit; flex-direction: column; justify-content: flex-end; padding-block: 46px; }
    .community h2 { font-size: 2.55rem; }
    .footer-shell { flex-direction: column; }
    .footer-brand { flex-direction: column; gap: 6px; }
    .site-footer nav { justify-content: flex-start; gap: 18px; }
  }

  @media (min-width: 1600px) {
    .hero { min-height: clamp(700px, 38vw, 980px); }
    .hero-art {
      inset: 0 auto 0 50%; width: min(100%, 2200px); height: 100%;
      transform: translateX(-50%); object-position: 50% 50%;
    }
    .features {
      min-height: clamp(360px, 20vw, 500px); display: flex; align-items: center;
      background-size: 100% 100%, 100% 100%, min(2200px, 100%) auto;
      background-position: center, center, center 72%;
    }
    .about { min-height: clamp(560px, 31vw, 800px); }
    .about-media { min-height: inherit; }
    .about-media img { object-position: 50% 50%; }
    .community { min-height: clamp(500px, 30vw, 760px); }
    .community-art img {
      position: relative; left: 50%; width: min(100%, 2200px); height: 100%;
      transform: translateX(-50%); object-position: 50% 50%;
    }
    .community-content {
      min-height: inherit; display: flex; flex-direction: column; justify-content: center;
    }
  }

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