:root {
  --color-dark: #141838;
  --color-paper: #F7F5F3;
  --color-body: #151723;
  --color-brand: #142CEB;
  --color-accent: #6EAFED;
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 2px solid var(--color-body);
  --card-shadow: 4px 4px 0 var(--color-body);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1120px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dark-surface {
  --text-color: var(--color-paper);
  --icon-color: var(--color-accent);
  --link-color: var(--color-accent);
  --bg-color: var(--color-dark);
  background: var(--bg-color);
  color: var(--text-color);
}
.dark-surface a { color: var(--link-color); }
.dark-surface .hl { color: var(--color-accent); }
.dark-surface .eyebrow { color: var(--color-accent); }
.dark-surface h1, .dark-surface h2, .dark-surface h3 { color: var(--text-color); }

.light-card {
  --text-color: var(--color-body);
  --icon-color: var(--color-brand);
  --link-color: var(--color-brand);
  --bg-color: var(--color-paper);
  background: var(--bg-color);
  color: var(--text-color);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  border-radius: var(--radius-card);
}
.light-card a { color: var(--link-color); }
.light-card .hl { color: var(--color-brand); }
.light-card .eyebrow { color: var(--color-brand); }
.light-card h1, .light-card h2, .light-card h3 { color: var(--text-color); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-body);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
section { padding: var(--section-y) 0; }
section.dark { background: var(--color-dark); }

h1, h2, h3 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; color: var(--color-body); }
.dark h1, .dark h2, .dark h3 { color: var(--color-paper); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--gap); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: calc(var(--gap) * 0.5); }
p { margin-bottom: 1rem; max-width: 38em; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.hl { color: var(--color-brand); }
.dark .hl { color: var(--color-accent); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 52px; padding: 0 1.5rem;
  font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-btn); cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--color-accent); color: var(--color-dark);
}
.btn-secondary {
  background: transparent; border: 2px solid var(--color-body); color: var(--color-body);
}
.dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: var(--gap);
}
.dark .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); box-shadow: none; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--color-body); }
.dark th, .dark td { border-bottom-color: rgba(255,255,255,0.2); }
th { font-weight: 700; }

details {
  border: var(--card-border);
  border-radius: var(--radius-card);
  margin-bottom: 0.75rem;
  background: var(--color-paper);
}
.dark details { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
summary {
  padding: 1rem; cursor: pointer; font-weight: 600; list-style: none;
  position: relative; padding-right: 2.5rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; color: var(--color-brand);
}
.dark summary::after { color: var(--color-accent); }
details[open] summary::after { content: "-"; }
details > div { padding: 0 1rem 1rem; }

header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); border-bottom: 1px solid rgba(0,0,0,0.1); }
.dark header { background: var(--color-dark); border-bottom-color: rgba(255,255,255,0.1); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.2rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-brand); }
.dark .nav-links a:hover, .dark .nav-links a[aria-current="page"] { color: var(--color-accent); }

footer { background: var(--color-dark); color: var(--color-paper); padding: 3rem 0; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-grid a { color: var(--color-accent); }

.hero-svg { width: 100%; height: auto; }
.feature-svg, .scene-svg { width: 100%; height: auto; max-width: 100%; }

@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes slide-in-right {
  0% { transform: translateX(40px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes draw-line {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.orbit-1 { animation: orbit-breathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.orbit-2 { animation: orbit-breathe 8s ease-in-out infinite reverse; transform-box: fill-box; transform-origin: center; }
.bubble-float { animation: float-up 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bubble-float.delay { animation-delay: 1s; }
.slide-in { animation: slide-in-right 1.5s cubic-bezier(.2,.8,.2,1) forwards; }
.draw-path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 2s linear infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
/* factory-contrast-width */
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
@media (min-width: 1440px) {
  [data-fc-1440="paper"] {
    color: #f7f5f3 !important;
    -webkit-text-fill-color: #f7f5f3 !important;
  }
}
