:root {
  --bg: #0b0b0b;
  --card: #141414;
  --red: #e10600;
  --text: #f3f3f3;
  --muted: #9a9a9a;
  --line: #2a2a2a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--red);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.lede {
  max-width: 36rem;
  color: #d7d7d7;
  font-size: 1.1rem;
}

.hero-sub {
  margin: 0 0 1rem;
  color: var(--red);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #444;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 6vw;
  background: rgba(11, 11, 11, 0.94);
  border-bottom: 1px solid var(--line);
}

.logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  text-decoration: none;
  color: #cfcfcf;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-cta {
  color: #fff;
}

.nav-cta {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #444;
  color: var(--text);
  padding: 0.4rem 0.7rem;
  font-family: inherit;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: calc(100vh - 72px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 6vw;
}

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

.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem;
  perspective: 1100px;
}

.hero-3d {
  position: relative;
  width: min(100%, 560px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

.hero-3d img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.hero-3d .layer.back,
.hero-3d .layer.mid {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-3d .layer.back {
  transform: translateZ(-48px) scale(1.05);
  opacity: 0.22;
  filter: blur(10px);
}

.hero-3d .layer.mid {
  transform: translateZ(-20px);
  opacity: 0.4;
  filter: brightness(0.55);
}

.hero-3d .layer.front {
  position: relative;
  transform: translateZ(36px);
}

.tilt {
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0) rotateY(0);
  transition: transform 0.18s ease-out;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 1.6rem 4vw;
  border-right: 1px solid var(--line);
}

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

.stats strong {
  display: block;
  font-size: 1.8rem;
  color: var(--red);
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ecosystem,
.framework,
.watch,
.about,
.gallery,
.contact,
.lives,
.apps {
  padding: 5.5rem 6vw;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
  perspective: 900px;
}

.eco-card {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 1.2rem;
}

.eco-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #000;
}

.eco-card h3,
.eco-card p,
.eco-card span {
  padding: 0 1.1rem;
}

.eco-card h3 {
  margin-top: 1rem;
}

.eco-card p {
  color: var(--muted);
  min-height: 4.2em;
}

.eco-card span {
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
}

.lives {
  background: #101010;
}

.lives-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.life-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.life-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #000;
}

.life-card strong,
.life-card p {
  display: block;
  padding: 0 1rem;
}

.life-card strong {
  margin-top: 0.9rem;
  color: var(--red);
  font-size: 1.4rem;
}

.life-card p {
  color: var(--muted);
  padding-bottom: 1.1rem;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.step.reverse {
  direction: rtl;
}

.step.reverse > * {
  direction: ltr;
}

.step span {
  color: var(--red);
  font-size: 2rem;
  font-weight: 800;
}

.step-photo {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.step-photo img {
  width: 100%;
  height: 420px;
  object-fit: contain;
}

.reels-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.6rem 0 0.6rem;
}

.reels-row::-webkit-scrollbar {
  height: 6px;
}

.reels-row::-webkit-scrollbar-thumb {
  background: var(--red);
}

.reel {
  flex: 0 0 230px;
  scroll-snap-align: start;
}

.reel-frame {
  position: relative;
  width: 230px;
  height: 400px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.reel-frame iframe {
  position: absolute;
  border: 0;
  width: 230%;
  height: 100%;
  left: -65%;
  top: 0;
  pointer-events: none;
}

.reel span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.feature-video {
  margin-top: 2.4rem;
}

.feature-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.feature-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-video p {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
  perspective: 900px;
}

.about-photo img {
  width: 100%;
  object-fit: contain;
}

.quote {
  margin: 1.6rem 0 0.3rem;
  color: var(--red);
  font-size: 1.15rem;
}

.quote-en {
  margin: 0 0 1.4rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 2rem;
  perspective: 900px;
}

.gallery-grid button {
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: var(--bg);
}

.gallery-grid button:nth-child(1),
.gallery-grid button:nth-child(5) {
  grid-column: span 2;
}

.gallery-grid button:nth-child(1) img,
.gallery-grid button:nth-child(5) img {
  height: 400px;
}

.apps {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: #101010;
}

.apps img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--line);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}

.contact-list li {
  margin: 0.7rem 0;
  color: var(--muted);
}

.contact-list a {
  color: var(--text);
  margin-left: 0.4rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
}

.form-msg {
  color: var(--red);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 6vw 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer h4 {
  color: var(--red);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0.35rem 0;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 88vh;
  max-width: min(1100px, 92vw);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid #555;
  color: #fff;
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 6vw 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .about,
  .step,
  .contact,
  .apps,
  .stats,
  .eco-grid,
  .lives-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats div,
  .stats div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step.reverse {
    direction: ltr;
  }

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

  .hero-photo {
    padding: 1rem 6vw 3rem;
    perspective: none;
  }

  .hero-3d img {
    max-height: 70vh;
  }

  .hero-3d .layer.back,
  .hero-3d .layer.mid {
    display: none;
  }

  .tilt {
    transform: none !important;
    transition: none;
  }
}
