/* ==========================================================================
   SEVE ACCOUNT MANAGEMENT — APPLE SPACE BLACK PRO DESIGN SYSTEM
   Inspired by Apple Pro Hardware & WWDC Fluid Interface Foundations
   ========================================================================== */

:root {
  /* True Apple Space Black Palette (Pitch Black Foundation) */
  --bg-space-black: #000000;
  --bg-deep-carbon: #08080a;
  --bg-card-surface: rgba(255, 255, 255, 0.038);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --bg-glass-nav: rgba(10, 10, 12, 0.78);
  --bg-glass-sheet: rgba(14, 14, 18, 0.94);

  /* Specular Titanium & Bevel Highlights (WWDC Materials) */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.22);
  --border-rim-highlight: rgba(255, 255, 255, 0.14);
  --specular-glow: rgba(255, 255, 255, 0.05);

  /* Typography Colors (Apple Pro Spectrum) */
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #515156;
  --text-inverse: #000000;

  /* Accents */
  --accent-apple-blue: #2997ff;
  --accent-emerald: #30d158;
  --accent-cyan: #64d2ff;
  --accent-amber: #ffd60a;
  --accent-red: #ff453a;
  --accent-amazon-orange: #ff9900;

  /* Spring Physics & Motion Timings (WWDC Designing Fluid Interfaces) */
  --spring-quick: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-smooth: cubic-bezier(0.25, 1, 0.5, 1);

  /* Spacing & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   Reset & Base Typography (Apple SF Pro Spec & System Fonts)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-space-black);
  color-scheme: dark;
  overflow-x: clip;
}

body.space-black-theme {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-optical-sizing: auto;
  background-color: var(--bg-space-black);
  color: var(--text-primary);
  line-height: 1.54;
  letter-spacing: -0.005em;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  color-scheme: dark;
}

/* Optical Sizing, Sized Tracking & Inverted Leading (Apple Design Typography) */
h1, .hero-headline {
  letter-spacing: -0.034em;
  line-height: 1.10;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
}

h2, .section-title {
  letter-spacing: -0.026em;
  line-height: 1.15;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
}

h3, .stage-heading, .sheet-title {
  letter-spacing: -0.020em;
  line-height: 1.22;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
}

.section-tag, .stage-tag, .sheet-badge, .cta-pretitle {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-optical-sizing: auto;
}

/* --------------------------------------------------------------------------
   Universal Zero-Scrollbar Architecture (All Browsers & All Devices)
   Completely removes visible vertical/horizontal scrollbars while preserving 100% fluid scroll
   -------------------------------------------------------------------------- */
html,
body,
* {
  /* Firefox */
  scrollbar-width: none !important;
  /* IE 10+ and Edge Legacy */
  -ms-overflow-style: none !important;
}

/* Chrome, Opera, Opera GX, Edge, Safari, WebKit */
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  display: none !important;
}

::-webkit-scrollbar-track {
  display: none !important;
}

::-webkit-scrollbar-corner {
  display: none !important;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.font-mono {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Ambient Atmosphere & Grid Mesh
   -------------------------------------------------------------------------- */
.ambient-canvas-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  transition: transform 800ms var(--spring-smooth);
}

.orb-primary {
  top: -15%;
  left: 20%;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.35) 0%, rgba(5, 5, 7, 0) 70%);
}

.orb-secondary {
  top: 40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.18) 0%, rgba(5, 5, 7, 0) 70%);
}

.subtle-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 25%, black 40%, transparent 80%);
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section-wrapper {
  padding: clamp(40px, 5vh, 58px) 0;
  position: relative;
  scroll-margin-top: 72px;
}

.section-header {
  margin-bottom: 26px;
}

.section-header.text-center {
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 0.80rem;
  letter-spacing: 0.12em;
  color: var(--accent-apple-blue);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.16;
  color: #f5f5f7;
  margin-bottom: 8px;
}

/* Simulator Headline (Scaled up to match the wide 1140px card presence) */
#simulator .section-header {
  margin-bottom: 30px;
}

