/* Leta — bento tiles, icons, airy layout */
:root {
  --bg: #eef3f9;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.28);
  --accent-surface: #eff6ff;
  --accent-surface-strong: #dbeafe;
  --accent-border: #bfdbfe;
  --yes-tint: rgba(37, 99, 235, 0.06);
  --no-tint: rgba(100, 116, 139, 0.06);
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-tile: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 10px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-tile-hover: 0 12px 28px -10px rgba(37, 99, 235, 0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max: 1120px;
  --section-gap: clamp(3.5rem, 8vw, 5.5rem);
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent-surface-strong);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(191, 219, 254, 0.45), transparent 52%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(219, 234, 254, 0.5), transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--text);
}

.logo-mark {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  line-height: 1.1;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo .dot {
  color: var(--accent);
}

.logo .sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

nav a {
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover {
  color: var(--accent);
  background: var(--accent-surface);
  text-decoration: none;
}

nav a.nav-highlight {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  box-shadow: 0 2px 10px var(--accent-glow);
}

nav a.nav-highlight:hover {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, var(--accent) 100%);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* —— Hero bento —— */
.hero-bento {
  margin: 0 -1.5rem var(--section-gap);
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.55);
  position: relative;
  overflow: hidden;
}

.hero-bento::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.85) 100%),
    radial-gradient(ellipse 80% 100% at 70% -20%, rgba(59, 130, 246, 0.1), transparent 55%),
    linear-gradient(rgba(37, 99, 235, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  pointer-events: none;
}

.bento {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.bento--hero {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .bento--hero {
    grid-template-columns: 1fr minmax(200px, 240px);
    grid-template-rows: repeat(3, minmax(112px, auto));
    align-items: stretch;
  }

  .tile--hero {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .bento--hero > .tile--mini:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .bento--hero > .tile--mini:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .bento--hero > .tile--mini:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
  }
}

.tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-tile);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-tile-hover);
  transform: translateY(-2px);
}

.tile--hero {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
}

.tile--hero:hover {
  transform: none;
  box-shadow: var(--shadow-tile);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 1rem;
}

.eyebrow--section {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-bento h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

@media (min-width: 600px) {
  .hero-bento h1 {
    max-width: 20ch;
  }
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text);
  margin: 0 0 0.85rem;
  max-width: 36rem;
  line-height: 1.65;
}

.hero-lead--soft {
  color: var(--text-soft);
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--block {
  width: 100%;
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, var(--accent) 45%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow), var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
  text-decoration: none;
  color: #fff;
}

.btn-primary .btn-icon {
  color: #fff;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent-border);
  background: var(--accent-surface);
  transform: translateY(-1px);
  text-decoration: none;
}

.tile--mini {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: 1.15rem 1.25rem;
}

.tile--mini:hover {
  transform: translateY(-2px);
}

.tile--blue {
  background: linear-gradient(145deg, #fff 0%, var(--accent-surface) 100%);
  border-color: var(--accent-border);
}

.tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: var(--accent-surface);
  color: var(--accent);
}

.tile--blue .tile-icon {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tile-icon--sm {
  width: 36px;
  height: 36px;
  margin-bottom: 0.55rem;
  border-radius: 10px;
}

.tile-icon--sm svg {
  width: 18px;
  height: 18px;
}

.tile-icon--muted {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-soft);
}

.tile-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.tile-blurb {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* —— Sections —— */
.section-block {
  margin-bottom: var(--section-gap);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-deck {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.section-note {
  margin: 1.75rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: var(--font-mono);
  max-width: 36rem;
}

.section-spacer {
  margin-top: 1.25rem;
}

/* Clarity grid */
.bento--clarity {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .bento--clarity {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile--clarity {
  padding: 1.35rem 1.4rem;
}

.tile--clarity p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.tile--yes {
  background: linear-gradient(160deg, #fff 0%, var(--yes-tint) 100%);
  border-color: rgba(191, 219, 254, 0.85);
}

.tile--no {
  background: linear-gradient(160deg, #fff 0%, var(--no-tint) 100%);
  border-color: var(--border);
}

.tile--no .tile-icon {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-soft);
}

.tile-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--text);
}

/* Partner quad */
.bento--quad {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento--quad {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tile--feature .tile-title {
  color: var(--accent-hover);
}

/* Soft trio */
.bento--trio {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 800px) {
  .bento--trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile--soft {
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  box-shadow: var(--shadow-sm);
}

.tile--soft:hover {
  background: #fff;
}

/* Model tiles */
.tile--model {
  text-align: left;
  padding-top: 1.5rem;
}

.tile--model .tile-icon {
  margin-bottom: 0.5rem;
}

.pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-hover);
  background: var(--accent-surface);
  border: 1px solid var(--accent-border);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.tile--model .tile-title {
  color: var(--text);
  font-size: 1.1rem;
}

.tile--model p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Contact */
.contact-strip {
  margin-bottom: 2rem;
}

.bento--contact {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .bento--contact {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.tile--contact-copy {
  padding: 1.75rem 1.85rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff 0%, var(--accent-surface) 100%);
  border-color: var(--accent-border);
}

.tile--contact-copy:hover {
  transform: none;
}

.tile--contact-copy h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tile--contact-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 28rem;
}

.tile--contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border-color: var(--border);
}

.tile--contact-actions:hover {
  transform: none;
}

/* Footnote tile */
.tile--footnote {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  border-style: dashed;
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.75);
}

.tile--footnote:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.tile--footnote p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.tile--footnote code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 500;
  background: var(--accent-surface);
  color: var(--accent-hover);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--accent-border);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer strong {
  color: var(--text);
}

.footer-repo {
  margin-top: 0.55rem;
}

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

  .tile:hover,
  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .tile,
  .btn {
    transition: none;
  }
}
