/* ═══ STRATOS 2.0 GLOBAL STYLES ═══ */
:root {
  --bg-dark: #09090b;
  /* Obsidian black */
  --bg-card: #18181b;
  /* Zinc 900 */
  --bg-card-hover: #27272a;
  /* Zinc 800 */
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  /* Zinc 400 */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.2);

  --accent-primary: #3b82f6;
  /* Blue 500 */
  --accent-primary-hover: #2563eb;
  /* Blue 600 */
  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --danger: #ef4444;
  /* Red 500 */

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

/* ── ULTRAWIDE MONITOR SCALING ── */
:root {
  --zoom: 1;
}

@media (min-width: 1600px) {
  :root {
    --zoom: 1.15;
  }

  html {
    zoom: var(--zoom);
  }
}

@media (min-width: 2200px) {
  :root {
    --zoom: 1.35;
  }

  html {
    zoom: var(--zoom);
  }
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-main);
  min-height: calc(100vh / var(--zoom));
  padding-bottom: 80px;
}

/* ═══ COUNTRY SPLASH ═══ */
#country-splash {
  position: relative;
  min-height: calc(100svh / var(--zoom));
  background: var(--bg-dark);
  z-index: 999;
  display: var(--splash-display, flex);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  animation: riseIn 0.4s ease both;
}

.splash-logo {
  width: 44px;
  height: 32px;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
  margin-bottom: 12px;
}

.splash-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.splash-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 44px;
}

.splash-prompt {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.country-cards-wrap {
  width: 100%;
  max-width: 500px;
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.country-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.country-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.country-card .flag {
  font-size: 48px;
  line-height: 1;
}

.country-card .flag img {
  width: 48px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
}

.country-card .c-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 8px;
}

.country-card .c-currency {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.country-card .c-arrow {
  margin-top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-main);
  transition: all 0.2s;
}

.country-card:hover .c-arrow {
  background: var(--text-main);
  color: var(--bg-dark);
}

.splash-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.splash-divider::before,
.splash-divider::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

.splash-divider span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#country-splash.exiting {
  animation: splashOut 0.4s ease forwards;
}

@keyframes splashOut {
  to {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ MAIN WRAP ═══ */
#main-wrap {
  display: none;
}

#main-wrap.visible {
  display: block;
  animation: riseIn 0.4s ease 0.1s both;
}

/* ═══ PILL HEADER & PROGRESS ═══ */
.sticky-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  margin-bottom: 40px;
}

