:root {
  color-scheme: light;
  --ink: #1e1b2e;
  --muted: #4b4666;
  --paper: #f4f7fb;
  --accent: #5999E2;
  --accent-dark: #3D7BC4;
  --primary: #83B9F6;
  --primary-soft: #a8cff8;
  --sky: #bdd9f2;
  --olive: #535927;
  --shadow: 0 30px 70px rgba(30, 50, 80, 0.18);
  --card: #ffffff;
  --border: rgba(89, 153, 226, 0.22);
  --bg-gradient: radial-gradient(circle at top left, #dce8fa 0%, var(--paper) 45%, var(--sky) 100%);
  --logo-fill: #1e1b2e;
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-gradient);
  min-height: 100vh;
}

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

@keyframes crossfade {
  0%, 40% {
    opacity: 1;
  }
  50%, 90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

a {
  color: var(--accent-dark);
}

.page {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 4rem 6vw 6rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}

.hero-text h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 2vw + 2rem, 3.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  animation: fadeUp 750ms ease-out both;
  animation-delay: 120ms;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  animation: fadeUp 700ms ease-out both;
}

.brand-logo {
  width: 88px;
  height: 88px;
  display: block;
  border-radius: 20px;
}

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

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 32rem;
  animation: fadeUp 750ms ease-out both;
  animation-delay: 220ms;
}

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

.hero-meta span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  animation: fadeUp 700ms ease-out both;
}

.hero-meta span:nth-child(1) {
  animation-delay: 300ms;
}

.hero-meta span:nth-child(2) {
  animation-delay: 380ms;
}

.hero-meta span:nth-child(3) {
  animation-delay: 460ms;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  top: -200px;
}

.hero-media {
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 0;
  animation: floatIn 900ms ease-out both;
}

.mockup-wrap {
  position: relative;
  width: min(980px, 92vw);
  padding: 0;
  transform: translateY(-2%);
}

.app-mockup {
  width: 100%;
  height: auto;
  display: block;
  animation: crossfade 8s ease-in-out infinite;
}

.app-mockup--b {
  position: absolute;
  top: 0;
  left: 0;
  animation-delay: -4s;
}

.policy {
  display: flex;
  justify-content: center;
  margin-top: -160px;
}

.policy-card {
  background: var(--card);
  border-radius: 28px;
  padding: 2.5rem;
  max-width: 720px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeUp 800ms ease-out both;
  animation-delay: 200ms;
}

.policy-card h2 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.policy-card h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.policy-card p {
  line-height: 1.7;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.policy-updated {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

@media (max-width: 720px) {
  .page {
    padding: 3rem 6vw 4rem;
  }

  .hero {
    gap: 1.75rem;
  }

  .hero-text {
    top: 0;
  }

  .policy {
    margin-top: 0;
  }

  .mockup-wrap {
    width: min(700px, 90vw);
    transform: none;
  }

  .policy-card {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e8edf5;
    --muted: #8b95a8;
    --paper: #0B1120;
    --accent: #83B9F6;
    --accent-dark: #a8cff8;
    --primary: #5999E2;
    --primary-soft: #3D7BC4;
    --sky: #131B2E;
    --olive: #9aa061;
    --shadow: 0 28px 70px rgba(6, 6, 12, 0.5);
    --card: #131B2E;
    --border: rgba(89, 153, 226, 0.3);
    --bg-gradient: radial-gradient(circle at top left, #152040 0%, var(--paper) 45%, #0f1c2a 100%);
    --logo-fill: #e8edf5;
  }

  a {
    color: var(--accent);
  }

  .hero-meta span {
    background: #1E2A42;
    color: var(--ink);
  }
}

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