/* ==========================================================================
   DeviceCore — Official Retail Store Management Application
   Brand Palette: Deep Cobalt (#1E3A8A), Slate Ink (#0F172A),
                  Balance Emerald (#059669), Serene Porcelain (#F8FAFC)
   ========================================================================== */

:root {
  --cobalt-900: #1E3A8A;
  --cobalt-600: #2563EB;
  --cobalt-50: #EFF6FF;
  --cobalt-100: #DBEAFE;

  --emerald-600: #059669;
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;

  --amber-600: #D97706;
  --amber-50: #FFFBEB;

  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --porcelain: #F8FAFC;
  --white: #FFFFFF;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1180px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-900);
  background-color: var(--porcelain);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body {
  min-height: 100dvh;
  overflow-x: clip;
  background-image: radial-gradient(circle at 18% 8%, rgba(219, 234, 254, 0.55) 0%, transparent 42%),
                    radial-gradient(circle at 82% 14%, rgba(209, 250, 229, 0.38) 0%, transparent 38%);
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   Floating Architectural Capsule Header
   ========================================================================== */

.top-nav {
  position: sticky;
  top: 0.9rem;
  z-index: 80;
  padding: 0.9rem 1.5rem 0;
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 0.65rem 0 1.1rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--slate-900);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  opacity: 0.9;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  padding: 0.25rem;
  border-radius: 11px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--slate-700);
}

.nav-links a {
  padding: 0.36rem 0.85rem;
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.nav-links a:hover {
  background: var(--white);
  color: var(--cobalt-900);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

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

.nav-platforms {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate-500);
}

.btn-primary-pill {
  background: var(--cobalt-900);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.52rem 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 150ms ease, transform 150ms ease;
}

.btn-primary-pill:hover {
  background: var(--cobalt-600);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO: Split-Stage Editorial & Interactive Orbital Studio
   ========================================================================== */

.hero-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-header {
  text-align: left;
}

.calm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cobalt-900);
  background: var(--white);
  border: 1px solid var(--cobalt-100);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.05);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow: 0 0 0 3px var(--emerald-100);
}

.hero-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.85rem, 4.3vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--slate-900);
  margin-bottom: 1.1rem;
}

.hero-header h1 em {
  font-style: italic;
  color: var(--cobalt-600);
}

.hero-header p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--slate-700);
  max-width: 34rem;
  margin-bottom: 1.65rem;
}

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

.btn-cobalt-lg {
  background: var(--cobalt-900);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.82rem 1.35rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 24px -8px rgba(30, 58, 138, 0.35);
  transition: background 150ms ease, transform 150ms ease;
}

.btn-cobalt-lg:hover {
  background: var(--cobalt-600);
  transform: translateY(-1px);
}

.btn-soft-lg {
  background: var(--white);
  color: var(--slate-900);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.82rem 1.3rem;
  border-radius: 11px;
  border: 1px solid var(--slate-200);
  transition: background 150ms ease, border-color 150ms ease;
}

.btn-soft-lg:hover {
  background: var(--slate-100);
  border-color: #CBD5E1;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--slate-200);
}

.highlight-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.15rem;
}

.highlight-item span {
  display: block;
  font-size: 0.73rem;
  color: var(--slate-500);
  line-height: 1.35;
}

.full {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   CUSTOM ANIMATION STAGE: "The Storefront Orbital Ring & Morphing Studio"
   ========================================================================== */

.orbital-studio {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  box-shadow: 0 24px 52px -16px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--slate-100);
  padding: 0.38rem;
  gap: 0.3rem;
  border-bottom: 1px solid var(--slate-200);
}

.studio-tab {
  padding: 0.6rem 0.5rem;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 160ms ease;
}

.tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-200);
  transition: background 160ms ease;
}

.studio-tab:hover {
  color: var(--slate-900);
}

.studio-tab.active {
  background: var(--white);
  color: var(--cobalt-900);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.studio-tab.active .tab-dot {
  background: var(--emerald-600);
}

.studio-body {
  display: grid;
  grid-template-columns: 228px 1fr;
  align-items: stretch;
  padding: 1.35rem;
  gap: 1.35rem;
}

/* Left Framed Porcelain-Cobalt Orbital Instrument Pod */
.orbital-visual {
  background: linear-gradient(180deg, var(--porcelain) 0%, var(--cobalt-50) 100%);
  border: 1px solid var(--cobalt-100);
  border-radius: 16px;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.orbital-pod-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--slate-500);
}

