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

:root {
  --teal: #3BC4CA;
  --teal-ink: #3BC4CA;
  --teal-dim: #3BC4CA20;
  --teal-mid: #3BC4CA50;
  --bg: #0A0E14;
  --bg-card: #0F1319;
  --bg-border: #1A1F2A;
  --bg-hover: #151A23;
  --bg-nav: #0A0E14B3;
  --text-muted: #738294;
  --text-body: #C8D1DB;
  --text-heading: #EFF3F7;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Outfit', sans-serif;
}

[data-theme="light"] {
  --teal: #27A3A9;
  --teal-ink: #1A7A80;
  --teal-dim: #27A3A915;
  --teal-mid: #27A3A940;
  --bg: #F4F5F7;
  --bg-card: #FFFFFF;
  --bg-border: #DFE2E8;
  --bg-hover: #F0F1F4;
  --bg-nav: #F4F5F7B3;
  --text-muted: #5C6570;
  --text-body: #4A5060;
  --text-heading: #111318;
}

html { scroll-behavior: smooth; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--teal);
  color: #0A0E14;
  padding: 0.65rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skip-link:focus { top: 1rem; outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--teal); color: var(--bg); }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-border);
}

[data-theme="light"] nav { box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06); }

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-heading);
}

.logo-text {
  font-family: 'Days One', sans-serif;
  font-weight: 400;
  font-size: 3rem;
  letter-spacing: 0.01em;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--mono) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--bg) !important;
  background: var(--teal);
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.nav-cta:hover { background: var(--text-heading); color: var(--bg) !important; }
.nav-cta::after { display: none !important; }

.nav-sos {
  font-family: var(--mono) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  background: #E07A3A;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.nav-sos:hover { background: #C86828; }
.nav-sos::after { display: none !important; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bg-border);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-heading);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}

.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }

.nav-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--bg-border);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}

.theme-toggle:hover { border-color: var(--teal); }

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle:hover svg { stroke: var(--teal); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .nav-cta { color: #111318 !important; }
[data-theme="light"] .nav-cta:hover { background: var(--text-heading); color: #FFFFFF !important; }
[data-theme="light"] .btn-primary { color: #111318; }
[data-theme="light"] .btn-primary:hover { background: var(--text-heading); color: #FFFFFF; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 2rem 5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--teal); }

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.55rem;
  opacity: 0.5;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--teal-ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 680px;
  margin-bottom: 2.75rem;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);
  gap: 3.5rem;
  align-items: start;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.7rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p,
.prose li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.prose p { margin-bottom: 1rem; }

.prose a {
  color: var(--teal);
  text-decoration: none;
}

.prose a:hover { text-decoration: underline; }

.prose ul {
  margin: 0 0 1.1rem 1.15rem;
}

.prose li { margin-bottom: 0.4rem; }

.aside {
  position: sticky;
  top: 7rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  padding: 1.6rem 1.5rem 1.7rem;
}

.aside::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--teal);
  margin: -1.6rem -1.5rem 1.25rem;
}

.aside h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 0.85rem;
}

.aside p,
.aside li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.aside p { margin-bottom: 1rem; }

.aside ul { list-style: none; }

.aside li { margin-bottom: 0.55rem; }

.aside a {
  color: var(--text-heading);
  text-decoration: none;
}

.aside a:hover { color: var(--teal); }

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.85rem 0 1.2rem;
}

.phone-list a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--teal);
  text-decoration: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  margin: 2.5rem 0 0;
}

.fact {
  background: var(--bg-card);
  padding: 1.4rem 1.3rem;
}

.fact h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.45rem;
}

.fact p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.related {
  margin-top: 4.5rem;
}

.related h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 1rem;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.related-grid a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--bg-border);
  padding: 0.45rem 0.75rem;
}

.related-grid a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.cta-band {
  margin-top: 4.5rem;
  padding: 2.25rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 1.45rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 42ch;
  margin-top: 0.4rem;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--teal);
  padding: 0.95rem 1.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  display: inline-block;
}

.btn-primary:hover {
  background: var(--text-heading);
}

footer {
  padding: 2rem;
  border-top: 1px solid var(--bg-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

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

.footer-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-links a:hover { color: var(--teal); }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav { padding: 1rem 1.25rem; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--bg-border);
  }

  .nav-links.is-open { display: flex; }

  .page { padding: 8rem 1.25rem 3.5rem; }
  .page h1 { max-width: none; }
  .cta-band { padding: 1.75rem 1.25rem; }
}