.form-pill {
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  max-width: 740px;
  margin: 0 auto;
  padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.header-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.header-country-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.badge-flag {
  display: flex;
  align-items: center;
}

.badge-flag img {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
}

.badge-change {
  font-size: 11px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-left: 4px;
}

.progress-track {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.4s ease;
}

.progress-step.active {
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.progress-step.done {
  background: var(--text-main);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-pct {
  font-size: 12px;
  color: var(--text-main);
  font-weight: 600;
}

/* ═══ FORM SECTIONS ═══ */
.form-outer {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px 180px 20px;
  position: relative;
  z-index: 1;
}

.section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 24px;
  display: none;
  animation: riseIn 0.3s ease both;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.section.visible {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-num {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.field-row.single {
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.field label .req {
  color: var(--accent-primary);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-primary);
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%23a1a1aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select option {
  background: var(--bg-card);
  color: var(--text-main);
}

/* ── CUSTOM DROPDOWN (For Flags) ── */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.custom-select-trigger.active {
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 15px;
  transition: background 0.15s;
}

.custom-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.custom-select-trigger img,
.custom-option img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.pill {
  padding: 10px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.pill.selected {
  background: var(--text-main);
  border-color: var(--text-main);
  color: var(--bg-dark);
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  background: rgba(0, 0, 0, 0.2);
}

.check-item:hover {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.03);
}

.check-item.selected {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
}

.check-box {
  width: 22px;
  height: 22px;
  border: 1px solid var(--text-muted);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 2px;
}

.check-item.selected .check-box {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.check-box svg {
  display: none;
}

.check-item.selected .check-box svg {
  display: block;
  width: 12px;
  height: 10px;
}

.check-text {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

.check-text small {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.info-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--text-muted);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ═══ NAVIGATION BUTTONS ═══ */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.btn {
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-back {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.btn-next {
  background: var(--text-main);
  color: var(--bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-submit {
  background: var(--accent-primary);
  color: #fff;
}

.btn-submit:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.step-indicator {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.field-error {
  font-size: 12px;
  font-weight: 500;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.field.invalid .field-error {
  display: block;
}

.submit-status.error {
  color: var(--danger);
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

/* ═══ RISK SLIDER COMPONENT ═══ */
.risk-meter {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #2ecc71, #f59e0b, #ef4444);
  margin-bottom: 8px;
  position: relative;
}

.risk-needle {
  position: absolute;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--text-main);
  transform: translateX(-50%);
  transition: left 0.25s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.risk-val {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--accent-primary);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent-primary) 0%, var(--accent-primary) var(--pct, 50%), rgba(255, 255, 255, 0.1) var(--pct, 50%), rgba(255, 255, 255, 0.1) 100%);
  outline: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 14px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-main);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
  border: none;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ═══ SUCCESS SCREEN ═══ */
#success-screen {
  display: none;
  text-align: center;
  padding: 80px 40px 100px;
  animation: riseIn 0.5s ease;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.4;
  animation: pulseGlow 2.5s infinite alternate ease-in-out;
}

.success-icon {
  position: relative;
  width: 64px;
  height: 64px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, 0.2);
  animation: popScale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  z-index: 2;
}

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

@keyframes popScale {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  100% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.success-headline {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.success-subheading {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 48px;
}

.success-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
}

.success-card-title {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.success-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.success-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  flex-shrink: 0;
}

.step-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 3px;
}

/* MEDIA QUERIES */
@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section {
    padding: 32px 20px;
    border-radius: 20px;
    margin-bottom: 16px;
  }

  .splash-sub {
    margin-bottom: 16px;
  }

  .splash-prompt {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .country-cards-wrap {
    flex-direction: column;
    max-width: 100%;
    gap: 12px;
  }

  .country-card {
    padding: 16px 20px;
    gap: 6px;
    border-radius: 20px;
  }

  .country-card img {
    height: 24px;
    width: auto;
  }

  .c-name {
    font-size: 18px;
  }

  .c-currency {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .c-arrow {
    margin-top: 6px;
    width: 32px;
    height: 32px;
  }

  .splash-divider {
    flex-direction: row;
    margin: 4px 0;
  }

  .splash-divider::before,
  .splash-divider::after {
    width: 80px;
    height: 1px;
  }

  .form-pill {
    padding: 12px 16px;
    border-radius: 16px;
  }

  .logo-text {
    font-size: 16px;
  }

  .header-country-badge {
    padding: 4px 10px 4px 8px;
    font-size: 11px;
  }

  .progress-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .progress-pct {
    align-self: flex-end;
    margin-top: -20px;
  }

  .check-item {
    padding: 12px 16px;
  }

  #success-screen {
    padding: 40px 24px 48px;
    border-radius: 20px;
  }

  #success-screen h2 {
    font-size: 28px;
  }
}

/* ═══════════ HOME.HTML STYLES ═══════════ */

/* ═══ NAVIGATION PILL ═══ */
.nav-wrapper {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 20px;
}

.nav-pill {
  background: rgba(24, 24, 27, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 24px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  height: 25px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-cta {
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover {
  transform: scale(1.03);
  background: #e4e4e7;
}

/* ═══ HERO SECTION ═══ */
.hero {
  min-height: calc(100vh / var(--zoom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
}

.hero-glow-mesh {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100vh / var(--zoom));
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease-out both;
}

.hero-badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulsePing 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 900px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 4px;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.2;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ═══ TRUST BANNER ═══ */
.trust-banner {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(24, 24, 27, 0.3);
}

.trust-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  opacity: 0.6;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-main);
  letter-spacing: -1px;
}

/* ═══ SECTIONS & HEADERS ═══ */
.home-section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-section.with-border {
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.home-section.with-border::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.05);
}

.home-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 64px;
}

.home-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
  margin: 0;
}

.home-section-header p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══ PROCESS OVERVIEW ═══ */
.process-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 64px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0px;
}

.process-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.process-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease;
}

.process-item:hover {
  border-color: var(--accent-primary);
}

.process-num {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--accent-primary);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══ BENTO FEATURES ═══ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  grid-auto-rows: minmax(320px, auto);
}

.bento-grid .bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, background 0.3s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.bento-grid .bento-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-grid .bento-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
}

.bento-grid .bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.span-8 {
  grid-column: span 8;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-12 {
  grid-column: span 12;
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--text-main);
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.bento-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.bento-cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-primary.is-disabled,
.btn-secondary.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* ═══ ENGINE PAGE (engine.html) ═══ */
.engine-hero {
  padding-bottom: 40px;
}

.engine-meta {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 680px;
}

.engine-callout {
  margin-top: 28px;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.engine-callout strong {
  color: var(--text-main);
  font-weight: 600;
}

.engine-cta-row {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.engine-deadlink {
  user-select: none;
}

.engine-deadnote {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  color: rgba(161, 161, 170, 0.85);
  font-size: 12px;
  letter-spacing: 0.2px;
}

/* ═══ ENGINE — HOW IT WORKS ═══ */
.engine-how {
  position: relative;
}

.how-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.how-card {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.78), rgba(24, 24, 27, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 30px 28px 28px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(0);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.how-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.10), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.86), rgba(24, 24, 27, 0.62));
}

.how-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.how-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.how-step b {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.how-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}

.how-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.how-desc {
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.how-points {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(250, 250, 250, 0.9);
  font-size: 13px;
  line-height: 1.55;
}

.how-dot {
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .how-card {
    padding: 26px 22px 22px;
    border-radius: 24px;
  }

  .how-title {
    font-size: 20px;
  }
}

/* ═══ CLOSER (SCROLL REVEAL) ═══ */
.closer-section {
  position: relative;
  padding: 60px 24px 100px;
  background: var(--bg-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0px;
}

.closer-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
}

.closer-logo-wrap {
  width: 140px;
  height: auto;
  margin-bottom: 32px;
  transform: scale(0.1);
  opacity: 0;
  will-change: transform, opacity;
}

.closer-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.4));
}

.closer-text {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

/* ═══ FOOTER ═══ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 24px 40px;
  background: #000;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}

.footer-brand .nav-logo {
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
}

/* ═══ ANIMATIONS & MEDIA ═══ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulsePing {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

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

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .process-wrapper {
    padding: 48px 32px;
    margin-bottom: 64px;
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 140px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .home-section {
    padding: 80px 20px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-wrapper {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .bento-grid .bento-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .bento-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: clamp(44px, 14vw, 56px);
    letter-spacing: -2px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .trust-logos {
    gap: 24px;
    justify-content: space-around;
  }

  .trust-logo {
    font-size: 16px;
  }

  .nav-wrapper {
    padding: 0 12px;
  }

  .nav-pill {
    padding: 8px 8px 8px 16px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 32px;
  }

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

/* ═══════════ ENGINE PAGE (engine.html) ═══════════ */

/* Animated grid background */
.engine-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.engine-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 60px 60px, 60px 60px;
  }
}

/* Particle canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Page wrapper */
.engine-page {
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
.engine-hero-section {
  min-height: calc(100vh / var(--zoom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
}

.engine-hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center,
      rgba(59, 130, 246, 0.12) 0%,
      rgba(139, 92, 246, 0.06) 40%,
      transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  from {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

.engine-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.07);
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease-out both;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulsePing 2s infinite;
}

.engine-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  max-width: 1000px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.engine-hero-title .line-muted {
  color: rgba(250, 250, 250, 0.25);
}

.engine-hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 4px;
}

.engine-hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 56px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.engine-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.btn-engine-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
  cursor: pointer;
}

.btn-engine-primary:hover {
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
  opacity: 0.92;
}


.btn-engine-secondary {
  color: var(--text-muted);
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-engine-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.engine-beta-note {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(161, 161, 170, 0.5);
  font-family: 'JetBrains Mono', monospace;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(161, 161, 170, 0.4);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
  animation: fadeUp 1s ease-out 0.8s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ── STAT STRIP ── */
.stat-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(12px);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.stat-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.stat-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-number .stat-accent {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ── ALGORITHM SECTION ── */
.algo-section {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.algo-section-header {
  text-align: center;
  margin-bottom: 80px;
}

.algo-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-top: 20px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.algo-section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── PIPELINE TRACK ── */
.pipeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-track::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(59, 130, 246, 0.3) 10%,
      rgba(139, 92, 246, 0.3) 50%,
      rgba(244, 114, 182, 0.3) 90%,
      transparent);
}

.pipeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  transition: all 0.3s ease;
}

.pipeline-step:last-child {
  border-bottom: none;
}

.pipeline-step:hover .pipe-content-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  flex-shrink: 0;
}

.pipe-node-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.pipe-node-circle.step-1 {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

.pipe-node-circle.step-2 {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
}

.pipe-node-circle.step-3 {
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.3);
  box-shadow: 0 0 24px rgba(244, 114, 182, 0.15);
}

.pipe-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.pipe-content-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px 48px;
  transition: all 0.3s ease;
}