#simulator .section-tag {
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  font-weight: 700;
}

#simulator .section-title {
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.034em;
  color: #ffffff;
  line-height: 1.14;
}

.section-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Translucent Dynamic Glass Navigation (macOS/iOS Style)
   -------------------------------------------------------------------------- */
.glass-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 20px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.header-container {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  height: 52px;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--border-rim-highlight);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 0 16px;
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  user-select: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 153, 0, 0.22));
  transition: transform 180ms var(--spring-quick);
}

.brand-identity:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-divider-line {
  width: 1px;
  height: 16px;
  background-color: var(--border-focus);
}

.brand-consulting-badge {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.60rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(10, 11, 16, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nav-item {
  position: relative;
  z-index: 2;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: color 180ms ease;
}

.nav-item:hover {
  color: #ffffff;
}

.nav-item.active {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* Obsidian Glass Sliding Indicator Pill */
.nav-indicator-pill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(22, 24, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 16px rgba(255, 255, 255, 0.04);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: transform, width;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              width 320ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 200ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 0;
  padding-right: 0;
}

#openTelemetryQuick {
  padding: 0 14px;
  height: 38px;
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

#ctaHeaderButton {
  height: 38px;
  padding: 0 16px;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Apple Style Buttons & Physics Feedback
   Rule: Immediate feedback on pointer-down (:active), scale 0.97
   -------------------------------------------------------------------------- */
.btn-apple-primary,
.btn-apple-secondary,
.btn-apple-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  border: none;
  outline: none;
  position: relative;
  transition: transform 120ms var(--spring-quick), background-color 150ms ease, box-shadow 150ms ease;
}

.btn-apple-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-apple-primary:hover {
  background: #f0f0f2;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.25);
}

.btn-apple-primary:active {
  transform: scale(0.96);
  background: #e1e1e4;
}

.btn-apple-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-apple-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
}

.btn-apple-secondary:active {
  transform: scale(0.96);
}

.btn-apple-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-apple-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-focus);
}

.btn-apple-ghost:active {
  transform: scale(0.96);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 200ms var(--spring-quick);
}

.btn-apple-primary:hover .arrow-icon {
  transform: translateX(3px);
}

.inline-svg {
  width: 18px;
  height: 18px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-glow 2s infinite;
}

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

/* --------------------------------------------------------------------------
   Hero Section (Apple Pro Wide Typography & Full Space Utilization)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 92px;
  padding-bottom: 28px;
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  position: relative;
}

.hero-layout {
  display: block;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-weight: 500;
  backdrop-filter: blur(12px);
}

.badge-spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amazon-orange);
  box-shadow: 0 0 8px var(--accent-amazon-orange);
}

.hero-headline {
  font-size: clamp(2.05rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f5f5f7;
  margin-bottom: 14px;
  text-align: left;
  max-width: 1100px;
}

.headline-gradient {
  background: linear-gradient(180deg, #ffffff 30%, #98989f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.54;
  letter-spacing: -0.01em;
  max-width: 860px;
  margin-bottom: 22px;
  text-align: left;
}

.hero-subtext strong,
.hero-subtext em {
  color: var(--text-primary);
  font-style: normal;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-cta-group .btn-large {
  padding: 11px 24px;
  font-size: 0.9rem;
}

.hero-pillars {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 980px;
}

.pillar-item {
  flex: 1;
  text-align: left;
}

.pillar-number {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  margin-bottom: 3px;
}

.pillar-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.34;
}

.pillar-divider {
  width: 1px;
  height: 34px;
  background-color: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Investment & Return Simulator (Interactive & Spring Physics)
   -------------------------------------------------------------------------- */
#simulator {
  padding-top: clamp(12px, 2.2vh, 24px);
  padding-bottom: clamp(14px, 2.5vh, 28px);
  scroll-margin-top: 56px;
}

#simulator .section-header {
  margin-bottom: 10px;
}

#simulator .section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin-bottom: 2px;
}

