:root {
  --bg-canvas: #fbf1f0;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #fef7f6;
  --bg-surface-hover: #f7e8e7;
  --text-primary: #1c1917;
  --text-muted: #57534e;
  --accent-primary: #6b2155;
  --accent-hover: #500724;
  --accent-light: #f3d8e6;
  --accent-soft: rgba(107, 33, 85, 0.08);
  --border-subtle: #ebdcdb;
  --border-strong: #d6b8be;
  --code-text: #6b2155;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 14px 34px -6px rgba(107, 33, 85, 0.12), 0 4px 12px -2px rgba(28, 25, 23, 0.06);
  --glow-accent: 0 0 24px -4px rgba(107, 33, 85, 0.35);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(107, 33, 85, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(107, 33, 85, 0.05) 0%, transparent 40%);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mono {
  font-family: var(--font-mono);
}

/* Header & Floating Navigation */
.site-header {
  position: static;
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto 1rem;
  padding: 0 1.25rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 24px -4px rgba(107, 33, 85, 0.08);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--accent-primary);
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
}

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

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding: 0.25rem 0;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--accent-primary);
  padding: 0 0.5rem;
  line-height: 1;
}

.mobile-nav-panel {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-elevation);
}

.mobile-nav-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-panel a {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent-primary);
  text-decoration: none;
}

/* Main Container & Sectioning */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2rem 0 4rem;
}

.hero-content h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  color: var(--accent-primary);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.btn-secondary:hover::after {
  width: 100%;
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-elevation);
  position: relative;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.95rem;
}

.telemetry-row:last-child {
  border-bottom: none;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-primary);
}

/* Sections */
.section-block {
  margin-bottom: 5rem;
}

.section-header {
  margin-bottom: 2rem;
  max-width: 68ch;
}

.section-header h2 {
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

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

/* Structured Two-Column Benchmark Grid */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.vault-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

.vault-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-category-badge {
  position: absolute;
  bottom: -14px;
  left: 1.5rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(107, 33, 85, 0.3);
  z-index: 2;
}

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

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

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

.card-metrics {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.card-metrics .metric-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.card-metrics .metric-item:last-child {
  margin-bottom: 0;
}

/* Interactive Pricing Slider Container */
.interactive-calc {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevation);
  margin-top: 1.5rem;
}

.slider-container {
  margin: 2rem 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: var(--border-strong);
  height: 8px;
  border-radius: 4px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(107, 33, 85, 0.4);
}

.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.calc-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.calc-box .title {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.calc-box .price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 0.4rem 0;
  font-family: var(--font-mono);
}

/* Cryptographic Table */
.table-responsive {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: var(--bg-surface-elevated);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

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

/* Editorial Content Styles */
.editorial-body {
  max-width: 72ch;
  margin: 0 auto;
}

.editorial-body p {
  margin-bottom: 1.35rem;
  color: var(--text-primary);
  font-size: 1.08rem;
}

.editorial-body h2 {
  font-size: 1.85rem;
  color: var(--accent-primary);
  margin: 2.25rem 0 1rem;
}

.editorial-body h3 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}

.editorial-body ul, .editorial-body ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-primary);
}

.editorial-body li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.03);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 76ch;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent-primary);
  transition: transform 0.3s var(--ease-kinetic);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* Contact Message Builder */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-elevation);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
  color: var(--text-primary);
}

.form-control:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.output-console {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  min-height: 160px;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

/* Scroll reveal utility */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer (strictly standardized) */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.25rem 2.5rem;
  margin-top: auto;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 44ch;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

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

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

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

.footer-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-column-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .nav-toggle-btn {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.15rem;
  }
}

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