:root {
  --bg: #07111f;
  --panel: #0c1828;
  --panel-hover: #112238;
  --border: #20334b;
  --text: #f5f8fc;
  --muted: #9baabd;
  --accent: #63d7c7;
  --accent-dark: #2ba999;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 5%, rgba(50, 151, 165, 0.14), transparent 34%),
    radial-gradient(circle at 10% 80%, rgba(51, 95, 151, 0.12), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 46px;
}

.brand-bar {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 800;
  color: #07111f;
  background: var(--accent);
}

.brand-name {
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 17px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.hero {
  padding: 76px 0 52px;
  max-width: 820px;
}

.eyebrow,
.step-label,
.summary-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--accent);
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 14px 0 22px;
  max-width: 850px;
}

h1 span {
  color: var(--accent);
}

.hero-copy {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0;
}

.promise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 14px;
  border: 1px solid rgba(99, 215, 199, 0.28);
  background: rgba(99, 215, 199, 0.07);
  border-radius: 999px;
  color: #dffbf6;
  font-weight: 650;
}

.promise-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 900;
}

.selection-section {
  padding: 32px;
  background: rgba(12, 24, 40, 0.82);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

h2 {
  font-size: 34px;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}

.section-copy {
  color: var(--muted);
  margin: 14px 0 28px;
  line-height: 1.6;
  max-width: 710px;
}

.learn-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 8px 0;
}

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

.risk-card {
  color: var(--text);
  text-align: left;
  min-height: 180px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #0a1727;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.risk-card:hover {
  transform: translateY(-3px);
  background: var(--panel-hover);
  border-color: #3c6172;
}

.risk-card.selected {
  border-color: var(--accent);
  background: rgba(31, 92, 91, 0.24);
  box-shadow: inset 0 0 0 1px rgba(99, 215, 199, 0.2);
}

.risk-name {
  font-size: 22px;
  font-weight: 750;
  margin-bottom: 12px;
}

.risk-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.risk-arrow {
  margin-top: 22px;
  color: var(--accent);
  font-size: 20px;
}

.loading-card {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--muted);
}

.selection-summary {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.hidden {
  display: none;
}

.summary-value {
  font-size: 24px;
  font-weight: 750;
  margin-top: 5px;
}

.continue-button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  border: 0;
  padding: 14px 22px;
  border-radius: 13px;
  background: var(--accent);
  color: #07111f;
  font-weight: 800;
  cursor: pointer;
}

.continue-button:hover {
  background: #7ae8d9;
}

footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 34px;
  color: #66788d;
  font-size: 13px;
}