.pod-step {
  color: var(--cobalt-900);
  background: var(--white);
  border: 1px solid var(--cobalt-100);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

.orbital-svg {
  width: 100%;
  max-width: 204px;
  height: auto;
  margin: 0.25rem 0;
}

.orbital-pod-foot {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--cobalt-100);
  border-radius: 9px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--cobalt-900);
}

.pod-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-600);
}

.cardinal-dot {
  fill: var(--white);
  stroke: var(--slate-200);
  stroke-width: 2.5;
  transition: all 220ms ease;
}

.cardinal-dot.active {
  fill: var(--emerald-600);
  stroke: var(--emerald-100);
  stroke-width: 4;
}

/* Vector Art Scenes inside Orbital Ring */
.vector-art {
  opacity: 0;
  transform: scale(0.92);
  transform-origin: 190px 190px;
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}

.vector-art.active {
  opacity: 1;
  transform: scale(1);
}

/* Gentle Harmonic Levitation Keyframes */
.float-slow {
  animation: levitate-a 4.2s ease-in-out infinite alternate;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

.float-medium {
  animation: levitate-b 3.6s ease-in-out infinite alternate;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

.float-fast {
  animation: levitate-a 3s ease-in-out infinite alternate-reverse;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

.receipt-glide {
  animation: glide-down 3.2s ease-in-out infinite alternate;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

.shield-ripple {
  transform-origin: 190px 190px;
  animation: pulse-ring 2.8s ease-in-out infinite;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

@keyframes levitate-a {
  from { transform: translateY(-4px); }
  to { transform: translateY(5px); }
}

@keyframes levitate-b {
  from { transform: translateY(5px); }
  to { transform: translateY(-5px); }
}

@keyframes glide-down {
  from { transform: translateY(-6px); }
  to { transform: translateY(8px); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(0.96); opacity: 0.35; }
  50% { transform: scale(1.06); opacity: 0.75; }
}

/* Right Scene Cards with @starting-style and transition-behavior: allow-discrete */
.scene-card {
  display: block;
  opacity: 1;
  translate: 0 0;
  transition:
    display 0.32s,
    opacity 0.32s ease-out,
    translate 0.32s ease-out;
  transition-behavior: allow-discrete;
}

@starting-style {
  .scene-card {
    opacity: 0;
    translate: 0 12px;
  }
}

.scene-card:where([hidden], [data-closing]) {
  opacity: 0;
  translate: 0 -10px;
}

.scene-card[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .scene-card {
    translate: none;
    transition-duration: 0.1s;
  }
  @starting-style {
    .scene-card {
      translate: none;
    }
  }
  .scene-card:where([hidden], [data-closing]) {
    translate: none;
  }
}

.scene-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--cobalt-600);
  display: block;
  margin-bottom: 0.3rem;
}

.scene-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.72rem;
  line-height: 1.08;
  color: var(--slate-900);
  margin-bottom: 0.45rem;
}

.scene-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--slate-700);
  margin-bottom: 0.95rem;
}

.clean-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.preview-item {
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 0.62rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.preview-item.highlight-emerald {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
}

.preview-item strong {
  display: block;
  font-size: 0.81rem;
  color: var(--slate-900);
}

.preview-item span {
  font-size: 0.72rem;
  color: var(--slate-500);
}

.price-pill,
.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-900) !important;
  white-space: nowrap;
}

.price-pill.amber {
  color: var(--amber-600) !important;
  background: var(--amber-50);
}

.status-pill.emerald {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
  color: var(--emerald-600) !important;
}

/* ==========================================================================
   CALM SECTIONS: Capabilities, Profit Calculator & Pricing
   ========================================================================== */

.calm-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.section-head p {
  font-size: 0.95rem;
  color: var(--slate-700);
}

.calm-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.calm-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 1.75rem;
}

.calm-icon {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.calm-icon.cobalt {
  background: var(--cobalt-50);
  color: var(--cobalt-900);
}

.calm-icon.emerald {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.calm-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.calm-card p {
  font-size: 0.88rem;
  color: var(--slate-700);
}

/* Single Effortless Profit Calculator Card */
.balance-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.05);
}

.balance-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.75rem;
}

.balance-top h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.1;
}

.slider-control label {
  display: block;
  font-size: 0.88rem;
  color: var(--slate-700);
  margin-bottom: 0.65rem;
}