.pipe-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pipe-tag.blue {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.08);
}

.pipe-tag.purple {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.08);
}

.pipe-tag.pink {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.08);
}

.pipe-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.pipe-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 28px;
}

.pipe-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipe-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.pipe-bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.blue-dot {
  background: #60a5fa;
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.5);
}

.purple-dot {
  background: #a78bfa;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.5);
}

.pink-dot {
  background: #f472b6;
  box-shadow: 0 0 6px rgba(244, 114, 182, 0.5);
}

/* ── TERMINAL PREVIEW ── */
.terminal-section {
  border-top: 1px solid var(--border-subtle);
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.terminal-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.terminal-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.terminal-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.terminal-left p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.terminal-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.terminal-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.tfl-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tfl-check svg {
  width: 10px;
  height: 10px;
  color: #60a5fa;
}

/* Terminal window */
.terminal-window {
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(59, 130, 246, 0.06);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tdot-red {
  background: #ff5f57;
}

.tdot-yellow {
  background: #febc2e;
}

.tdot-green {
  background: #28c840;
}

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(161, 161, 170, 0.5);
  margin-left: 4px;
}

.terminal-body {
  padding: 24px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 2;
}

.t-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.t-prompt {
  color: rgba(59, 130, 246, 0.6);
  flex-shrink: 0;
}

.t-green  { color: #4ade80; }
.t-blue   { color: #60a5fa; }
.t-purple { color: #a78bfa; }
.t-muted  { color: rgba(161, 161, 170, 0.45); }
.t-white  { color: #fafafa; }
.t-yellow { color: #fbbf24; }
.t-pink   { color: #f472b6; }
.t-dim    { color: rgba(161, 161, 170, 0.25); }

.terminal-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #60a5fa;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── MAGIC CALLOUT ── */
.magic-callout {
  border-radius: 32px;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.08),
      rgba(139, 92, 246, 0.08),
      rgba(244, 114, 182, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 120px;
}

.magic-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(244, 114, 182, 0.3), transparent);
}

.magic-callout-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.magic-callout h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  position: relative;
}

.magic-callout p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  position: relative;
}

.magic-callout .engine-access-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(161, 161, 170, 0.5);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.3);
}

/* ── ATOMS / ENGINE SPECS ── */
.atoms-section {
  border-top: 1px solid var(--border-subtle);
  padding: 100px 24px;
  position: relative;
}

.atoms-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 114, 182, 0.4), transparent);
}

