:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --bg-soft: #141415;
  --surface: #19191a;
  --surface-strong: #222224;
  --text: #f2f0ea;
  --muted: #b5b0a7;
  --faint: #78736c;
  --line: rgba(242, 240, 234, 0.12);
  --accent: #e6d7b8;
  --accent-strong: #ffffff;
  --holding-yellow: #f4f400;
  --red: #8c1d20;
  --blue: #5e8d9f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 14%, rgba(94, 141, 159, 0.18), transparent 30rem),
    linear-gradient(180deg, #0a0a0b 0%, var(--bg) 44%, #101010 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

.skip-link,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 76px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand-mark,
.primary-nav {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 0.75rem;
  font-weight: 720;
}

.brand-logo {
  width: clamp(4.8rem, 10vw, 7.2rem);
  height: auto;
  display: block;
  aspect-ratio: 1942 / 809;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(244, 244, 0, 0.08));
}

.primary-nav {
  gap: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.primary-nav a {
  transition: color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
}

.store-link {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--text);
}

.language-link {
  color: var(--text);
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-0.42rem);
}

.nav-toggle-line::after {
  transform: translateY(0.3rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  width: min(calc(100% - 2rem), var(--max));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(4.6rem, 10vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 850px;
  margin-bottom: 1.1rem;
  font-size: clamp(1.55rem, 3vw, 3.25rem);
  line-height: 1.04;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  font-weight: 720;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 240, 234, 0.36);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 64% 26%, rgba(244, 244, 0, 0.2), transparent 21rem),
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(140, 29, 32, 0.2), transparent 48%),
    #111112;
}

.hero-visual::before {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(242, 240, 234, 0.11);
  content: "";
}

.hero-logo {
  position: absolute;
  z-index: 1;
  top: 13%;
  left: 50%;
  width: min(86%, 560px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 30px rgba(244, 244, 0, 0.18));
}

.signal-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.55;
}

.signal-grid span {
  border-right: 1px solid rgba(242, 240, 234, 0.06);
  border-bottom: 1px solid rgba(242, 240, 234, 0.06);
}

.visual-panel {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: rgba(12, 12, 13, 0.76);
  padding: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.panel-main {
  right: 1.3rem;
  bottom: 1.3rem;
  width: min(78%, 360px);
  border-color: rgba(244, 244, 0, 0.28);
}

.panel-side {
  top: 1.3rem;
  left: 1.3rem;
}

.panel-side span {
  color: var(--holding-yellow);
}

.panel-kicker,
.visual-panel small,
.visual-panel span {
  color: var(--muted);
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.intro-strip {
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  color: var(--muted);
}

.intro-strip p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.44fr 1fr;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.brand-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 240, 234, 0.28);
}

.brand-card-metal {
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.76) 76%),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 20px),
    linear-gradient(135deg, #222 0%, #0b0b0c 62%, #261112 100%);
}

.brand-card-lucid {
  background:
    linear-gradient(180deg, transparent 0%, rgba(8, 8, 10, 0.78) 76%),
    radial-gradient(circle at 75% 12%, rgba(94, 141, 159, 0.36), transparent 19rem),
    linear-gradient(135deg, #151517 0%, #10222a 100%);
}

.brand-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
}

.brand-asset {
  display: grid;
  width: 100%;
  min-height: 11rem;
  margin: 1.5rem 0 2rem;
  place-items: center;
}

.brand-asset img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(72%, 22rem);
  max-height: 12rem;
  object-fit: contain;
}

.brand-asset-metal img {
  max-width: min(64%, 17rem);
  max-height: 15rem;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.56));
}

.brand-asset-lucid img {
  max-width: min(78%, 24rem);
  filter: drop-shadow(0 20px 36px rgba(94, 141, 159, 0.2));
}

.brand-label,
.brand-code {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-card p:not(.brand-label) {
  max-width: 570px;
  color: var(--muted);
}

.text-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-weight: 720;
}

.about-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.about-section .section-heading {
  display: block;
  margin-bottom: 0;
}

.about-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.build-item {
  min-height: 260px;
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.build-item span {
  display: block;
  margin-bottom: 3rem;
  color: var(--faint);
}

.build-item h3 {
  font-size: 1.12rem;
}

.build-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-block: 1px solid var(--line);
}

.contact-section p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-page {
  max-width: 880px;
  padding-top: clamp(3rem, 7vw, 5rem);
}

.legal-page h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(3rem, 10vw, 5rem);
}

.legal-page h2 {
  margin: 2.3rem 0 0.65rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.legal-page p,
.legal-page address {
  color: var(--muted);
}

.legal-page address {
  font-style: normal;
}

.legal-page a {
  color: var(--text);
  border-bottom: 1px solid currentColor;
}

.legal-updated,
.legal-note {
  color: var(--faint);
}

.legal-note {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-footer strong {
  color: var(--text);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .primary-nav {
    position: absolute;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(12, 12, 13, 0.96);
  }

  .primary-nav[data-open="true"] {
    display: flex;
  }

  .primary-nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-logo {
    top: 16%;
    width: min(88%, 460px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 1rem), var(--max));
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.35rem, 17vw, 4.6rem);
    overflow-wrap: break-word;
  }

  .hero-actions,
  .contact-section,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .brand-mark span {
    max-width: 9rem;
    line-height: 1.1;
  }

  .brand-logo {
    width: 4.35rem;
  }

  .brand-card {
    min-height: 430px;
  }

  .brand-asset {
    min-height: 8rem;
    margin: 1rem 0 1.5rem;
  }

  .brand-asset img {
    max-height: 8rem;
  }

  .brand-asset-metal img {
    max-width: min(56%, 14rem);
    max-height: 11rem;
  }

  .build-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
