@font-face {
  font-family: "Firelight Sans";
  src: url("../assets/fonts/firelight-09.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Firelight Sans";
  src: url("../assets/fonts/firelight-01.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Firelight Sans";
  src: url("../assets/fonts/firelight-02.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Firelight Sans";
  src: url("../assets/fonts/firelight-03.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Firelight Display";
  src: url("../assets/fonts/firelight-10.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080807;
  --panel: #11100e;
  --panel-2: #181613;
  --text: #f7f1e8;
  --muted: #b7afa4;
  --soft: #776f65;
  --line: rgba(247, 241, 232, 0.12);
  --ember: #ff6a22;
  --ember-2: #ff9b45;
  --gold: #d6b15e;
  --cool: #75a7ff;
  --success: #69d99b;
  --danger: #ff786f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(255, 106, 34, 0.16), transparent 34rem),
    linear-gradient(180deg, #0c0b0a 0%, var(--bg) 42%, #0b0a09 100%);
  background-size: 56px 56px, 56px 56px, auto, auto;
  color: var(--text);
  font-family: "Firelight Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 16, 13, 0.86), rgba(8, 8, 7, 0.78));
  box-shadow: var(--shadow), var(--inner-glow);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  min-width: 206px;
}

.brand-wordmark {
  width: 122px;
  height: auto;
  flex: 0 0 auto;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(255, 122, 47, 0.86), transparent);
}

.brand-loan {
  color: var(--text);
  font-family: "Firelight Sans", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.wallet-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.wallet-button,
.primary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    linear-gradient(135deg, var(--ember), var(--ember-2));
  color: #160b05;
  box-shadow: 0 12px 30px rgba(255, 106, 34, 0.16);
}

.secondary-button {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  color: var(--text);
}

.wallet-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero-section,
.section-grid,
.loan-section,
.feature-band,
.security-section,
.faq-section,
.cta-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 58px 0 44px;
}

.hero-copy h1,
.section-copy h2,
.section-heading h2,
.feature-band h2,
.cta-section h2 {
  margin: 0;
  font-family: "Firelight Display", "Firelight Sans", sans-serif;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(42px, 4.8vw, 64px);
  text-wrap: balance;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-proof span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #ddd5c9;
  font-size: 13px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ember-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-stats div,
.quote-panel,
.eligibility-panel,
.security-grid article,
.faq-list details,
.feature-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024));
  box-shadow: var(--inner-glow);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats dt {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-family: "Firelight Display", "Firelight Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow), var(--inner-glow);
  isolation: isolate;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.48), transparent 38%),
    linear-gradient(180deg, transparent 55%, rgba(8, 8, 7, 0.52));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.rate-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: min(280px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.74);
  backdrop-filter: blur(18px);
}

.health-card {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(310px, calc(100% - 44px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.7);
  backdrop-filter: blur(18px);
}

.health-card strong,
.health-card small {
  display: block;
}

.health-card small {
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(105, 217, 155, 0.12);
}

.rate-card span,
.rate-card small,
.quote-grid span,
.quote-main span {
  color: var(--muted);
}

.rate-card strong {
  display: block;
  margin: 6px 0;
  font-family: "Firelight Display", "Firelight Sans", sans-serif;
  font-size: 34px;
}

.ticker-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.ticker-section span {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  border-inline-end: 1px solid var(--line);
}

.ticker-section span:last-child {
  border-inline-end: 0;
}

.section-grid,
.security-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  padding: 96px 0;
}

.section-copy h2,
.section-heading h2,
.feature-band h2,
.cta-section h2 {
  font-size: clamp(32px, 4.4vw, 54px);
}

.section-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.section-note {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: #ded6ca;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  content: "";
}

.eligibility-panel,
.control-panel,
.quote-panel {
  display: grid;
  gap: 18px;
}

.eligibility-panel {
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.2)), #0b0a09;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(255, 155, 69, 0.72);
}

