:root {
  --black: #0a0a0a;
  --navy: #1a2744;
  --white: #fafafa;
  --gray-50: #f5f5f5;
  --gray-100: #e5e5e5;
  --gray-200: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-800: #262626;
  --gray-900: #171717;
  --accent: #e84430;
  --accent-dark: #c93a28;
  --accent-soft: #fff0ed;
  --accent-glow: rgba(232, 68, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #d0ccc8 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top, var(--accent-glow), transparent 55%);
}

nav,
main,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

.shell-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(1.5);
  background: rgba(250, 250, 250, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shell-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shell-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.shell-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.shell-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.shell-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.92rem;
  font-weight: 500;
}

.shell-links a:hover {
  color: var(--navy);
}

.shell-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.shell-cta.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(232, 68, 48, 0.2);
}

.shell-cta.primary:hover {
  background: var(--accent-dark);
}

.shell-cta.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--gray-200);
}

.shell-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.shell-hero {
  padding: 2.5rem 0 2rem;
  display: grid;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-badge.dot::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4ade80;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--navy);
}

.hero-copy p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--gray-600);
  max-width: 56ch;
}

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

.hero-aside,
.surface,
.callout,
.section-grid article,
.mini-grid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 20px 60px rgba(26, 39, 68, 0.08);
  backdrop-filter: blur(10px);
}

.hero-aside,
.surface,
.callout {
  border-radius: 24px;
}

.hero-aside {
  padding: 1.35rem;
}

.hero-aside h2,
.surface h2,
.section-heading h2,
.page-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  letter-spacing: -0.03em;
}

.hero-aside p,
.hero-aside li,
.surface p,
.surface li,
.page-section p,
.page-section li {
  color: var(--gray-600);
}

.meta-list,
.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.page-section {
  margin-top: 2.5rem;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.section-heading p {
  margin: 0;
  color: var(--gray-500);
}

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

.section-grid article,
.mini-grid article {
  border-radius: 20px;
  padding: 1.2rem 1.15rem;
}

.section-grid h3,
.mini-grid h3,
.surface h3,
.callout h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1rem;
}

.section-grid p,
.mini-grid p,
.callout p,
.callout li,
.surface p,
.surface li {
  margin: 0;
}

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

.surface {
  padding: 1.35rem;
}

.surface + .surface {
  margin-top: 1rem;
}

.surface pre,
.surface code,
.inline-code {
  font-family: 'Space Mono', monospace;
}

.surface pre {
  margin: 1rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--gray-900);
  color: #f9fafb;
  font-size: 0.88rem;
  line-height: 1.6;
}

.inline-code {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  font-size: 0.92em;
}

.callout {
  padding: 1.2rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 237, 0.92));
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

th {
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  color: var(--gray-600);
}

.keyline {
  height: 1px;
  background: linear-gradient(90deg, rgba(26, 39, 68, 0.08), rgba(26, 39, 68, 0));
  margin: 2.5rem 0 0;
}

.footer-shell {
  padding: 0 1.5rem 2.5rem;
}

.footer-shell-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--gray-500);
  font-size: 0.9rem;
}

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

.waitlist-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.waitlist-inline input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.waitlist-inline button {
  border: 0;
  cursor: pointer;
}

.waitlist-error,
.waitlist-success-note {
  margin: 0.75rem 0 0;
  color: var(--gray-500);
}

.waitlist-success {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.subtle {
  color: var(--gray-500);
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .shell-nav-inner,
  .footer-shell-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