@media (max-width: 900px) {
  .risk-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand-bar {
    min-height: 80px;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .selection-section {
    padding: 22px;
    border-radius: 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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

  .selection-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .continue-button {
    justify-content: center;
    width: 100%;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .footer-dot {
    display: none;
  }
}




.brand-copy {
  display: flex;
  flex-direction: column;
}



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

.crypto-card {
  color: var(--text);
  text-align: left;
  min-height: 210px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #0a1727;
  cursor: pointer;
}

.crypto-card:hover {
  transform: translateY(-3px);
  border-color: #3c6172;
}

.crypto-card.selected {
  border-color: var(--accent);
  background: rgba(31, 92, 91, 0.24);
}

.crypto-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(99, 215, 199, 0.1);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.conservative-crypto-message {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(99, 215, 199, 0.4);
  background: rgba(31, 92, 91, 0.18);
}

.summary-secondary {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

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


/* ==========================================================
   CENDAVEX BRAND
   ========================================================== */

.brand-logo {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-weight: 850;
}

.brand-subtitle {
  margin-top: 7px;
  font-size: 17px;
}

.brand-tagline {
  margin-top: 10px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 750;
}


/* ==========================================================
   HIDDEN STATE
   Must override grids and all component display declarations.
   ========================================================== */

.hidden {
  display: none !important;
}


@media (max-width: 600px) {
  .brand-logo {
    width: 96px;
    height: 96px;
  }

  .brand-lockup {
    align-items: flex-start;
    gap: 16px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .brand-tagline {
    display: block;
    font-size: 14px;
  }
}

/* ==========================================================
   PRIMARY NAVIGATION
   ========================================================== */

.brand-bar {
  justify-content: space-between;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

.nav-links .nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(99, 215, 199, 0.45);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(99, 215, 199, 0.08);
}

.nav-links .nav-cta:hover {
  background: rgba(99, 215, 199, 0.14);
}

@media (max-width: 1050px) {
  .brand-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

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


/* ==========================================================
   STEP 3 — REVIEW
   ========================================================== */

.review-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #0a1727;
}

.review-row {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.review-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.review-value {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.review-notice {
  padding: 17px 18px;
  border: 1px solid rgba(99, 215, 199, 0.22);
  border-radius: 15px;
  background: rgba(99, 215, 199, 0.07);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.review-confirmation {
  padding: 16px 18px;
  border: 1px solid rgba(99, 215, 199, 0.4);
  border-radius: 15px;
  background: rgba(31, 92, 91, 0.18);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}


/* ==========================================================
   CUSTOMER ACCOUNT TYPE SELECTION
   ========================================================== */

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

.account-card {
  color: var(--text);
  text-align: left;
  min-height: 210px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #0a1727;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.account-card:hover {
  transform: translateY(-3px);
  background: var(--panel-hover);
  border-color: #3c6172;
}

.account-card.selected {
  border-color: var(--accent);
  background: rgba(31, 92, 91, 0.24);
  box-shadow: inset 0 0 0 1px rgba(99, 215, 199, 0.2);
}

.account-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(99, 215, 199, 0.1);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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


/* ==========================================================
   CUSTOMER SIMULATOR DASHBOARD
   ========================================================== */

.simulator-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.simulator-summary-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0a1727;
}

.simulator-summary-value {
  margin-top: 8px;
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
}

.simulator-profile-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0a1727;
}

.simulator-holdings-panel {
  margin-top: 24px;
}

.simulator-holdings {
  display: grid;
  gap: 12px;
}

.simulator-holding {
  display: grid;
  grid-template-columns:
    minmax(90px, 1.2fr)
    minmax(90px, 1fr)
    minmax(100px, 1fr)
    minmax(100px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #0a1727;
}

.simulator-holding-symbol {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.simulator-holding-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.simulator-holding-value {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.simulator-empty {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--muted);
  background: #0a1727;
}

@media (max-width: 900px) {
  .simulator-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .simulator-holding {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .simulator-summary-grid,
  .simulator-profile-panel,
  .simulator-holding {
    grid-template-columns: 1fr;
  }
}

/* Public information pages */
.public-page {
  padding: 72px 0 56px;
}

.public-page h1 {
  max-width: 900px;
  margin: 12px 0 18px;
}

.public-page-intro {
  max-width: 880px;
  margin: 0 0 42px;
  font-size: 1.15rem;
  line-height: 1.75;
}

.public-card-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(260px, 1fr)
  );
  gap: 22px;
}

.public-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
}

.public-card h2 {
  margin: 0 0 12px;
}

.public-card p {
  margin: 0;
  line-height: 1.7;
}

.public-page-cta {
  margin-top: 38px;
}

.public-start-button {
  display: inline-flex;
  width: auto;
  text-decoration: none;
}

/* Customer authentication */
.customer-auth-page {
  display: flex;
  justify-content: center;
  padding: 72px 0;
}

.customer-auth-card {
  width: min(520px, 100%);
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
}

.customer-auth-card h1 {
  margin: 10px 0 12px;
}

.customer-auth-label {
  display: block;
  margin: 22px 0 8px;
  font-weight: 700;
}

.customer-auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.customer-auth-button {
  width: 100%;
  margin-top: 26px;
}

.customer-auth-message {
  min-height: 24px;
  margin-top: 16px;
}

.customer-auth-hint,
.customer-auth-switch {
  margin-top: 12px;
  color: var(--muted);
}

.customer-auth-switch a {
  font-weight: 700;
}