input[type="range"] {
  accent-color: var(--ember);
  padding: 0;
}

.check-row {
  grid-template-columns: 20px 1fr;
  align-items: center;
}

.check-row input {
  min-height: 20px;
  padding: 0;
}

.full-width {
  width: 100%;
}

.action-button {
  justify-self: start;
  min-width: 174px;
  width: auto;
  padding-inline: 22px;
}

.eligibility-result {
  min-height: 68px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
}

.eligibility-result.approved {
  border-color: rgba(105, 217, 155, 0.45);
  color: var(--success);
}

.eligibility-result.warning {
  border-color: rgba(255, 120, 111, 0.45);
  color: var(--danger);
}

.loan-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.loan-calculator {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.control-panel,
.quote-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--inner-glow);
}

.range-value {
  justify-self: end;
  color: var(--text);
  font-family: "Firelight Display", "Firelight Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.quote-panel {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 187, 0, 0.14), transparent 16rem),
    linear-gradient(145deg, rgba(255, 106, 34, 0.12), transparent),
    var(--panel-2);
}

.quote-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-topline strong {
  padding: 6px 10px;
  border: 1px solid rgba(105, 217, 155, 0.34);
  border-radius: 999px;
  color: var(--success);
  font-size: 12px;
}

.quote-main {
  padding: 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.quote-main strong {
  display: block;
  margin-top: 4px;
  font-family: "Firelight Display", "Firelight Sans", sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quote-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-grid strong {
  display: block;
  margin-top: 4px;
  font-family: "Firelight Display", "Firelight Sans", sans-serif;
  font-size: 22px;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-list article {
  padding: 20px;
  background: var(--panel);
}

.feature-list span {
  color: var(--ember-2);
  font-family: "Firelight Display", "Firelight Sans", sans-serif;
  font-weight: 700;
}

.feature-list h3,
.security-grid h3 {
  margin: 10px 0 8px;
  font-family: "Firelight Display", "Firelight Sans", sans-serif;
}

.feature-list p,
.security-grid p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.security-grid article {
  padding: 20px;
}

.faq-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.cta-section {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at right top, rgba(255, 187, 0, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(255, 106, 34, 0.16), rgba(117, 167, 255, 0.08)),
    var(--panel);
  box-shadow: var(--inner-glow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 46px 0 32px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 620px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: minmax(136px, auto) auto auto;
  }

  .brand {
    min-width: 196px;
  }

  .brand-wordmark {
    width: 116px;
  }

  .brand-loan {
    font-size: 17px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    position: fixed;
    inset: 84px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0a09;
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .hero-section,
  .section-grid,
  .loan-calculator,
  .feature-band,
  .security-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 420px;
  }

  .ticker-section,
  .feature-list,
  .security-grid,
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 20px);
    gap: 8px;
    padding: 10px;
    grid-template-columns: auto auto auto;
  }

  .wallet-button {
    min-height: 40px;
    width: 82px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 1.1;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .action-button {
    justify-self: center;
    width: min(210px, 100%);
  }

  .brand {
    min-width: 134px;
    gap: 6px;
  }

  .brand-wordmark {
    width: 84px;
  }

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

  .hero-section,
  .section-grid,
  .loan-section,
  .feature-band,
  .security-section,
  .faq-section,
  .cta-section,
  .site-footer {
    width: calc(100% - 20px);
  }

  .hero-copy h1 {
    max-width: 340px;
    font-size: 30px;
    line-height: 1.1;
    text-wrap: auto;
    overflow-wrap: break-word;
  }

  .hero-text {
    max-width: 340px;
    font-size: 16px;
  }

  .hero-proof,
  .hero-actions {
    max-width: 340px;
  }

  .hero-proof span {
    font-size: 12px;
  }

  .hero-stats,
  .ticker-section,
  .feature-list,
  .security-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 340px;
  }

  .cta-section {
    padding: 36px 20px;
  }

  .site-footer {
    display: grid;
  }
}
