/* ============================================================
   THE CREDITCARD — shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0C0A08;
  --panel: #17140F;
  --panel-2: #1D1811;
  --paper: #F4EFE4;
  --paper-dim: #C9C3B6;
  --flame-1: #FF4620;
  --flame-2: #FFA23C;
  --foil: #E7DCC4;
  --steel: #B7BEC8;
  --steel-dim: #7C828C;
  --line: rgba(244, 239, 228, 0.10);
  --line-strong: rgba(244, 239, 228, 0.18);
  --radius: 18px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

a { color: inherit; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--flame-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--flame-2);
}

/* ---------- top strip ---------- */
.top-strip {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--steel);
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 999;
  letter-spacing: 0.02em;
}
.top-strip strong { color: var(--flame-2); font-weight: 600; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 16px 0;
  z-index: 900;
  background: rgba(12, 10, 8, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 70, 32, 0.35);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.logo-word span { color: var(--flame-2); }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
nav a:hover { color: var(--paper); background: var(--panel-2); }
nav a.current { color: var(--paper); background: var(--panel-2); }
nav a.nav-cta {
  color: var(--ink);
  background: linear-gradient(120deg, var(--flame-2), var(--flame-1));
  font-weight: 600;
  margin-left: 6px;
}
nav a.nav-cta:hover { filter: brightness(1.08); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.site-nav {
    position: fixed; inset: 0 0 auto 0; top: 68px;
    background: var(--panel);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  nav.site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.site-nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  nav.site-nav a.nav-cta { border-radius: 100px; margin-top: 8px; text-align: center; border-bottom: none; }
  .nav-toggle {
    display: block;
    background: none; border: 1px solid var(--line-strong);
    border-radius: 9px;
    width: 40px; height: 40px;
    color: var(--paper);
    font-size: 1.1rem;
    cursor: pointer;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(120deg, var(--flame-2), var(--flame-1));
  color: var(--ink);
  box-shadow: 0 14px 30px -10px rgba(255, 70, 32, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper-dim); transform: translateY(-3px); }

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 70px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255,70,32,0.16), transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--flame-2), var(--flame-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--paper-dim);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats {
  display: flex;
  gap: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  color: var(--paper);
}
.hero-stats div span { font-size: 0.82rem; color: var(--steel-dim); }

/* ----- tilt card, the signature element ----- */
.card-stage {
  perspective: 1400px;
  display: flex;
  justify-content: center;
}
.tilt-card {
  width: min(430px, 100%);
  aspect-ratio: 1.586 / 1;
  border-radius: 22px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-14deg);
  transition: transform 0.15s ease-out;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), 0 10px 30px rgba(255,70,32,0.25);
}
.tilt-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}
.tilt-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 22px;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.35) var(--shine, 45%),
    rgba(255,255,255,0) 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.card-caption {
  text-align: center;
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--steel-dim);
  font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .card-stage { order: -1; }
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 14px; }
.section-head p { color: var(--paper-dim); margin-top: 14px; font-size: 1.03rem; }

.panel-bg { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--panel);
  padding: 38px 32px;
  transition: background 0.25s;
}
.feature-card:hover { background: var(--panel-2); }
.feature-chip {
  width: 42px; height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--steel), #6f7580);
  margin-bottom: 22px;
  position: relative;
}
.feature-chip::before, .feature-chip::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.25);
}
.feature-chip::before { top: 50%; left: 6px; right: 6px; height: 1px; }
.feature-chip::after { left: 50%; top: 6px; bottom: 6px; width: 1px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { color: var(--paper-dim); font-size: 0.95rem; }
.feature-card .rate {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--flame-2);
  font-size: 0.82rem;
  margin-top: 14px;
  display: block;
}

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

/* offer teaser cards (index) */
.offer-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.offer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: linear-gradient(160deg, var(--panel), var(--ink));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--flame-2);
}
.offer-card h3 { font-size: 1.2rem; }
.offer-card .bonus {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  color: var(--paper);
}
.offer-card p { color: var(--paper-dim); font-size: 0.9rem; }
.offer-card .fee { color: var(--steel-dim); font-size: 0.82rem; margin-top: auto; }

@media (max-width: 880px) {
  .offer-teaser { grid-template-columns: 1fr; }
}

/* ---------- compare table (compare.html) ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--flame-2); color: var(--paper); }
.filter-btn.active {
  background: var(--flame-2);
  border-color: var(--flame-2);
  color: var(--ink);
  font-weight: 600;
}

.card-list { display: flex; flex-direction: column; gap: 18px; }
.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s;
}
.compare-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.compare-card .rank-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flame-2);
  background: rgba(255, 162, 60, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.compare-card h3 { font-size: 1.22rem; margin-bottom: 6px; }
.compare-card .issuer { color: var(--steel-dim); font-size: 0.85rem; }
.compare-card .stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-dim);
  margin-bottom: 6px;
}
.compare-card .stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  color: var(--paper);
}
.compare-card .stat-value.small { font-size: 0.92rem; }
.compare-card .cta-col { text-align: right; }
.compare-card .btn { padding: 11px 22px; font-size: 0.85rem; white-space: nowrap; }
.compare-card .note {
  grid-column: 1 / -1;
  color: var(--paper-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .compare-card { grid-template-columns: 1fr 1fr; }
  .compare-card .cta-col { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 560px) {
  .compare-card { grid-template-columns: 1fr; }
}

.methodology {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  margin-top: 60px;
  font-size: 0.92rem;
  color: var(--paper-dim);
}
.methodology h3 { color: var(--paper); font-size: 1.05rem; margin-bottom: 12px; }
.methodology p + p { margin-top: 10px; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-side h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; }
.contact-side p { color: var(--paper-dim); margin-bottom: 30px; }
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 46px; height: 46px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper-dim);
  text-decoration: none;
  transition: all 0.25s;
}
.social-links a:hover { border-color: var(--flame-2); color: var(--flame-2); transform: translateY(-3px); }
.social-links svg { width: 19px; height: 19px; }

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
form .field { margin-bottom: 20px; }
form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--paper-dim);
}
form input, form textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s;
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--flame-2);
}
form button { width: 100%; justify-content: center; }
.success {
  color: #6EE7A8;
  text-align: center;
  margin-top: 18px;
  display: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.form-error {
  color: #FF8A80;
  text-align: center;
  margin-top: 18px;
  display: none;
  font-weight: 500;
  font-size: 0.92rem;
}

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

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 34px;
}
footer .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
footer nav a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 0.88rem;
  margin-left: 22px;
}
footer nav a:hover { color: var(--paper); }
.disclaimer {
  font-size: 0.78rem;
  color: var(--steel-dim);
  max-width: 900px;
  line-height: 1.7;
}
.disclaimer + .disclaimer { margin-top: 10px; }
.foot-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  font-size: 0.74rem;
  color: #4d4a44;
  font-family: 'IBM Plex Mono', monospace;
}