.slider-control strong {
  font-family: var(--font-mono);
  color: var(--cobalt-600);
}

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

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cobalt-900);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  cursor: pointer;
}

.balance-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bal-box {
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.25rem;
}

.bal-box.emerald-box {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
}

.bal-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-bottom: 0.35rem;
}

.bal-box strong {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--slate-900);
}

.bal-box strong.muted {
  color: var(--amber-600);
}

.bal-box.emerald-box strong {
  color: var(--emerald-600);
}

/* Dynamic Billing Cycle Segmented Control */
.billing-control-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  background: var(--slate-100);
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  gap: 0.25rem;
}

.segmented-label {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.segmented-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.segmented-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Modern child-state-based-styling using :has() */
.segmented-label:has(.segmented-input:checked) .segmented-text {
  background: var(--white);
  color: var(--slate-900);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

@supports not selector(:has(*)) {
  .segmented-label.is-active .segmented-text {
    background: var(--white);
    color: var(--slate-900);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  }
}

.badge-saving {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--emerald-50);
  color: var(--emerald-600);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.price-sub-annual {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--emerald-600);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Simple Pricing Grid */
.calm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.price-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}

.price-box.featured {
  border: 2px solid var(--cobalt-900);
  box-shadow: 0 16px 36px -14px rgba(30, 58, 138, 0.14);
}

.featured-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rec-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  background: var(--emerald-50);
  color: var(--emerald-600);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.price-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.price-sub {
  font-size: 0.84rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.price-figure {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--slate-900);
  padding-block: 1.15rem;
  margin-block: 1.15rem;
  border-block: 1px solid var(--slate-200);
}

.price-figure span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--slate-500);
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--slate-700);
}

.clean-list li::before {
  content: "✓ ";
  color: var(--emerald-600);
  font-weight: 700;
}

/* 1-Row Platform Download Bar */
.platform-bar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.platform-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-700);
}

.platform-buttons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.plat-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  color: var(--slate-900);
  transition: all 140ms ease;
}

.plat-btn:hover {
  background: var(--cobalt-900);
  color: var(--white);
  border-color: var(--cobalt-900);
}

/* Footer */
.calm-footer {
  border-top: 1px solid var(--slate-200);
  padding: 2rem 1.5rem;
  font-size: 0.82rem;
  color: var(--slate-500);
}

.footer-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   PAGE CONTAINER & LAYOUT STANDARDS
   ========================================================================== */
.page-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 1.5rem;
  width: 100%;
}

.section-head.tech-head h2 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

/* ==========================================================================
   AUTHENTIC ENTERPRISE DOWNLOAD INITIATED DIALOG
   ========================================================================== */
.calm-dialog {
  margin: auto;
  max-width: 520px;
  width: calc(100% - 2rem);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  background: var(--white);
  padding: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.calm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.dialog-inner {
  padding: 1.75rem;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.dialog-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--emerald-50);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.dl-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.dl-status-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--emerald-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.close-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 120ms ease;
}

.close-x:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.dl-package-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dl-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt-900);
  flex-shrink: 0;
}

.dl-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.15rem;
}

.dl-package-sub {
  font-size: 0.82rem;
  color: var(--slate-500);
  font-family: var(--font-mono);
}

.dl-progress-bar {
  height: 4px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.dl-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cobalt-900), var(--emerald-600));
  border-radius: 999px;
  animation: progress-slide 1.8s ease-in-out infinite;
}

@keyframes progress-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.dl-prompt-box {
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--slate-700);
}

.dl-prompt-box p {
  margin: 0 0 0.35rem 0;
}

.direct-dl-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cobalt-900);
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
}

.dl-quick-steps {
  border-top: 1px solid var(--slate-200);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}

.dl-steps-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-700);
  display: block;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
}

.dl-steps-list {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--slate-600);
}

.dl-hash-accordion {
  margin-bottom: 1.25rem;
}

.hash-compact-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  gap: 0.5rem;
}

.hash-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--slate-200);
  color: var(--slate-700);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.hash-compact-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
}

.btn-copy-sm {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  transition: all 120ms ease;
  white-space: nowrap;
}

.btn-copy-sm:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn-copy-sm.copied {
  background: var(--emerald-600);
  color: var(--white);
  border-color: var(--emerald-600);
}

.dialog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--slate-200);
  padding-top: 1.25rem;
  gap: 1rem;
}