.simulator-card-container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 24px 28px 20px 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.simulator-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1.14fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.sim-grid-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.sim-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sim-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sim-label {
  font-size: 0.90rem;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.015em;
}

.sim-value-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 14px;
  min-width: 102px;
  text-align: center;
  border-radius: var(--radius-full);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: font-size 100ms ease-out, padding 100ms ease-out, min-width 100ms ease-out, box-shadow 100ms ease-out;
}

/* Apple Range Slider - Fixed Track Geometry */
.range-track-wrap {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
}

.range-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 1;
}

.range-progress {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: linear-gradient(90deg, #2997ff 0%, #ffffff 100%);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 12px rgba(41, 151, 255, 0.45);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  outline: none;
  position: relative;
  z-index: 3;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.6);
  cursor: grab;
  margin-top: -9px;
  transition: transform 120ms var(--spring-quick);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.15);
  cursor: grabbing;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  cursor: grab;
}

.range-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* Market Wheel Carousel (Apple Pro 3-Card Reel) */
.sim-market-active-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 200ms ease;
}

.market-carousel-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px 10px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.carousel-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 150ms var(--spring-quick);
  outline: none;
}

.carousel-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.carousel-arrow-btn:active {
  transform: scale(0.92);
}

.carousel-arrow-btn svg {
  width: 13px;
  height: 13px;
}

.market-stage {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  padding: 2px 0;
}

.market-track {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  will-change: transform;
}

.market-item {
  flex: 0 0 calc((100% - 12px) / 3);
  max-width: calc((100% - 12px) / 3);
  min-width: calc((100% - 12px) / 3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 320ms cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 220ms ease, 
              border-color 220ms ease, 
              box-shadow 220ms ease;
}

.market-item:active {
  transform: scale(0.92);
}

.slot-left,
.slot-right {
  opacity: 0.42;
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.slot-left:hover,
.slot-right:hover {
  opacity: 0.9;
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.slot-center,
.market-item.active {
  opacity: 1;
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: default;
}

.slot-center:hover,
.market-item.active:hover {
  transform: scale(1.04);
}

.flag-icon-wrap {
  width: 40px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.market-flag-svg {
  width: 38px;
  height: 25px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  display: block;
  pointer-events: none;
}

.market-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
}

.slot-left .market-name,
.slot-right .market-name {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.77rem;
}

.slot-center .market-name,
.market-item.active .market-name {
  color: #ffffff;
  font-weight: 600;
}

/* Pagination Dots */
.market-dots-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
}

.m-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 200ms var(--spring-quick);
  cursor: pointer;
}

.m-dot.active {
  width: 16px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Simulator Profit Margin Card (Kâr Marjı Kartı - %22 Sabit Ortalama Marj)
   -------------------------------------------------------------------------- */
.sim-profit-card {
  height: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.sim-profit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 209, 88, 0.45), rgba(41, 151, 255, 0.35), transparent);
  pointer-events: none;
}

.profit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profit-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profit-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.015em;
}

.profit-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.28);
  color: #30d158;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 6px rgba(48, 209, 88, 0.15);
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition: transform 180ms var(--spring-quick), border-color 180ms ease;
}

.profit-badge-pill:hover {
  transform: scale(1.02);
  border-color: rgba(48, 209, 88, 0.45);
}

.margin-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profit-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profit-metric-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 74px;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.profit-metric-box.primary {
  border-color: rgba(48, 209, 88, 0.2);
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
  box-shadow: inset 0 1px 0 rgba(48, 209, 88, 0.1);
}

.profit-metric-box .metric-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.profit-metric-box .metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-height: 38px;
}

.profit-metric-box .metric-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  transition: font-size 100ms ease-out, text-shadow 100ms ease-out;
}

.profit-metric-box.primary .metric-val {
  color: #30d158;
  text-shadow: 0 0 14px rgba(48, 209, 88, 0.28);
}