.atoms-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.atoms-header {
  text-align: center;
  margin-bottom: 64px;
}

.atoms-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.atoms-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.atoms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.atom-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.atom-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transition: opacity 0.3s;
}

.atom-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.atom-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}

.atom-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.atom-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.atom-icon.pink {
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.atom-icon.teal {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.atom-icon.amber {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.atom-icon.green {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.atom-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.atom-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── ENGINE RESPONSIVE ── */
@media (max-width: 900px) {
  .terminal-section-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stat-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

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

  .magic-callout {
    padding: 48px 32px;
  }

  .pipeline-track::before {
    left: 35px;
  }

  .pipe-content-card {
    padding: 28px 32px;
  }
}

@media (max-width: 600px) {
  .stat-strip-inner {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .pipeline-step {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  .pipeline-track::before {
    left: 27px;
  }

  .engine-hero-actions {
    flex-direction: row;
    width: 100%;
    gap: 8px;
  }

  .btn-engine-primary,
  .btn-engine-secondary {
    padding: 14px 10px;
    font-size: 13px;
    justify-content: center;
  }

  .engine-hero-actions .btn-engine-primary,
  .engine-hero-actions .btn-engine-secondary {
    width: 100%;
  }

  .magic-callout .engine-access-row {
    flex-wrap: wrap; /* Allows stacking if truly necessary, though they will fit horizontally */
    gap: 8px;
  }
}

/* ═══ COMING SOON LAYOUT ═══ */
.soon-page {
  min-height: calc(100vh / var(--zoom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.soon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.soon-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  text-align: center;
  animation: riseIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.soon-card-inner {
  padding: 48px;
}

.soon-tape {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(45deg,
      #f59e0b,
      #f59e0b 15px,
      #27272a 15px,
      #27272a 30px);
  background-size: 42px 42px;
  animation: shiftTape 1.5s linear infinite;
}

.soon-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  color: #f59e0b;
  animation: gentleRock 3s ease-in-out infinite;
}

.soon-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.2;
}

.soon-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.soon-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.soon-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

@keyframes riseIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shiftTape {
  0% { background-position: 0 0; }
  100% { background-position: 42px 0; }
}

@keyframes gentleRock {
  0% { transform: rotate(-8deg); }
  50% { transform: rotate(12deg); }
  100% { transform: rotate(-8deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ALLOCATOR — Target Allocator Engine SPA styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page shell */
.alloc-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 80px;
  position: relative;
}

/* Ambient glow behind card */
.alloc-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Top bar */
.alloc-topbar {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.alloc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.alloc-logo svg {
  width: 32px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.alloc-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--text-main);
}

.alloc-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── FORM CARD ── */
#form-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  animation: riseIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px 36px 36px;
}

.form-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.2;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Input group */
.alloc-field {
  margin-bottom: 20px;
}

.alloc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.alloc-input-wrap {
  position: relative;
}

.alloc-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1;
}

.alloc-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.alloc-input.has-icon { padding-left: 36px; }

.alloc-input::placeholder {
  color: rgba(161, 161, 170, 0.5);
  font-weight: 400;
}

.alloc-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.alloc-input.error { border-color: var(--danger); }

.field-err {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.field-err.visible { display: block; }

/* Cash input */
#cash-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  padding-left: 36px;
}

/* Submit button */
.alloc-submit {
  width: 100%;
  margin-top: 28px;
  padding: 16px 24px;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}

.alloc-submit:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3);
}

.alloc-submit:active  { transform: scale(0.98); }
.alloc-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Spinner inside button */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.alloc-submit.loading .btn-label  { display: none; }
.alloc-submit.loading .btn-arrow  { display: none; }
.alloc-submit.loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Disclaimer */
.form-disclaimer {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(161, 161, 170, 0.6);
  text-align: center;
  line-height: 1.6;
}

/* ── RESULT PANEL ── */
#result-wrap {
  display: none;
  width: 100%;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

#result-wrap.visible {
  display: block;
  animation: riseIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-header { margin-bottom: 28px; }

.result-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.result-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.result-meta { font-size: 13px; color: var(--text-muted); }

/* Profile badge */
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 8px;
  border-radius: 20px;
  margin-top: 10px;
}

.profile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* Ticker cards grid */
.ticker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .ticker-grid { grid-template-columns: 1fr; }
}

.ticker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s;
}

.ticker-card.revealed { opacity: 1; transform: translateY(0); }
.ticker-card:hover    { border-color: var(--border-active); }

/* Color accent bar on left */
.ticker-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ticker-color, var(--accent-primary));
  border-radius: 16px 0 0 16px;
}

.ticker-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  padding-left: 4px;
}