.btn-ghost-sm {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cobalt-900);
  text-decoration: none;
}

.btn-ghost-sm:hover {
  text-decoration: underline;
}

/* ==========================================================================
   DEDICATED DOWNLOAD & HARDWARE CENTER STYLING
   ========================================================================== */
.active-nav {
  color: var(--cobalt-900) !important;
  font-weight: 600 !important;
  position: relative;
}

.active-nav::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cobalt-900);
  border-radius: 999px;
}

.plat-hub-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cobalt-900);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 140ms ease;
}

.plat-hub-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.download-masthead {
  padding-top: 7rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--porcelain) 100%);
  border-bottom: 1px solid var(--slate-200);
}

.dl-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.dl-intro h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--slate-900);
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}

.dl-intro .lead-text {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Elevated Spotlight Download Card */
.spotlight-deck {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: center;
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.spotlight-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.spotlight-build {
  font-size: 0.8rem;
  color: var(--slate-500);
  font-family: var(--font-mono);
}

.spotlight-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.spotlight-icon-hero {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt-900);
  margin-bottom: 0.25rem;
}

.spotlight-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  margin: 0;
}

.spotlight-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.55;
  max-width: 580px;
  margin: 0;
}

.spotlight-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.spotlight-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2.2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
}

.spotlight-size {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--slate-500);
}

.spotlight-alt-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--slate-600);
}

.spotlight-alt-links a {
  color: var(--cobalt-900);
  text-decoration: underline;
  cursor: pointer;
}

.spotlight-telemetry {
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.spotlight-telemetry-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--slate-700);
}

.spotlight-telemetry-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-copy-hash {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
  white-space: nowrap;
}

.btn-copy-hash:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn-copy-hash.copied {
  background: var(--emerald-600);
  color: var(--white);
  border-color: var(--emerald-600);
}

/* Platforms Deck (4 Grid) */
.platforms-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 180ms ease;
}

.platform-card:hover {
  border-color: var(--slate-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
}

.platform-card.featured-platform {
  border: 2px solid var(--cobalt-900);
  box-shadow: 0 16px 36px -12px rgba(30, 58, 138, 0.12);
}

.p-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.p-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-800);
}

.win-icon { color: #0078D7; }
.android-icon { color: #3DDC84; }
.mac-icon { color: var(--slate-900); }
.linux-icon { color: #E95420; }

.platform-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--slate-900);
}

.p-sub {
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.45;
  margin-bottom: 1rem;
  min-height: 2.6rem;
}

.p-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--slate-500);
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--slate-200);
  flex-wrap: wrap;
}

.p-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.p-actions a.btn-cobalt-lg,
.p-actions a.btn-soft-lg {
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.p-hash-box {
  background: var(--porcelain);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--slate-600);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.p-hash-box code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hardware Section & Grid */
.hardware-section {
  background: var(--white);
  border-block: 1px solid var(--slate-200);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.hardware-card {
  background: var(--porcelain);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.hw-icon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--cobalt-900);
}

.hw-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: var(--slate-700);
}

.hardware-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--slate-900);
}

.hardware-card p {
  font-size: 0.84rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.hw-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--slate-700);
  border-top: 1px solid var(--slate-200);
  padding-top: 0.85rem;
}

.hw-specs li::before {
  content: "• ";
  color: var(--emerald-600);
  font-weight: bold;
}

/* System Specs Table */
.specs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
}

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

.specs-table th {
  background: var(--porcelain);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-200);
}

.specs-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}

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

.specs-table tr:hover td {
  background: rgba(248, 250, 252, 0.6);
}

/* Quickstart 3-Steps */
.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cobalt-900);
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--slate-900);
}

.step-card p {
  font-size: 0.86rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Footer additions */
.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  color: var(--slate-500);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 140ms ease;
}

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

/* Responsive Overrides */
@media (max-width: 1080px) {
  .platforms-deck,
  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .platforms-deck,
  .hardware-grid,
  .quickstart-steps {
    grid-template-columns: 1fr;
  }
  .download-masthead {
    padding-top: 5.5rem;
  }
  .spotlight-deck {
    padding: 1.5rem;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .studio-body,
  .balance-top,
  .balance-results,
  .calm-grid-4,
  .calm-pricing-grid {
    grid-template-columns: 1fr;
  }
  .studio-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links,
  .nav-platforms {
    display: none;
  }
}
