/* ==========================================================================
   CreditKraft — Design System
   Palette: Midnight Navy / Slate Blue / Executive Gold / Platinum
   Type: Manrope (display) + Inter (body)
   Signature element: "clearance brackets" — corner-bracket framing on
   cards and panels, evoking a secured/cleared file rather than a
   generic bordered box. A thin gold rule + diamond node marks section
   transitions, since the brand's whole premise is a guarded perimeter.
   ========================================================================== */

:root {
  --navy: #071726;
  --navy-deep: #050f1a;
  --slate: #112a46;
  --slate-soft: #16324f;
  --gold: #c8a14a;
  --gold-bright: #e0bd6e;
  --platinum: #e6eaf0;
  --white: #ffffff;
  --emerald: #1fb980;
  --crimson: #b94141;
  --ink-muted: rgba(230, 234, 240, 0.62);
  --ink-faint: rgba(230, 234, 240, 0.38);
  --hairline: rgba(200, 161, 74, 0.22);

  --font-display: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--navy);
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 640px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.section { padding: 6.5rem 0; position: relative; }
.section--tight { padding: 4rem 0; }
.section--slate { background: linear-gradient(180deg, var(--slate) 0%, var(--navy-deep) 100%); }
.section--alt { background: var(--navy-deep); }

.section-head { max-width: 700px; margin-bottom: 3.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Gold rule + diamond node — used between major sections instead of a hard line */
.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.6rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.divider__node {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(230, 234, 240, 0.3);
  color: var(--platinum);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 23, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.6rem;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
}
.brand__mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
}
.brand__status {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(31, 185, 128, 0.6);
  animation: pulse 2.4s infinite;
  margin-left: 0.2rem;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 185, 128, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(31, 185, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 185, 128, 0); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--gold);
}
.nav__cta { display: flex; align-items: center; gap: 1.4rem; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--white);
  width: 42px; height: 38px;
  align-items: center;
  justify-content: center;
}

.dropdown { position: relative; }
.dropdown__panel {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: -1rem;
  background: var(--slate);
  border: 1px solid var(--hairline);
  min-width: 280px;
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.dropdown:hover .dropdown__panel,
.dropdown:focus-within .dropdown__panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown__panel a {
  display: block;
  padding: 0.7rem 0.8rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
  border-radius: var(--radius);
}
.dropdown__panel a:hover { background: rgba(200, 161, 74, 0.08); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: 11.5rem 0 6rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(200, 161, 74, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(31, 185, 128, 0.05), transparent 60%),
    var(--navy);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 161, 74, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 161, 74, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.7) 30%, transparent 85%);
  animation: drift 26s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 92px 92px; }
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.hero p.lede { margin: 1.4rem 0 2.2rem; font-size: 1.18rem; }
.hero__trust {
  margin-top: 3rem;
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
}
.hero__trust div { font-family: var(--font-display); }
.hero__trust strong { display: block; font-size: 1.5rem; color: var(--gold-bright); }
.hero__trust span { font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero perimeter illustration */
.perimeter {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.perimeter svg { width: 100%; height: auto; }
.perimeter__ring1 { animation: spin 36s linear infinite; transform-origin: center; }
.perimeter__ring2 { animation: spin 50s linear infinite reverse; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.perimeter__pulse { animation: ringpulse 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes ringpulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.8; } }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 2.6rem 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.logo-strip__label { text-align: center; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.6rem; }
.logo-strip__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.8rem; opacity: 0.5; }
.logo-strip__row span { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; color: var(--ink-muted); font-size: 0.95rem; }

/* ---------- Cards: clearance-bracket framing (signature element) ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.bracket-card {
  position: relative;
  padding: 2.1rem 1.9rem;
  background: linear-gradient(160deg, var(--slate) 0%, rgba(17, 42, 70, 0.5) 100%);
  border: 1px solid rgba(230, 234, 240, 0.06);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bracket-card::before, .bracket-card::after,
.bracket-card .bracket-corner--tr, .bracket-card .bracket-corner--bl {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--gold);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}
.bracket-card::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.bracket-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.bracket-card .bracket-corner--tr { top: -1px; right: -1px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.bracket-card .bracket-corner--bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.bracket-card:hover { transform: translateY(-4px); border-color: rgba(230, 234, 240, 0.1); }
.bracket-card:hover::before, .bracket-card:hover::after,
.bracket-card:hover .bracket-corner--tr, .bracket-card:hover .bracket-corner--bl {
  opacity: 1; width: 22px; height: 22px;
}

.bracket-card__icon {
  width: 44px; height: 44px;
  margin-bottom: 1.3rem;
  color: var(--gold);
}
.bracket-card h3 { margin-bottom: 0.7rem; font-size: 1.15rem; }
.bracket-card p { color: var(--ink-muted); font-size: 0.95rem; }
.bracket-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-bright);
}

/* ---------- Process timeline (real sequence → numbered is appropriate) ---------- */
.timeline { position: relative; }
.timeline__track {
  position: absolute;
  left: 28px;
  top: 14px; bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--hairline) 100%);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.6rem;
  padding-bottom: 2.6rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num {
  width: 56px; height: 56px;
  border: 1px solid var(--gold);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transform: rotate(45deg);
}
.timeline__num span { transform: rotate(-45deg); }
.timeline__item h3 { margin-bottom: 0.4rem; }
.timeline__item p { color: var(--ink-muted); font-size: 0.95rem; max-width: 520px; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-card { padding: 2.2rem 1rem; border: 1px solid var(--hairline); }
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--gold-bright);
}
.stat-card span { font-size: 0.82rem; color: var(--ink-faint); }
.stat-foot { text-align: center; margin-top: 1.6rem; font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- Flow diagram (trigger lead explainer) ---------- */
.flow { display: flex; flex-direction: column; gap: 0; }
.flow__step {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--hairline);
  background: rgba(17, 42, 70, 0.4);
}
.flow__step strong { font-family: var(--font-display); font-size: 0.95rem; color: var(--white); }
.flow__step span { font-size: 0.82rem; color: var(--ink-faint); }
.flow__arrow { align-self: center; color: var(--gold); padding: 0.35rem 0; font-size: 0.9rem; }
.flow__step--alert { border-color: rgba(185, 65, 65, 0.45); }
.flow__step--alert strong { color: #e6a3a3; }

/* ---------- Pricing ---------- */
.price-card {
  position: relative;
  padding: 2.4rem 2rem;
  border: 1px solid rgba(230, 234, 240, 0.08);
  background: var(--slate);
  display: flex;
  flex-direction: column;
}
.price-card--featured { border-color: var(--gold); background: linear-gradient(160deg, var(--slate-soft), var(--slate)); }
.price-card__tag {
  position: absolute; top: -1px; right: -1px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
.price-card .price-card__tier { color: var(--ink-faint); font-size: 0.88rem; margin: 0.4rem 0 1.4rem; }
.price-card__list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.6rem 0 2rem; flex-grow: 1; }
.price-card__list li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: var(--ink-muted); }
.price-card__list li svg { flex-shrink: 0; margin-top: 3px; color: var(--emerald); width: 15px; height: 15px; }

