@font-face {
  font-family: "MedievalSharp";
  src: url("assets/MedievalSharp-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --water: #4aa7d9;
  --fire: #e56c2c;
  --grass: #6aa955;
  --electric: #d4a516;
  --ivory: #fbf6eb;
  --ivory-deep: #f0e2c5;
  --ink: #221b16;
  --ink-muted: #6d6051;
  --nav-ink: #312922;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(92, 63, 28, 0.12);
  --shadow-soft: 0 24px 60px rgba(79, 52, 24, 0.14);
  --shadow-strong: 0 28px 80px rgba(41, 23, 6, 0.18);
  --radius: 22px;
  --radius-lg: 34px;
  --content-width: 1160px;
  --section-space: clamp(4.5rem, 8vw, 7rem);
  --accent: var(--fire);
  --accent-soft: rgba(229, 108, 44, 0.16);
  --transition-fast: 220ms;
  --transition-mid: 520ms;
  --transition-slow: 760ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.home-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(126, 204, 222, 0.18), transparent 20rem),
    linear-gradient(180deg, #faf5ea 0%, var(--ivory) 48%, var(--ivory-deep) 100%);
}

body.legal-page {
  background:
    radial-gradient(circle at top right, rgba(255, 238, 171, 0.16), transparent 18rem),
    linear-gradient(180deg, #fbf7ef 0%, #f4ead7 100%);
}

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

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

.page-shell {
  position: relative;
}

.page-shell[data-active-element="fire"] {
  --accent: var(--fire);
  --accent-soft: rgba(229, 108, 44, 0.16);
}

.page-shell[data-active-element="water"] {
  --accent: var(--water);
  --accent-soft: rgba(74, 167, 217, 0.16);
}

.page-shell[data-active-element="grass"] {
  --accent: var(--grass);
  --accent-soft: rgba(106, 169, 85, 0.16);
}

.page-shell[data-active-element="electric"] {
  --accent: var(--electric);
  --accent-soft: rgba(212, 165, 22, 0.18);
}

.footer-logo,
.section-title,
.page-title,
.hero-title {
  font-family: "MedievalSharp", Georgia, serif;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color var(--transition-fast) ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.hero-home,
.video-section,
.cta-section {
  padding: var(--section-space) 1.5rem;
}

.hero-home {
  min-height: 100svh;
  padding-top: clamp(2.6rem, 6vw, 4.8rem);
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow-badge,
.section-tag,
.play-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-badge {
  padding: 0.5rem 0.9rem;
  margin-bottom: 1rem;
  color: white;
  background: linear-gradient(135deg, #f08e4b, var(--fire));
  box-shadow: 0 14px 30px rgba(229, 108, 44, 0.24);
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.94;
}

.hero-kicker {
  margin: 0.9rem 0 0;
  color: var(--accent);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
}

.hero-sub,
.section-desc,
.page-date,
.doc-card p,
.doc-card li,
.footer-copy {
  color: var(--ink-muted);
}

.hero-sub {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 700;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.35rem;
  min-width: min(100%, 16rem);
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  border-radius: 22px;
  border: 1px solid transparent;
  font-weight: 800;
  overflow: hidden;
  transition:
    transform var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease,
    background-color var(--transition-fast) ease,
    border-color var(--transition-fast) ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 44%;
  border-radius: 21px 21px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.button-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  text-align: left;
}

.button-copy small {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.82;
  text-transform: uppercase;
}

.button-copy span {
  font-size: 1rem;
  line-height: 1.05;
}

.button-glyph {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #f08e4b, var(--fire));
  border-color: rgba(255, 238, 214, 0.34);
  box-shadow:
    0 18px 34px rgba(229, 108, 44, 0.22),
    inset 0 -10px 18px rgba(137, 42, 8, 0.18);
}

.button-primary .button-glyph {
  color: var(--fire);
  background: rgba(255, 247, 236, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.button-secondary {
  color: var(--nav-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 240, 228, 0.88));
  border-color: rgba(92, 63, 28, 0.14);
  box-shadow:
    0 14px 28px rgba(79, 52, 24, 0.1),
    inset 0 -8px 14px rgba(189, 166, 132, 0.12);
}

.button-secondary .button-glyph {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(92, 63, 28, 0.08);
}

.hero-status,
.cta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.hero-status span,
.cta-pills span {
  padding: 0.62rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(92, 63, 28, 0.1);
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-status strong {
  color: var(--accent);
  transition: color var(--transition-mid) ease;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: auto 10% -2rem;
  height: 8rem;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(42px);
  z-index: 0;
}

.hero-picture {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow-strong);
}

.hero-picture img {
  width: 100%;
  height: auto;
}

.section-copy {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-tag {
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.02;
}

.section-desc {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.video-section {
  background:
    radial-gradient(circle at top right, rgba(74, 167, 217, 0.1), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(243, 235, 217, 0.9));
}

.video-card,
.cta-card,
.doc-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.video-card {
  padding: 1.25rem;
}

.video-stage {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  justify-items: center;
}

.video-phone-shell {
  width: min(100%, 21rem);
  padding: 0.7rem;
  border-radius: 2.3rem;
  background:
    linear-gradient(180deg, rgba(49, 37, 28, 0.98), rgba(26, 19, 14, 0.98)),
    linear-gradient(135deg, rgba(255, 228, 182, 0.16), rgba(255, 255, 255, 0));
  box-shadow:
    0 24px 48px rgba(41, 23, 6, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.video-phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 1.75rem;
  background: #120d0b;
}

.video-phone-screen::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 0.38rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.72);
  transform: scale(1.02);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.2rem;
  text-align: left;
  color: white;
  background:
    linear-gradient(180deg, rgba(19, 14, 12, 0.04), rgba(19, 14, 12, 0.72)),
    radial-gradient(circle at center, rgba(255, 232, 175, 0.14), transparent 40%);
}

.play-pill {
  padding: 0.55rem 0.9rem;
  color: #fff4cf;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.video-overlay p {
  margin: 0;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.05rem);
  line-height: 1.08;
}

.video-overlay span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  font-weight: 700;
}

.video-notes {
  width: min(100%, 28rem);
  padding: 1.1rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(92, 63, 28, 0.1);
  background: rgba(255, 255, 255, 0.68);
}

.video-notes-title {
  margin: 0 0 0.35rem;
  color: var(--nav-ink);
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 1.25rem;
}

.video-notes p {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 700;
}

.video-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.video-pills span {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(92, 63, 28, 0.1);
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cta-card {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background:
    radial-gradient(circle at top right, rgba(255, 226, 139, 0.24), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 240, 227, 0.96));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  padding: 2rem 1.5rem;
  background: #1f1a1c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer > * {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.footer-logo {
  color: white;
  font-size: 1rem;
}

.footer-links a,
.footer-copy {
  color: rgba(255, 255, 255, 0.62);
}

.legal-wrap {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 4.8rem) 1.5rem 5rem;
}

.page-header {
  margin-bottom: 2.6rem;
}

.page-title {
  margin: 0 0 0.8rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
}

.doc-card {
  padding: 2.5rem 2.2rem;
  background: var(--card-strong);
}

.doc-card h2 {
  margin: 0 0 0.8rem;
  font-family: "MedievalSharp", Georgia, serif;
  font-size: 1.65rem;
}

.doc-card p {
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.doc-card ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.3rem;
}

.doc-card li {
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.doc-card a {
  color: var(--fire);
  font-weight: 800;
}

.divider {
  height: 1px;
  margin: 1.7rem 0;
  background: rgba(92, 63, 28, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--transition-slow) ease,
    transform var(--transition-slow) ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(30rem, 1.1fr);
    gap: 2.4rem;
  }

  .hero-copy {
    padding-right: 1rem;
  }

  .video-stage {
    grid-template-columns: auto minmax(18rem, 22rem);
    justify-content: center;
  }
}

@media (min-width: 720px) {
  .site-footer {
    padding-inline: 40px;
  }

  .site-footer > *:nth-child(1),
  .site-footer > *:nth-child(2) {
    width: auto;
    margin: 0;
  }

  .site-footer > *:nth-child(3) {
    width: 100%;
    margin: 0;
    text-align: right;
  }
}

@media (max-width: 719px) {
  .hero-home,
  .video-section,
  .cta-section,
  .legal-wrap {
    padding-inline: 20px;
  }

  .site-footer {
    padding-inline: 20px;
  }

  .site-footer > *:nth-child(3) {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .doc-card {
    padding: 1.8rem 1.3rem;
  }

  .hero-picture {
    border-radius: 28px;
  }

  .video-card {
    padding: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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