:root {
  --black: #050505;
  --ink: #101010;
  --panel: #141414;
  --panel-strong: #1d1d1d;
  --paper: #f6f1d8;
  --yellow: #F6BD16;
  --yellow-soft: #F6BD16;
  --muted: rgba(255, 255, 255, 0.68);
  --muted-dark: #686868;
  --line: rgba(246, 189, 22, 0.2);
  --line-dark: rgba(5, 5, 5, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  background: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 58px);
  color: #fff;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(5, 5, 5, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(132px, 15vw, 178px);
  height: auto;
}

.lang-toggle {
  width: 48px;
  height: 38px;
  border: 1px solid rgba(246, 189, 22, 0.72);
  border-radius: 8px;
  color: var(--yellow);
  background: rgba(246, 189, 22, 0.06);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.header-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding-inline: 8px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: clamp(4px, 1.2vw, 16px);
}

.hero {
  --page-pad: clamp(20px, 5vw, 72px);
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 126px var(--page-pad) 0;
  color: #fff;
  background: var(--black);
}

#product-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.74) 46%, rgba(5, 5, 5, 0.34)),
    radial-gradient(circle at 78% 20%, rgba(246, 189, 22, 0.2), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  padding-bottom: clamp(56px, 10vw, 132px);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1100px;
  margin-bottom: 26px;
  font-size: clamp(46px, 8.2vw, 122px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.46;
}

.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-inline: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(14px);
}

.hero-metrics div {
  min-height: 116px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: clamp(78px, 10vw, 136px) clamp(20px, 5vw, 72px);
}

.section h2 {
  max-width: 1010px;
  margin-bottom: 34px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.statement,
.mobile-seo {
  background: var(--paper);
  color: var(--ink);
}

.statement .section-label,
.mobile-seo .section-label {
  color: #8f8500;
}

.statement-grid,
.mobile-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.statement-copy,
.mobile-seo-copy {
  display: grid;
  gap: 18px;
  color: #373737;
  font-size: 18px;
  line-height: 1.58;
}

.statement-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mobile-seo-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--black);
  border-radius: 8px;
  color: var(--black);
  background: transparent;
  font-size: 15px;
  font-weight: 900;
}

.section-cta:hover {
  color: var(--paper);
  background: var(--black);
}

.ecosystem,
.skills {
  background: var(--black);
}

.engine-grid,
.skills-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.engine,
.skills-grid article,
.method-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--panel);
}

.engine {
  min-height: 344px;
  padding: 24px;
}

.engine-index {
  display: inline-flex;
  margin-bottom: 94px;
  color: var(--yellow);
  font-weight: 900;
}

.engine h3,
.skills-grid h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 25px;
}

.engine p,
.skills-grid p,
.method-grid p,
.manifesto p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.56;
}

.method {
  color: var(--ink);
  background: var(--yellow);
}

.method .section-label {
  color: #403c00;
}

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

.method-grid article {
  min-height: 260px;
  padding: 24px;
  color: #fff;
  background: var(--black);
}

.method-grid span {
  display: block;
  margin-bottom: 80px;
  color: var(--yellow);
  font-size: 24px;
  font-weight: 900;
}

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

.skills-grid article {
  min-height: 236px;
  padding: 24px;
  border-top: 5px solid var(--yellow);
}

.skills-grid article:nth-child(even) {
  background: var(--panel-strong);
}

.manifesto {
  color: var(--black);
  background: var(--yellow);
}

.manifesto .section-label {
  color: #403c00;
}

.manifesto p {
  max-width: 860px;
  color: rgba(5, 5, 5, 0.74);
  font-size: 20px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  background: var(--black);
}

.contact-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mail-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--yellow);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.08;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.64);
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.site-footer a {
  color: var(--yellow);
}

.products-hero {
  padding: 150px clamp(20px, 5vw, 72px) clamp(72px, 9vw, 120px);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.82)),
    radial-gradient(circle at 80% 20%, rgba(246, 189, 22, 0.18), transparent 34%);
}

.products-hero h1 {
  max-width: 1050px;
}

.products-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
}

.products-section {
  padding: clamp(76px, 9vw, 120px) clamp(20px, 5vw, 72px);
  background: var(--black);
}

.products-section:nth-of-type(odd) {
  background: #0b0b0b;
}

.products-section h2 {
  max-width: 980px;
}

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

.product-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--panel);
}

.product-card-featured {
  grid-column: 1 / -1;
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(246, 189, 22, 0.15), rgba(20, 20, 20, 0.96) 45%),
    var(--panel);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 54px;
}

.product-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(246, 189, 22, 0.32);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.product-meta .award-badge {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
}

.product-meta .award-badge-image {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.award-badge-image img {
  display: block;
  width: 96px;
  height: auto;
  filter: invert(1);
}

.product-card h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}

.product-card p,
.product-card li,
.product-lab p {
  color: var(--muted);
  line-height: 1.58;
}

.product-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.product-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(246, 189, 22, 0.4);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.product-lab p {
  max-width: 860px;
  font-size: 18px;
}

@media (max-width: 980px) {
  .statement-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .engine-grid,
  .skills-grid,
  .method-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card-featured {
    grid-column: auto;
  }

  .method-grid article,
  .engine,
  .skills-grid article {
    min-height: auto;
  }

  .method-grid span,
  .engine-index {
    margin-bottom: 46px;
  }

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

  .hero-metrics div:nth-child(2) {
    border-right: 0;
  }

  .hero-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 18px;
  }

  .brand img {
    width: 132px;
  }

  .hero {
    min-height: 94svh;
    padding-top: 112px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.64)),
      radial-gradient(circle at 70% 18%, rgba(246, 189, 22, 0.18), transparent 36%);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div,
  .hero-metrics div:nth-child(2) {
    min-height: 98px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

}