/* ---------- FAQ accordion ---------- */
.accordion__item { border-bottom: 1px solid var(--hairline); }
.accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: none; border: none; color: var(--white);
  text-align: left;
  padding: 1.5rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.accordion__trigger .plus { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.accordion__trigger .plus::before, .accordion__trigger .plus::after {
  content: ""; position: absolute; background: var(--gold);
  transition: transform 0.25s var(--ease);
}
.accordion__trigger .plus::before { left: 0; top: 8px; width: 18px; height: 1.5px; }
.accordion__trigger .plus::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.accordion__item.is-open .plus::after { transform: rotate(90deg) scaleX(0); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion__panel p { padding: 0 0.2rem 1.5rem; color: var(--ink-muted); max-width: 700px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-muted); }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(230, 234, 240, 0.04);
  border: 1px solid rgba(230, 234, 240, 0.16);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 4.5rem 0;
  text-align: center;
  background: linear-gradient(160deg, var(--slate-soft), var(--navy-deep));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cta-band h2 { max-width: 620px; margin: 0 auto 1.6rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: 10.5rem 0 4rem;
  background: linear-gradient(180deg, var(--slate) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--hairline);
}
.page-head .lede { margin-top: 1.1rem; }
.breadcrumb { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 1.2rem; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--hairline); padding: 4.5rem 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { color: var(--ink-faint); font-size: 0.88rem; max-width: 280px; margin-top: 0.9rem; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col a { font-size: 0.9rem; color: var(--ink-muted); }
.footer__col a:hover { color: var(--gold-bright); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.8rem; border-top: 1px solid var(--hairline);
  font-size: 0.78rem; color: var(--ink-faint); flex-wrap: wrap; gap: 1rem;
}
.footer__legal-disclosure { font-size: 0.74rem; color: var(--ink-faint); max-width: var(--container); margin: 0 auto 2rem; line-height: 1.6; border-top: 1px solid var(--hairline); padding-top: 1.8rem; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.kicker-list { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.kicker-list span {
  font-size: 0.74rem; padding: 0.4rem 0.7rem; border: 1px solid var(--hairline);
  color: var(--ink-muted); letter-spacing: 0.03em;
}
.callout {
  border-left: 2px solid var(--gold);
  padding: 1.3rem 1.6rem;
  background: rgba(200, 161, 74, 0.05);
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .perimeter { max-width: 280px; margin-top: 1rem; }
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); border-bottom: 1px solid var(--hairline);
    padding: 1.5rem 1.6rem; gap: 1.2rem;
  }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 9rem 0 4rem; }
  .page-head { padding: 8.5rem 0 3rem; }
  .timeline__item { grid-template-columns: 44px 1fr; }
  .timeline__num { width: 44px; height: 44px; }
}