.ticker-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  padding-left: 4px;
  margin-bottom: 14px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-shares {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.ticker-shares-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ticker-cost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.ticker-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.55;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.4;
}

/* Weight bar */
.weight-bar-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}

.weight-bar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.weight-bar-track {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  height: 8px;
  gap: 2px;
  margin-bottom: 14px;
}

.weight-segment {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.weight-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Leftover cash line */
.leftover-line {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.leftover-label { font-size: 13px; font-weight: 500; color: var(--text-muted); }

.leftover-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

/* Source / timestamp */
.result-footer { display: flex; flex-direction: column; gap: 8px; }

.source-line {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-pip {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.source-pip.fallback { background: #f59e0b; }

.result-disclaimer {
  font-size: 11px;
  color: rgba(161, 161, 170, 0.5);
  line-height: 1.6;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

/* Error state */
.alloc-error-box {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: #fca5a5;
  margin-top: 16px;
  line-height: 1.5;
}

.alloc-error-box.visible { display: block; }

/* Recalculate link */
.recalc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 20px;
  text-decoration: none;
  transition: color 0.2s;
}

.recalc-btn:hover { color: #60a5fa; }

/* ── LOADING SCREEN ── */
#loading-wrap {
  display: none;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  animation: riseIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#loading-wrap.active { display: block; }

.loading-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px 36px 36px;
  overflow: hidden;
  position: relative;
}

/* Animated top edge beam */
.loading-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
  animation: scan-beam 1.8s ease-in-out infinite;
}

@keyframes scan-beam {
  0%   { left: -100%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.loading-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: loading-pulse 1s ease-in-out infinite alternate;
}

@keyframes loading-pulse {
  from { opacity: 0.4; transform: scale(0.85); }
  to   { opacity: 1;   transform: scale(1.1); }
}

.loading-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 32px;
  line-height: 1.25;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.25;
  transform: translateX(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.loading-step.active { opacity: 1;    transform: translateX(0); }
.loading-step.done   { opacity: 0.55; transform: translateX(0); }

.step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.loading-step.active .step-icon {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent-primary);
}

.loading-step.done .step-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.step-icon-spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-step.active .step-icon-spinner { display: block; }
.loading-step.active .step-icon-num     { display: none; }
.loading-step.done   .step-icon-spinner { display: none; }
.loading-step.done   .step-icon-num     { display: block; }

.step-text {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.loading-step.active .step-text { color: var(--text-main); }

.loading-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Allocator responsive ── */
@media (max-width: 480px) {
  .form-card     { padding: 28px 22px 24px; }
  .alloc-topbar  { margin-bottom: 36px; }
  .result-title  { font-size: 24px; }
  .ticker-shares { font-size: 26px; }
}


/* ── CONTACT MODAL ── */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 9, 11, 0.85); /* Deep dark backdrop */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-modal-overlay.active .contact-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.contact-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.contact-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: inline-block;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.contact-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item.whatsapp .contact-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}
