:root {
  --bg: #000;
  --bg-elevated: #111;
  --surface: rgba(255, 255, 255, 0.04);
  --ink: #f5f5f7;
  --muted: #86868b;
  --accent: #2997ff;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

strong {
  font-weight: 700;
}

/* ---- Topbar ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo,
.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav a,
.footer-links a {
  transition: all 200ms ease;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.nav a:active {
  transform: scale(0.96);
}

/* ---- Hero ---- */

.hero,
.section,
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 56px;
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}

.hero h1,
.section-head h2,
.product-text h3,
.background-grid h3 {
  margin: 0;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(4rem, 8vw, 7.6rem);
  line-height: 0.94;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #fff 0%,
    #fff 40%,
    #2997ff 65%,
    #a855f7 85%,
    #f472b6 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy,
.product-text p,
.background-grid p,
.footer-brand p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 58ch;
  margin: 28px 0 0;
  font-size: 1.2rem;
  color: #a1a1a6;
}

/* ---- Sections ---- */

.section {
  padding-top: 100px;
  padding-bottom: 10px;
}

.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}

.section-head-center {
  grid-template-columns: 1fr;
  text-align: center;
}

.section-head h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 0.96;
  font-weight: 700;
}

.section-head-wide h2 {
  max-width: 22ch;
}

/* ---- Products ---- */

.product-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.product-row-reverse {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.product-row-reverse .product-text {
  order: 2;
}

.product-row-reverse .product-visual {
  order: 1;
}

.product-text h3 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1;
  margin-bottom: 18px;
}

.product-arrow {
  display: inline-block;
  transition: transform 300ms ease;
  opacity: 0.4;
}

.product-row:hover .product-arrow {
  transform: translateX(4px);
  opacity: 1;
  color: var(--accent);
}

.product-visual {
  margin: 0;
  padding: 14px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 68px rgba(0, 0, 0, 0.5);
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

.product-visual:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(41, 151, 255, 0.06);
}

.product-visual img {
  width: 100%;
  border-radius: 20px;
  opacity: 0.92;
  mix-blend-mode: lighten;
  transition: opacity 400ms ease;
}

.product-row:hover .product-visual img {
  opacity: 1;
}

/* ---- Background grid ---- */

.background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 100px;
}

.background-grid article {
  padding: 28px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.background-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 400ms ease;
}

.background-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.background-grid article:hover::before {
  opacity: 1;
}

.background-grid h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.background-grid article:nth-child(1) h3 { color: #a855f7; }
.background-grid article:nth-child(2) h3 { color: #2997ff; }
.background-grid article:nth-child(3) h3 { color: #30d158; }
.background-grid article:nth-child(4) h3 { color: #ff9f0a; }

/* ---- Mobile menu ---- */

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 8px 18px 18px;
  gap: 4px;
  z-index: 20;
}

.mobile-menu a {
  padding: 14px 0;
  color: var(--ink);
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
  transition: color 200ms ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ---- Footer ---- */

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 26px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line-strong);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 520px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.footer-brand p {
  margin: 0;
  font-size: 0.98rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  background: transparent;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  border-color: rgba(41, 151, 255, 0.3);
}

.footer-links a:active {
  transform: scale(0.96);
}

/* ---- Responsive ---- */

@media (max-width: 1080px) {
  .section-head,
  .product-row,
  .product-row-reverse,
  .background-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .product-row-reverse .product-text,
  .product-row-reverse .product-visual {
    order: initial;
  }

  .footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 18px;
    position: relative;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .brand-copy span {
    white-space: normal;
  }

  .hero,
  .section,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 14vw, 4.9rem);
  }

  .hero-copy,
  .product-text p,
  .footer-brand p {
    font-size: 1rem;
  }

  .product-visual {
    padding: 10px;
    border-radius: 22px;
  }

  .product-visual img {
    border-radius: 14px;
  }

}
