@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --accent: #2563eb;
  --black: #000000;
  --white: #ffffff;
  --light: #f7f7f7;
  --text: #0d0d0d;
  --muted: #5f5f5f;
  --radius: 24px;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
}

h2 {
  font-size: clamp(40px, 6vw, 72px);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.lead {
  font-size: 20px;
  color: var(--text);
}

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.section {
  padding: 120px 0;
  background: var(--white);
}

.section--alt {
  background: var(--light);
}

.section--black {
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section--tall {
  min-height: 150vh;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(180, 210, 255, 0.35), transparent 60%),
    radial-gradient(900px 700px at 80% 10%, rgba(160, 190, 255, 0.25), transparent 55%),
    radial-gradient(700px 600px at 50% 80%, rgba(210, 230, 255, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(230, 240, 255, 0.25), rgba(255, 255, 255, 0.9));
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(600px 600px at 30% 30%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(500px 500px at 70% 40%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(420px 420px at 50% 70%, rgba(255, 255, 255, 0.6), transparent 60%);
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: -6vh;
}

.hero__logo {
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.hero__headline {
  margin: 0;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.btn--ghost {
  background: transparent;
  border: 1px solid #dcdcdc;
  color: var(--text);
}

.scroll-indicator {
  width: 2px;
  height: 48px;
  background: #dcdcdc;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  margin: auto;
  width: 2px;
  height: 12px;
  background: var(--accent);
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(16px);
    opacity: 1;
  }
}

.transition {
  min-height: 200vh;
  background: var(--white);
}

.transition__sticky {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
  text-align: center;
}

.transition__line {
  font-size: clamp(28px, 4vw, 48px);
  opacity: 0.2;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transform: translateY(20px);
}

.transition__line.is-active {
  opacity: 1;
  transform: translateY(0);
}

.product {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.product--reverse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product--reverse .product__media {
  order: 1;
}

.product__text {
  max-width: 520px;
}

.media-placeholder,
.future-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  text-align: center;
  padding: 24px;
}

.media-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.future-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.section--alt .media-placeholder {
  background: var(--light);
}

.open-source {
  display: grid;
  gap: 48px;
  text-align: center;
}

.open-source__header p {
  color: #bdbdbd;
}

.open-source__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  border-radius: var(--radius);
  padding: 48px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card--dark {
  background: #0a0a0a;
  color: var(--white);
}

.card--dark:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.card__title {
  font-size: 22px;
  font-weight: 500;
}

.coming-soon {
  display: grid;
  gap: 48px;
  align-items: center;
}

.coming-soon__list {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 0;
}

.coming-soon__item {
  font-size: 24px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #e2e2e2;
  background: var(--white);
  transition: transform 0.4s var(--ease);
}

.coming-soon__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.future-placeholder {
  aspect-ratio: 1 / 1;
  font-size: 18px;
}

.final-cta {
  text-align: center;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .product,
  .product--reverse,
  .open-source__cards,
  .coming-soon__grid {
    grid-template-columns: 1fr;
  }

  .product__media {
    order: -1;
  }

  .section {
    padding: 96px 0;
  }

  .coming-soon__list {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(var(--max), 88vw);
  }

  h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  h2 {
    font-size: clamp(32px, 8vw, 42px);
  }

  .product {
    gap: 32px;
  }

  .btn {
    padding: 12px 22px;
  }
}