.profit-metric-box .metric-period {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.profit-metric-box .metric-subtext {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Dynamic Return Bar */
.profit-bar-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.profit-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.70rem;
}

.bar-caption {
  color: var(--text-secondary);
  font-weight: 500;
}

.bar-ratio-tag {
  color: #f5f5f7;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  font-size: 0.74rem;
}

.profit-bar-track {
  position: relative;
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
}

.profit-bar-fill {
  height: 100%;
  transition: width 200ms var(--spring-quick);
}

.profit-bar-fill.base-capital {
  background: linear-gradient(90deg, #2997ff, #64d2ff);
  box-shadow: 0 0 6px rgba(41, 151, 255, 0.35);
}

.profit-bar-fill.net-margin {
  background: linear-gradient(90deg, #30d158, #34c759);
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.45);
}

.profit-bar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.profit-bar-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profit-bar-legend .legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.profit-bar-legend .legend-dot.capital {
  background-color: var(--accent-apple-blue);
  box-shadow: 0 0 5px rgba(41, 151, 255, 0.6);
}

.profit-bar-legend .legend-dot.profit {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 5px rgba(48, 209, 88, 0.6);
}

.profit-country-note {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}

.profit-country-note svg {
  flex-shrink: 0;
  color: var(--accent-apple-blue);
}

.profit-country-note strong {
  color: #f5f5f7;
}

/* Simulator Action Footer */
.sim-action-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#simApplyBtn {
  height: 44px;
  font-size: 0.90rem;
  padding: 0 26px;
}

.sim-footer-note {
  font-size: 0.70rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.25;
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   5-Stage Done-For-You Architecture (Interactive Scrubber)
   -------------------------------------------------------------------------- */
.dfy-interactive-showcase {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-card-surface);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--border-rim-highlight);
}

.dfy-steps-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.dfy-step-btn {
  background: transparent;
  border: none;
  padding: 16px 14px 15px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  transition: background-color 200ms ease;
  user-select: none;
}

.dfy-step-btn:last-of-type {
  border-right: none;
}

.dfy-step-btn .step-num {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 200ms ease, text-shadow 200ms ease;
}

.dfy-step-btn .step-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.28;
  letter-spacing: -0.015em;
  transition: color 200ms ease, font-weight 200ms ease;
}

.dfy-step-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.025);
}

.dfy-step-btn:hover:not(.active) .step-title {
  color: var(--text-primary);
}

.dfy-step-btn:hover:not(.active) .step-num {
  color: var(--text-secondary);
}

.dfy-step-btn.active {
  background: rgba(255, 255, 255, 0.05);
}

.dfy-step-btn.active .step-num {
  color: var(--accent-apple-blue);
  text-shadow: 0 0 8px rgba(41, 151, 255, 0.4);
}

.dfy-step-btn.active .step-title {
  color: #ffffff;
  font-weight: 700;
}

/* Disable static pseudo-element indicator */
.dfy-step-btn::after {
  display: none !important;
}

/* Fluid Sliding Active Indicator */
.dfy-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2997ff 0%, #64d2ff 100%);
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.75), 0 0 20px rgba(41, 151, 255, 0.35);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 10;
  will-change: transform, width;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), width 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dfy-stage-viewport {
  padding: 24px 32px;
  position: relative;
  min-height: 220px;
}

.stage-slide {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms var(--spring-quick), transform 250ms var(--spring-quick);
}

.stage-slide.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.stage-info {
  display: flex;
  flex-direction: column;
}

.stage-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-apple-blue);
  font-weight: 700;
  margin-bottom: 5px;
  display: inline-block;
}

.stage-heading {
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.stage-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.54;
  margin-bottom: 0;
}

.stage-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.stage-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 11px 16px;
  transition: all 160ms var(--spring-quick);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stage-checklist li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(3px);
}

