@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/BarlowCondensed_700Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/BarlowCondensed_900Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist_400Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist_600SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist_700Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/GeistMono_500Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0f0f11;
  --surface: #18181c;
  --surface-raised: #212124;
  --surface-pressed: #29292e;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: #34343a;
  --text: #f9f9fb;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --accent: #d7ff3f;
  --accent-muted: rgba(215, 255, 63, 0.12);
  --accent-text: #0f0f11;
  --max-width: 74rem;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background:
    radial-gradient(circle at 78% 6%, rgba(215, 255, 63, 0.065), transparent 27rem),
    var(--background);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.shell {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 17, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  text-decoration: none;
}

.brand:hover { color: var(--text); }
.brand img { width: 2.15rem; height: 2.15rem; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a { text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }

main { min-height: calc(100vh - 12rem); }

.hero {
  min-height: 39rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.2rem, 8.8vw, 7.75rem);
  letter-spacing: -0.035em;
}

h2 { font-size: clamp(2.35rem, 5vw, 4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.45rem; letter-spacing: 0.01em; }

.lede {
  max-width: 39rem;
  margin: 1.6rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.7rem 0 0;
  color: var(--text-subtle);
  font-size: 0.82rem;
}

.status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-muted); }

.hero-art {
  position: relative;
  width: min(100%, 36rem);
  height: clamp(33rem, 49vw, 38rem);
  justify-self: end;
  isolation: isolate;
}

.phone-layer {
  position: absolute;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.phone-layer img {
  width: 100%;
  height: auto;
  will-change: transform;
}

.phone-active {
  z-index: 1;
  top: -1.5%;
  right: -1%;
  width: 76%;
  animation: phone-enter-active 760ms cubic-bezier(0.22, 1, 0.36, 1) 340ms backwards;
}

.phone-today {
  z-index: 2;
  bottom: -1.5%;
  left: -2%;
  width: 78%;
  animation: phone-enter-today 760ms cubic-bezier(0.22, 1, 0.36, 1) 80ms backwards;
}

.phone-active img {
  --phone-upright: -7deg;
  transform: rotate(var(--phone-upright));
  animation: phone-float-active 8.2s ease-in-out 1.5s infinite alternate;
}

.phone-today img {
  --phone-upright: 7deg;
  transform: rotate(var(--phone-upright));
  animation: phone-float-today 6.8s ease-in-out 1.1s infinite alternate;
}

@keyframes phone-enter-today {
  from { opacity: 0; transform: translate3d(-1.4rem, 2.2rem, 0) scale(0.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes phone-enter-active {
  from { opacity: 0; transform: translate3d(1.4rem, 1.2rem, 0) scale(0.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes phone-float-today {
  from { transform: translate3d(0, -0.2rem, 0) rotate(calc(var(--phone-upright) - 0.12deg)); }
  to { transform: translate3d(0.22rem, 0.28rem, 0) rotate(calc(var(--phone-upright) + 0.12deg)); }
}

@keyframes phone-float-active {
  from { transform: translate3d(-0.16rem, 0.24rem, 0) rotate(calc(var(--phone-upright) + 0.12deg)); }
  to { transform: translate3d(0.18rem, -0.24rem, 0) rotate(calc(var(--phone-upright) - 0.12deg)); }
}

@media (hover: hover) and (pointer: fine) {
  .hero-art:hover .phone-today { transform: translate3d(-0.9rem, 0.55rem, 0); }
  .hero-art:hover .phone-active { transform: translate3d(0.95rem, -0.45rem, 0); }
}

.section { padding-block: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--border); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-heading p:last-child { max-width: 33rem; margin: 0; color: var(--text-muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--border);
}

.feature { min-height: 15rem; padding: 1.6rem; background: var(--surface); }

.feature-number {
  display: block;
  margin-bottom: 4rem;
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
}

.feature p { margin: 0.75rem 0 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

.legal-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.25rem);
  border: 1px solid var(--border-strong);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.legal-callout-copy > p:last-child { margin: 1rem 0 0; color: var(--text-muted); }

.document-links { display: grid; gap: 0.75rem; }

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--surface-raised);
  font-weight: 600;
  text-decoration: none;
}

.document-link span { color: var(--accent); font-family: "Geist Mono", monospace; }
.document-link:hover { border-color: rgba(215, 255, 63, 0.35); background: var(--surface-pressed); }

.legal {
  width: min(calc(100% - 2.5rem), 48rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.legal h1 { max-width: 12ch; font-size: clamp(3.6rem, 8vw, 6.2rem); }
.effective { margin: 1.5rem 0 3rem; color: var(--text-muted); }
.legal > p:not(.eyebrow, .effective, .notice) { color: #c7c7cd; }
.legal section { padding-top: 2.5rem; }
.legal section + section { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.legal h2 { margin-bottom: 1rem; font-size: 1.75rem; line-height: 1.05; }
.legal p, .legal li { color: #c7c7cd; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.75rem; }
.placeholder { color: var(--accent); font-weight: 700; }

.notice {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-muted);
  color: var(--text-muted);
}

.site-footer { border-top: 1px solid var(--border); color: var(--text-subtle); }

.footer-inner {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.85rem;
}

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

@media (max-width: 860px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { max-width: 43rem; }
  .hero-art { width: min(100%, 34rem); height: clamp(32rem, 125vw, 38rem); justify-self: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .legal-callout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell, .legal { width: min(calc(100% - 2rem), var(--max-width)); }
  .nav { min-height: 4.25rem; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
  .nav-links { gap: 0.85rem; font-size: 0.8rem; }
  .hero { padding-block: 3.75rem 4.5rem; }
  h1 { font-size: clamp(3.65rem, 18vw, 5rem); }
  .phone-active { right: -1%; width: 73%; }
  .phone-today { left: -1%; width: 75%; }
  .section-heading { display: grid; align-items: start; gap: 1.1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .feature-number { margin-bottom: 2rem; }
  .legal-callout { padding: 1.5rem; border-radius: 1.1rem; }
  .footer-inner { min-height: auto; align-items: flex-start; flex-direction: column; padding-block: 2rem; gap: 1rem; }
}

@media (max-width: 390px) {
  .brand { letter-spacing: 0.05em; }
  .nav-links { gap: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-layer {
    animation: none;
    opacity: 1;
    transform: none !important;
    transition: none;
  }

  .phone-layer img {
    animation: none;
    transform: rotate(var(--phone-upright));
    transition: none;
  }
}
