:root {
  --bg-canvas: #0d2a33;
  --bg-surface: #133a46;
  --bg-surface-hover: #184755;
  --text-primary: #e0f2f1;
  --text-muted: #8ca3a8;
  --accent-primary: #ff6f59;
  --accent-secondary: #e28475;
  --border-subtle: #204c5a;
  --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", Roboto, -apple-system, sans-serif;
  --space-unit: 8px;
  --ease-kinetic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 250ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.75;
  font-size: 1.05rem;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease-kinetic);
}

a:hover, a:focus-visible {
  color: #ff9282;
  text-decoration: underline;
}

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

.site-header {
  position: static;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 1.25rem 2rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-primary);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-desktop a:hover, .nav-desktop a.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.nav-mobile-dropdown {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.nav-mobile-dropdown.open {
  display: flex;
}

.nav-mobile-dropdown a {
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-weight: 600;
}

.main-content {
  flex: 1 0 auto;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero-telemetry {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3.5rem 2.5rem;
  margin-bottom: 3rem;
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 111, 89, 0.12) 0%, transparent 55%);
}

.telemetry-meta {
  font-family: var(--font-display);
  color: var(--accent-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

.hero-telemetry h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.hero-telemetry p {
  font-size: 1.15rem;
  max-width: 68ch;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-primary);
  color: #0d2a33 !important;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: transform var(--duration) var(--ease-kinetic), background-color var(--duration) var(--ease-kinetic);
  text-decoration: none;
}

.pill-button:hover, .pill-button:focus-visible {
  background-color: #ff8875;
  transform: translateY(-2px);
  text-decoration: none;
}

.pill-button-secondary {
  background-color: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
}

.pill-button-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--accent-primary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-6 { grid-column: span 6; }
.bento-col-4 { grid-column: span 4; }

.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--duration) var(--ease-kinetic);
}

.bento-card:hover {
  border-color: var(--accent-secondary);
}

.card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #081a20;
}

.card-media.tall {
  height: 320px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent-primary);
  color: #0d2a33;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h2, .card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background-color: #0d252d;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.spec-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-head {
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
}

.section-head h2 {
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: #0b2229;
  color: var(--accent-primary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--bg-surface-hover);
}

.calculator-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-primary);
}

select, input, textarea {
  background-color: #0a1f26;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.95rem;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.calc-result-box {
  background-color: #081a20;
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #c4e4e2;
}

.accordion-item {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  margin-bottom: 0.75rem;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-trigger:hover {
  background-color: var(--bg-surface-hover);
}

.accordion-symbol {
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.accordion-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: #091f26;
  padding: 3.5rem 2rem 2rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: var(--accent-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .bento-col-8, .bento-col-6, .bento-col-4 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .site-header {
    padding: 1rem 1.25rem;
  }
  .hero-telemetry {
    padding: 2rem 1.5rem;
  }
  .spec-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
