:root {
  --navy: #0b1f33;
  --blue: #003da5;
  --blue-dark: #002b73;
  --ink: rgba(11, 31, 51, 0.75);
  --muted: #f0f4f8;
  --heading: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  color: var(--navy);
  background: #fff;
  font-family: var(--body);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(48rem, calc(100% - 2.5rem)); text-align: center; }
h1, h2, h3, .brand-name { font-family: var(--heading); letter-spacing: -0.03em; }
h1 { margin: 1.5rem 0 0; font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1.02; font-weight: 800; }
h1 em { color: var(--blue); font-style: italic; }
h2 { margin: 0.75rem 0 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; }
.eyebrow {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pill {
  display: inline-flex;
  border: 1px solid rgba(0, 61, 165, 0.3);
  background: rgba(0, 61, 165, 0.1);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  letter-spacing: 0.14em;
}
.lead { max-width: 36rem; font-size: 1.15rem; color: var(--ink); }
.sub { max-width: 36rem; color: rgba(11, 31, 51, 0.6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn-sm { min-height: 2.5rem; padding: 0 1.15rem; font-size: 0.875rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border: 1px solid rgba(11, 31, 51, 0.2); }
.btn-ghost:hover { background: rgba(11, 31, 51, 0.05); }
.btn-navy { margin-top: 1.5rem; background: var(--navy); color: #fff; }
.btn-navy:hover { background: #16324d; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 70;
}
.skip:focus { top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(11, 31, 51, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}
.bar {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.125rem; font-weight: 700; }
.brand-domain { margin-top: 0.2rem; font-size: 0.7rem; color: rgba(11, 31, 51, 0.55); }
.logo { width: 2.25rem; height: 2.25rem; object-fit: contain; border-radius: 0.5rem; }
.logo-sm { width: 2.25rem; height: 2.25rem; }
.logo-md { width: 3rem; height: 3rem; }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: rgba(11, 31, 51, 0.75); }
.nav-desktop a:hover { color: var(--navy); }
.menu-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid rgba(11, 31, 51, 0.1);
  padding: 1rem 1.25rem 1.25rem;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { text-decoration: none; padding: 0.75rem; border-radius: 0.5rem; font-weight: 500; }
.nav-mobile a:hover { background: rgba(11, 31, 51, 0.05); }
.nav-mobile .btn { margin-top: 0.5rem; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(11, 31, 51, 0.1); }
.court-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: linear-gradient(to right, rgba(11, 31, 51, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.hero-grid { position: relative; display: grid; gap: 2.5rem; padding: 4rem 0; align-items: center; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(11, 31, 51, 0.1);
  box-shadow: 0 24px 50px rgba(11, 31, 51, 0.2);
  background: #0c0e14;
}
.hero-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 51, 0.4), transparent 45%);
  pointer-events: none;
}

.section { border-bottom: 1px solid rgba(11, 31, 51, 0.1); padding: 4rem 0; }
.section-muted { background: var(--muted); }
.intro { max-width: 40rem; }
.intro p, .split p, .about > .wrap > p { color: rgba(11, 31, 51, 0.7); font-size: 1.05rem; }
.zone { margin-top: 3.5rem; }
.zone-head { display: flex; align-items: baseline; gap: 1.25rem; }
.zone-head span { font-family: var(--heading); font-size: 3rem; font-weight: 800; color: rgba(11, 31, 51, 0.12); line-height: 1; }
.zone-head h3 { margin: 0; font-size: 1.35rem; }
.cards { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 0.75rem;
  border-left: 2px solid rgba(11, 31, 51, 0.15);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-left-color: var(--blue); box-shadow: 0 16px 40px rgba(11, 31, 51, 0.1); }
.card h3 { margin: 0; font-size: 1.25rem; }
.card p { flex: 1; margin: 0.5rem 0 0; color: rgba(11, 31, 51, 0.7); }
.open {
  margin-top: 1.25rem;
  align-self: flex-start;
  border: 1px solid rgba(11, 31, 51, 0.2);
  border-radius: 999px;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.card:hover .open { background: var(--blue); color: #fff; border-color: var(--blue); }

.split { display: grid; gap: 2.5rem; align-items: center; }
.journal {
  width: min(20rem, 100%);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(11, 31, 51, 0.1);
  box-shadow: 0 16px 40px rgba(11, 31, 51, 0.1);
}
.stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.1);
  border-radius: 1rem;
  overflow: hidden;
}
.stats div { padding: 1.1rem 0.6rem; text-align: center; }
.stats div + div { border-left: 1px solid rgba(11, 31, 51, 0.1); }
.stats span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 31, 51, 0.45);
}
.stats strong { display: block; margin-top: 0.4rem; font-family: var(--heading); font-size: 0.9rem; }

.about blockquote {
  margin: 2rem 0 0;
  font-family: var(--heading);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}
.about blockquote span { color: var(--blue); }
.founder {
  margin: 3rem auto 0;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  background: var(--muted);
  border: 1px solid rgba(11, 31, 51, 0.1);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
}
.founder .logo { width: 3.5rem; height: 3.5rem; background: var(--navy); }
.founder strong { font-family: var(--heading); font-size: 1.125rem; }
.role { color: var(--blue); font-size: 0.875rem; font-weight: 600; }
.founder p { margin: 0.5rem 0 0; color: rgba(11, 31, 51, 0.7); }

footer { background: var(--navy); color: #fff; padding: 3.5rem 0; }
.footer-brand { text-align: center; }
.footer-brand .logo { margin: 0 auto 1rem; }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand .brand-domain { color: rgba(255, 255, 255, 0.55); }
.app-links { margin-top: 2.5rem; display: grid; gap: 0; }
.app-links a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}
.app-links a:hover { color: #7eb0ff; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.8); }
.footer-bottom p { margin: 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); }

@media (min-width: 640px) {
  .wrap, .bar { width: min(72rem, calc(100% - 4rem)); }
  .hero-actions, .founder { flex-direction: row; }
  .founder { text-align: left; align-items: flex-start; }
  .app-links { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-btn, .nav-mobile { display: none; }
}
@media (min-width: 1024px) {
  .hero-grid, .split { grid-template-columns: 1.2fr 0.8fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 6rem 0; }
}
