/* ====================================================
   Kevin Benevides — Shared Design System
   ==================================================== */

:root {
  /* Adaptive colors */
  --ink: #202124;
  --ink-2: #3c4043;
  --ink-3: #5f6368;
  --line: #dadce0;
  --line-soft: #e8eaed;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --surface-3: #f1f3f4;
  --accent: #4285f4;
  --accent-soft: #e8f0fe;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --shadow-card: 0 8px 32px rgba(32, 33, 36, 0.08);

  /* Semantic */
  --status: #34a853;
  --status-soft: rgba(52, 168, 83, 0.18);

  /* Fixed dark blocks (don't invert) */
  --dark-block: #202124;
  --dark-block-text: #ffffff;
  --dark-block-text-muted: rgba(255, 255, 255, 0.6);
  --dark-block-line: rgba(255, 255, 255, 0.12);

  /* Layout */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

[data-theme="dark"] {
  --ink: #e8eaed;
  --ink-2: #bdc1c6;
  --ink-3: #9aa0a6;
  --line: #3c4043;
  --line-soft: #2a2b2d;
  --surface: #131314;
  --surface-2: #1e1f20;
  --surface-3: #2a2b2d;
  --accent: #8ab4f8;
  --accent-soft: rgba(138, 180, 248, 0.12);
  --nav-bg: rgba(19, 19, 20, 0.82);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --dark-block: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Google Sans Text", "Google Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.display {
  font-family: "Google Sans Display", "Google Sans", system-ui, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.mono {
  font-family: "Google Sans Mono", "JetBrains Mono", monospace;
}

/* ===== NAV ===== */
nav.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-bg);
  transition:
    box-shadow 0.2s ease,
    background-color 0.25s ease;
}
nav.topbar.scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--surface);
  font-family: "Google Sans Display";
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.brand:hover .brand-mark {
  background: var(--accent);
  color: #fff;
}
.nav-mid {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-mid a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.nav-mid a:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.nav-mid a.active {
  background: var(--surface-3);
  color: var(--ink);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  font-family: inherit;
}
.theme-toggle:hover {
  background: var(--surface-3);
  border-color: var(--ink-3);
}
.theme-toggle .material-symbols-rounded {
  font-size: 20px;
}
.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface) !important;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-1px);
}
.nav-cta .material-symbols-rounded {
  font-size: 16px;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 80px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--surface-3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 32px;
  opacity: 0;
  animation: rise 0.8s 0.1s ease forwards;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 4px var(--status-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--status-soft);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(52, 168, 83, 0.08);
  }
}
.hero h1 {
  font-size: clamp(48px, 12vw, 184px);
  font-weight: 700;
  margin-bottom: 40px;
  word-break: break-word;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: rise 0.9s ease forwards;
}
.hero h1 .line:nth-child(1) span {
  animation-delay: 0.15s;
}
.hero h1 .line:nth-child(2) span {
  animation-delay: 0.3s;
  color: var(--ink-3);
}
@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: rise 0.9s 0.55s ease forwards;
}
.hero-tagline {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 620px;
  font-weight: 400;
}
.hero-tagline strong {
  color: var(--ink);
  font-weight: 500;
}
.hero-coords {
  text-align: right;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-coords .label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.hero-coords .value {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}

/* ===== SECTION SCAFFOLDING ===== */
section {
  padding: 120px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-num {
  font-family: "Google Sans Mono";
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-num::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}
.section-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
}
.section-blurb {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 480px;
  justify-self: end;
}

/* ===== BUTTONS ===== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-pill:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.btn-pill .material-symbols-rounded {
  font-size: 18px;
}
.btn-pill.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-pill.outline:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

/* ===== CHIPS ===== */
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.chip:hover {
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-1px);
}
.chip.active {
  background: var(--ink);
  color: var(--surface);
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 0 80px;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
  gap: 16px;
  flex-wrap: wrap;
}
.foot-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.foot-mark-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .container {
    padding: 0 24px;
  }
  .nav-mid {
    display: none;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .hero-eyebrow {
    margin-bottom: 24px;
    font-size: 12px;
    padding: 6px 14px 6px 10px;
  }
  .hero h1 {
    font-size: clamp(44px, 13vw, 96px);
    margin-bottom: 32px;
  }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }
  .hero-tagline {
    font-size: 18px;
  }
  .hero-coords {
    text-align: left;
  }
  section {
    padding: 80px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .section-blurb {
    justify-self: start;
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 20px;
  }
  .brand {
    font-size: 15px;
    gap: 10px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 13px;
  }
  .nav-inner {
    height: 64px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .theme-toggle .material-symbols-rounded {
    font-size: 18px;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
  .nav-cta .cta-text {
    display: none;
  }
  .nav-cta .material-symbols-rounded {
    font-size: 18px;
  }
  .hero {
    padding: 100px 0 48px;
  }
  .hero h1 {
    font-size: clamp(40px, 14vw, 72px);
  }
  .hero-tagline {
    font-size: 17px;
  }
  section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .section-title {
    font-size: clamp(32px, 9vw, 48px);
  }
  footer {
    padding: 32px 0 56px;
  }
}
