/* ============ base ============ */
:root {
  --bg: #0a0a0b;
  --bg-raised: #121214;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-dim: #b8b8bd;
  --text-muted: #8a8a90;
  --radius-card: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ type ============ */
h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 em, h2 em { font-style: normal; color: var(--text-muted); }

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

.lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  margin-top: 20px;
  max-width: 34em;
}

.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  background: #fafafa;
  color: #111;
  padding: 15px 30px;
}

.btn-primary:hover { transform: translateY(-1px); background: #fff; }

.btn-primary .arrow { transition: transform 0.25s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 20px;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-full {
  width: 100%;
  padding: 19px 30px;
  font-size: 1.05rem;
}

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: rgba(12, 12, 13, 0.92);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 2px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

/* ============ hero ============ */
.hero {
  padding: 150px 0 0;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 28px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 24px 0 32px;
}

.hero-visual {
  position: relative;
  max-width: 680px;
  margin: 24px auto 0;
}

.hero-glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(ellipse at center, rgba(190, 200, 220, 0.14), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-visual img {
  position: relative;
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 48%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 48%, transparent 74%);
}

/* ============ sections ============ */
.section { padding: 96px 0; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.flip .split-copy { order: 2; }
.flip .split-media { order: 1; }

.split-media img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 55%, transparent 88%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 55%, transparent 88%);
}

.features {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.features li { display: flex; gap: 18px; align-items: flex-start; }

.features p { color: var(--text-muted); font-size: 0.95rem; margin-top: 3px; }

.feature-icon, .pillar-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.feature-icon svg, .pillar-icon svg { width: 22px; height: 22px; }

/* ============ crafted ============ */
.crafted { background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.015), transparent); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
  text-align: center;
  align-items: stretch;
}

.pillar { display: flex; flex-direction: column; align-items: center; }

.pillar-icon { width: 60px; height: 60px; margin-bottom: 22px; }

.pillar p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 8px;
  margin-bottom: 32px;
  max-width: 15em;
}

.pillar img {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 48%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 48%, transparent 80%);
}

/* ============ card ============ */
.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 56px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 85%);
}

/* ============ cta ============ */
.flip { padding-bottom: 32px; }

.cta { padding-top: 56px; padding-bottom: 60px; }

.cta .container { max-width: 760px; }

.cta-meta {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 28px;
}

/* ============ reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ responsive ============ */
.mobile-br { display: none; }

@media (max-width: 840px) {
  .section { padding: 72px 0; }

  .hero { padding-top: 120px; }

  .mobile-br { display: inline; }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flip .split-copy { order: 1; }
  .flip .split-media { order: 2; }

  /* full-bleed images on mobile, like the mockup — fade on every edge */
  .split-media img {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-composite: intersect;
  }

  .pillars {
    gap: 16px;
    margin-top: 48px;
  }

  .pillar-icon { width: 52px; height: 52px; margin-bottom: 16px; }

  .pillars h3 { font-size: 0.95rem; line-height: 1.25; }

  .pillar p { font-size: 0.82rem; margin-bottom: 24px; }


  .card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 32px;
  }
}
