:root {
  --bg: #f5f5f7;
  --bg-deep: #ececf1;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: rgba(29, 29, 31, 0.08);
  --accent: #0f766e;
  --accent-soft: #14b8a6;
  --white: #ffffff;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  --font: "Noto Sans SC", "DM Sans", sans-serif;
  --font-latin: "DM Sans", "Noto Sans SC", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(
      1200px 600px at 80% -10%,
      rgba(20, 184, 166, 0.12),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at -10% 20%,
      rgba(148, 163, 184, 0.18),
      transparent 50%
    ),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 8% -10% -20% 40%;
  background:
    radial-gradient(
      circle at 40% 40%,
      rgba(15, 118, 110, 0.22),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 20%,
      rgba(255, 255, 255, 0.8),
      transparent 45%
    );
  filter: blur(8px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: rise 900ms var(--ease) both;
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-support {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-family: var(--font-latin);
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease),
    opacity 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: #000;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: rise 1100ms var(--ease) 120ms both;
}

.product-frame {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95),
    rgba(15, 118, 110, 0.25)
  );
  box-shadow: var(--shadow);
  animation: breathe 6s ease-in-out infinite;
}

.product-screen {
  height: 100%;
  border-radius: 27px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    165deg,
    rgba(22, 160, 133, 0.95),
    rgba(15, 118, 110, 0.88) 55%,
    rgba(13, 148, 136, 0.92)
  );
  color: #fff;
}

.product-eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  font-family: var(--font-latin);
}

.product-line {
  margin: 0.15rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}

.product-progress {
  margin-top: 2.5rem;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.product-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: #fff;
  animation: progress 4.5s var(--ease) infinite;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  scroll-margin-top: 5.5rem;
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-latin);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-text {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.why {
  border-top: 1px solid var(--line);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.why-copy {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.why-stat {
  padding: 0 1rem;
  border-left: 1px solid var(--line);
  text-align: center;
}

.why-stat:first-child {
  border-left: none;
}

.why-stat-value {
  margin: 0 0 0.35rem;
  font-family: var(--font-latin);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.why-stat-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.why-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.why-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.why-tagline {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
}

.why-sources {
  margin-top: 2.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  opacity: 0.72;
}

.why-sources-title {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-latin);
}

.why-sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.why-source-org {
  margin: 0 0 0.2rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}

.why-source-work {
  margin: 0 0 0.25rem;
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 0.68rem;
  line-height: 1.45;
}

.why-source-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.45;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2.5rem;
  row-gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 5rem;
  padding-bottom: 7.5rem;
}

.feature {
  padding: 0;
  border-top: none;
}

.feature-index {
  margin: 0 0 2.75rem;
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.feature h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 22rem;
}

.download {
  border-top: 1px solid var(--line);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.download-card .btn {
  margin-top: auto;
}

.download-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.download-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.download-loading,
.download-error {
  color: var(--ink-soft);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-brand {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.footer-note {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes progress {
  0% {
    transform: translateX(-40%);
  }
  50% {
    transform: translateX(20%);
  }
  100% {
    transform: translateX(70%);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-stage {
    order: -1;
  }

  .product-frame {
    width: min(100%, 320px);
  }

  .why-copy {
    gap: 1.75rem;
  }

  .why-stat {
    padding: 0 0.75rem;
  }

  .why-stat-label {
    font-size: 0.75rem;
  }

  .why-sources-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .features,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .features {
    border-top: none;
    padding-top: 0;
    padding-bottom: 5rem;
  }

  .feature {
    padding: 3.5rem 0;
    border-top: 1px solid var(--line);
  }

  .feature p {
    max-width: none;
  }

  .site-nav {
    gap: 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 560px) {
  .why-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-stat {
    padding: 0;
    border-left: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .why-stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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