.stage-checklist li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Stage Visual Cards */
.visual-card-apple {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.vcard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.vcard-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.entity-badge {
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.badge-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.badge-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.metric-row strong {
  color: #ffffff;
}

.metric-row.highlight strong {
  font-size: 1.05rem;
}

.divider-subtle {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

/* Algo Bar Groups */
.algo-bar-group {
  margin-bottom: 10px;
}

.algo-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.bar-bg {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent-apple-blue);
  border-radius: 3px;
}

.bar-fill.emerald { background: var(--accent-emerald); }
.bar-fill.cyan { background: var(--accent-cyan); }

/* Prep Flow Diagram */
.prep-flow {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.pstep {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.pstep.active {
  background: rgba(41, 151, 255, 0.12);
  border-color: rgba(41, 151, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
}

.pstep.end {
  background: rgba(48, 209, 88, 0.08);
  border-color: rgba(48, 209, 88, 0.2);
  color: var(--accent-emerald);
}

.parrow {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* Gauge Display */
.gauge-display {
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.gauge-score {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.gauge-label {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.gauge-status {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Comparison Matrix - Apple-Style ScrollTrigger Pinned Scrub
   -------------------------------------------------------------------------- */
.comparison-pinned-track {
  position: relative;
  width: 100%;
  height: auto;
  padding: clamp(50px, 6vh, 80px) 0;
  background: transparent;
  box-sizing: border-box;
}

.comparison-sticky-stage {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 0 16px;
  overflow: visible;
  z-index: 10;
}

.comparison-sticky-stage .section-container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comparison-sticky-stage .section-header {
  margin-bottom: 24px;
}

.comparison-sticky-stage .section-title {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  margin-bottom: 4px;
}

.comparison-sticky-stage .section-description {
  font-size: 0.84rem;
  max-width: 580px;
  margin: 0 auto;
}

/* Comparison Table Layout (Apple Open Compare Canvas) */
.comparison-table-wrapper {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.apple-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.apple-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.apple-table th {
  padding: 16px 20px 16px 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: none;
}

.apple-table th:last-child {
  padding-right: 0;
}

.apple-table th.highlight-col {
  background: transparent;
  color: var(--accent-apple-blue);
  border: none;
  font-weight: 700;
}

.apple-table td {
  padding: 12px 20px 12px 0;
  font-size: 0.86rem;
  line-height: 1.42;
  border: none;
  vertical-align: middle;
  height: 52px; /* Fixed height guarantees zero layout jump */
  box-sizing: border-box;
}

.apple-table td:last-child {
  padding-right: 0;
}

.col-metric {
  width: 25%;
  font-weight: 600;
  color: var(--text-secondary);
}

.col-bad {
  width: 37.5%;
}

.col-good {
  width: 37.5%;
}

.apple-table td.highlight-cell,
.apple-table td:last-child {
  background: transparent;
  border: none;
}

/* Row Separator - Ultra Clean Horizontal Divider */
.comp-row {
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 500ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 300ms ease;
}

.comp-row.has-revealed {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.comp-row.row-active {
  background: rgba(41, 151, 255, 0.02);
}

.comp-row.row-completed {
  background: transparent;
}

/* Individual Cell Reveal Animation - Ultra Crisp Native Typography */
.comp-cell-content {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
              color 200ms ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.comp-cell-content.is-revealed {
  opacity: 1;
  transform: none; /* Completely releases GPU texture layer -> 100% native monitor sharpness */
}

.comp-cell-content.text-bad {
  color: #8e8e93;
}

.comp-cell-content.text-good {
  color: #f5f5f7;
  font-weight: 600;
}

.comp-cell-content.text-good.is-revealed {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(48, 209, 88, 0.28);
}

.comp-cell-content.is-latest {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Frequently Asked Questions (Apple Accordion with Fluid Materials)
   -------------------------------------------------------------------------- */
.accordion-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card-surface);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 300ms ease, background 320ms ease, box-shadow 340ms var(--spring-quick);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.faq-item.active {
  border-color: rgba(41, 151, 255, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(18, 20, 28, 0.96) 100%);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 24px rgba(41, 151, 255, 0.08);
}

.faq-trigger {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  user-select: none;
  outline: none;
  transition: transform 120ms ease-out;
}

.faq-trigger:active {
  transform: scale(0.995);
}

.faq-question {
  font-size: 0.93rem;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.015em;
  transition: color 200ms ease;
}

.faq-item.active .faq-question,
.faq-trigger:hover .faq-question {
  color: #ffffff;
}

.faq-icon-cross {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  flex-shrink: 0;
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 240ms ease, 
              border-color 240ms ease,
              box-shadow 240ms ease;
}

.faq-icon-cross::before,
.faq-icon-cross::after {
  content: "";
  position: absolute;
  background: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1px;
  transition: transform 300ms var(--spring-quick);
}

.faq-icon-cross::before {
  width: 12px;
  height: 2px;
}

.faq-icon-cross::after {
  width: 2px;
  height: 12px;
}

.faq-trigger:hover .faq-icon-cross {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.faq-item.active .faq-icon-cross {
  transform: rotate(45deg);
  background: rgba(41, 151, 255, 0.22);
  border-color: rgba(41, 151, 255, 0.5);
  box-shadow: 0 0 14px rgba(41, 151, 255, 0.35);
}

.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  will-change: max-height, opacity, transform;
  transition: max-height 380ms cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 300ms ease, 
              transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer-wrap {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer-inner {
  padding: 0 24px 22px 24px;
  font-size: 0.88rem;
  color: #a1a1a6;
  line-height: 1.62;
  letter-spacing: -0.01em;
}

.faq-answer-inner strong {
  color: #ffffff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Final CTA Banner
   -------------------------------------------------------------------------- */
.cta-final-wrapper {
  padding-bottom: 36px;
}

.cta-banner-card {
  max-width: 860px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 0%, rgba(41, 151, 255, 0.15) 0%, rgba(12, 14, 20, 0.9) 80%);
  border: 1px solid var(--border-focus);
  border-radius: 20px;
  padding: 34px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-glow-element {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 100px;
  background: rgba(41, 151, 255, 0.3);
  filter: blur(60px);
  pointer-events: none;
}

.cta-pretitle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-apple-blue);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.cta-headline {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 10px auto;
}

.cta-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

.cta-btn-row {
  display: flex;
  justify-content: center;
}

.cta-banner-card .btn-large {
  padding: 10px 24px;
  height: 44px;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.glass-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px);
  padding: 36px 0 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 153, 0, 0.25));
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-mission {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 300px;
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.fcol-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.fcol-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fcol-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 150ms ease;
}

.fcol-links a:hover {
  color: #ffffff;
}

.contact-line {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.status-pill-small {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent-emerald);
  background: rgba(48, 209, 88, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Interruptible Draggable Sheet (Apple Fluid Modal)
   Adheres to: 1:1 Pointer Tracking, setPointerCapture, Springs, Velocity Dismiss
   -------------------------------------------------------------------------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--spring-quick);
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-container {
  width: 100%;
  max-width: 680px;
  background: var(--bg-glass-sheet);
  border: 1px solid var(--border-focus);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  will-change: transform;
  touch-action: none;
  overflow: hidden;
}

.sheet-backdrop.open .sheet-container {
  transform: translateY(0);
}

.sheet-grabber-area {
  padding: 10px 0 6px 0;
  display: flex;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.sheet-grabber-area:active {
  cursor: grabbing;
}

.sheet-grab-bar {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  transition: background-color 150ms ease, transform 150ms ease;
}

.sheet-grabber-area:hover .sheet-grab-bar {
  background: rgba(255, 255, 255, 0.45);
}

.sheet-content-scroll {
  padding: 4px 28px 20px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sheet-content-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sheet-header {
  margin-bottom: 12px;
}

.sheet-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.sheet-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 153, 0, 0.25));
}

.sheet-badge {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent-apple-blue);
  font-weight: 700;
  margin-bottom: 0;
}

.sheet-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 3px;
}

.sheet-desc {
  font-size: 0.80rem;
  color: var(--text-secondary);
  line-height: 1.38;
}

/* Form Controls */
.sheet-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-primary);
}

.apple-input,
.apple-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
}

.apple-input {
  height: 38px;
}

.apple-input:focus,
.apple-textarea:focus {
  border-color: var(--accent-apple-blue);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.budget-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.budget-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 120ms var(--spring-quick);
}

.budget-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.budget-pill-btn.active {
  background: rgba(41, 151, 255, 0.15);
  border-color: var(--accent-apple-blue);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(41, 151, 255, 0.2);
}

.budget-pill-btn:active {
  transform: scale(0.97);
}

.form-privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.70rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.privacy-lock-icon {
  width: 13px;
  height: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.form-submit-row {
  margin-top: 2px;
}

.form-submit-row .btn-large {
  height: 42px;
  font-size: 0.88rem;
  padding: 8px 20px;
}

/* Staggered Apple Spring Entrance for Lead Sheet Form Elements */
.sheet-form .form-row-2,
.sheet-form > .form-group,
.form-privacy-note,
.form-submit-row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.sheet-container.sheet-active .sheet-form .form-row-2:nth-of-type(1) {
  opacity: 1;
  transform: none;
  transition-delay: 140ms;
}

.sheet-container.sheet-active .sheet-form .form-row-2:nth-of-type(2) {
  opacity: 1;
  transform: none;
  transition-delay: 220ms;
}

.sheet-container.sheet-active .sheet-form > .form-group {
  opacity: 1;
  transform: none;
  transition-delay: 300ms;
}

.sheet-container.sheet-active .form-privacy-note {
  opacity: 1;
  transform: none;
  transition-delay: 380ms;
}

.sheet-container.sheet-active .form-submit-row {
  opacity: 1;
  transform: none;
  transition-delay: 440ms;
}



/* Success View */
.sheet-success-view {
  text-align: center;
  padding: 40px 10px 20px 10px;
}

.sheet-success-view.hidden {
  display: none;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.success-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.success-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 28px auto;
}

/* --------------------------------------------------------------------------
   Responsive Layout & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav-item {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
  .brand-consulting-badge,
  .brand-divider-line {
    display: none;
  }
}

@media (max-width: 960px) {
  #openTelemetryQuick {
    display: none;
  }
  .nav-item {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .simulator-card-container {
    padding: 16px 18px;
  }

  .dfy-steps-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .stage-slide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .criteria-card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .glass-header {
    top: 8px;
    padding: 0 12px;
  }

  .header-container {
    height: 48px;
    padding: 0 12px;
  }

  .hero-section {
    padding-top: 74px;
    padding-bottom: 24px;
    min-height: auto;
  }

  .hero-pillars {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .pillar-divider {
    display: none;
  }

  .cockpit-stats-grid {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }

  .dfy-steps-nav {
    grid-template-columns: 1fr;
  }

  .dfy-step-btn {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .dfy-stage-viewport {
    padding: 14px 12px;
    min-height: auto;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .budget-options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .sheet-container {
    max-height: 96vh;
  }

  .sheet-content-scroll {
    padding: 4px 16px 20px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .simulator-card-container {
    padding: 14px 14px 12px 14px;
    max-width: 100%;
  }

  .sim-profit-card {
    height: auto;
    padding: 10px 12px;
    gap: 7px;
  }

  .profit-metric-box {
    padding: 6px 9px;
  }

  .profit-metric-box .metric-val {
    font-size: 1.15rem;
  }

  .profit-title {
    font-size: 0.78rem;
  }

  .profit-badge-pill {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  .comparison-pinned-track {
    padding: 60px 0 80px 0;
    height: auto;
  }

  .comparison-sticky-stage {
    position: relative;
    padding: 0 8px;
    height: auto;
    overflow: visible;
  }

  .comparison-sticky-stage .section-header {
    margin-bottom: 6px;
  }

  .comparison-sticky-stage .section-description {
    display: none;
  }

  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .apple-table {
    min-width: 580px;
  }

  .apple-table th,
  .apple-table td {
    padding: 6px 8px;
    font-size: 0.68rem;
    line-height: 1.25;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion, Reduced Transparency, High Contrast
   (Adheres to apple-design Skill Section 14)
   -------------------------------------------------------------------------- */


@media (prefers-reduced-transparency: reduce) {
  .header-container,
  .nav-links,
  .nav-indicator-pill,
  .simulator-card-container,
  .sim-profit-card,
  .dfy-interactive-showcase,
  .faq-item,
  .cta-banner-card,
  .glass-footer,
  .sheet-container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #0c0d12 !important;
  }
}

@media (prefers-contrast: more) {
  .header-container,
  .simulator-card-container,
  .sim-profit-card,
  .dfy-interactive-showcase,
  .faq-item,
  .cta-banner-card,
  .sheet-container {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
  }

  .text-secondary,
  .metric-subtext,
  .hero-subtext,
  .section-description {
    color: #d1d1d6 !important;
  }
}

/* ==========================================================================
   SEVE APPLE GLYPH PORTAL APERTURE — SCROLL-DRIVEN CAMERA INTO "E"
   Pitch Black Background (#000000) with Mathematical SVG Vector Typography
   Zooming directly into the top-left corner of the letter 'E'
   ========================================================================== */
.hero-portal-runway {
  position: relative;
  width: 100%;
  background-color: transparent;
}

.hero-portal-sticky {
  position: relative;
  width: 100%;
}

.hero-portal-sticky .hero-section {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* The Fixed Aperture Intro Curtain Overlay */
.seve-portal-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  pointer-events: auto;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  will-change: opacity;
}

.seve-portal-curtain.intro-done {
  display: none !important;
  pointer-events: none !important;
}

.seve-portal-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  overflow: visible;
}

/* Pure Mathematical Vector Geometry: Infinite resolution, zero raster pixelation */
.seve-curtain-geometry,
.seve-letters-geometry {
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}

#cameraGroup {
  transform-origin: 500px 250px;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#portalWhiteLetters {
  will-change: opacity;
}

#portalLettersOutline {
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

#portalLettersBeam {
  pointer-events: none;
  vector-effect: non-scaling-stroke;
  will-change: opacity;
}

/* Discovery Hint Pill hidden for clean auto-play cinematic intro */
.seve-portal-hint {
  display: none !important;
}

/* ==========================================================================
   LIVING TYPOGRAPHY & SEQUENTIAL DIGIT TICKER SYSTEM
   Fluid handwriting stream, animated cards, and precision digit rolling
   ========================================================================== */
.type-word {
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
}

.type-char {
  display: inline-block;
  vertical-align: baseline;
  line-height: inherit;
  opacity: 0;
  transform: translateY(4px);
  filter: blur(1px);
  will-change: opacity, transform, filter;
  transition: 
    opacity 120ms ease-out, 
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1), 
    filter 110ms ease;
}

.type-char.typed {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  will-change: auto !important;
}

/* Ensure gradient text clips seamlessly on .headline-gradient characters */
.headline-gradient {
  display: inline;
  vertical-align: baseline;
}

.headline-gradient .type-word,
.headline-gradient .type-char {
  background: linear-gradient(180deg, #ffffff 30%, #98989f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Fluid Card Surface Spring Entrance */
.live-entry-card {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.live-entry-card.card-revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Fluid Button Spring Entrance */
.live-entry-btn {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
  transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1), transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.live-entry-btn.btn-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Number Ticker Glow Pulse during active counting */
.number-ticker-active {
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

/* Simulator Active Rolling Number Styles */
.sim-rolling {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(48, 209, 88, 0.45), 0 0 28px rgba(41, 151, 255, 0.35) !important;
  will-change: contents;
}

#simNetProfitDisplay.sim-rolling {
  color: #30d158 !important;
  text-shadow: 0 0 20px rgba(48, 209, 88, 0.75), 0 0 36px rgba(48, 209, 88, 0.4) !important;
}

#capitalDisplay.sim-rolling {
  border-color: rgba(41, 151, 255, 0.65) !important;
  box-shadow: 0 0 18px rgba(41, 151, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

#simProfitRatioTag.sim-rolling {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(41, 151, 255, 0.5) !important;
}




