/* ============================================================
   CardShark marketing site: shared styles
   Brand: light, friendly SaaS blue. Same palette as the extension
   popup (#0d3d8e -> #1565c0 gradient, #f0f4fc light background).
   ============================================================ */

:root {
  --navy: #0d1b33;
  --blue-dark: #0d3d8e;
  --blue: #1565c0;
  --blue-light: #4b8bdb;
  --bg: #f4f7fd;
  --bg-card: #ffffff;
  --border: #dde5f5;
  --text: #1a2332;
  --text-muted: #5a6b85;
  --gold: #ffc531;
  --red: #e14b4b;
  --green: #1fa971;
  --green-soft: #6fd39a;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(13, 27, 51, 0.08);
  --shadow-float: 0 18px 40px rgba(13, 27, 51, 0.16);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #ffb300 100%);
  color: #241a00;
  box-shadow: 0 10px 24px rgba(255, 179, 0, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 30px rgba(255, 179, 0, 0.45);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn--outline {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--border);
}

.btn--outline:hover { border-color: var(--blue); }

.btn--block { width: 100%; justify-content: center; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 253, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
}

.nav__brand img { width: 46px; height: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links a:not(.btn) {
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav__links a:not(.btn):hover { color: var(--blue); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1a78d1 100%);
  padding: 81px 0 126px;
  isolation: isolate;
}

.hero__bg-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 197, 49, 0.18), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "title  visual"
    "rest   visual";
  gap: 40px;
  align-items: center;
}

.hero__title { grid-area: title; }
.hero__copy-rest { grid-area: rest; }
.hero__visual { grid-area: visual; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(111, 211, 154, 0.35);
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ffe27a, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  max-width: 480px;
  margin: 0 0 34px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__cta-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 600;
}

.hero__proof span { display: flex; align-items: center; gap: 7px; }
.hero__proof svg { flex-shrink: 0; }

/* ── Hero visual: mockup + floating cards ── */
.hero__visual {
  position: relative;
  z-index: 2;
  min-height: 420px;
}

.hero__mockup {
  position: relative;
  z-index: 3;
  max-width: 300px;
  margin: 0 auto;
  transform: rotate(-3deg);
}

/* The screenshot PNG already carries its own rounded corners + drop shadow
   (baked in at generation time), so the frame here is just sizing + tilt. */
.hero__mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Floating decorative TCG-style cards.
   Two-layer transform split: the outer .float-card-wrap is what the JS
   parallax nudges toward the cursor; the inner .float-card runs the CSS
   bob/rotate keyframe. Keeping them on separate elements means the JS
   inline transform and the CSS animation transform never fight each other. */
.float-card-wrap {
  position: absolute;
  width: 108px;
  aspect-ratio: 5 / 7;
  z-index: 1;
  transition: transform 0.35s ease-out;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.float-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}

.float-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.float-card__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero__mockup-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.float-card-wrap--mtg   { top: 6%; left: -4%; }
.float-card-wrap--poke  { top: 58%; left: 2%; }
.float-card-wrap--ygo   { top: 4%; right: -2%; }
.float-card-wrap--mtg2  { bottom: -4%; right: 12%; }

.float-card--mtg   { animation-duration: 7.5s; --r: -10deg; }
.float-card--poke  { animation-duration: 8.5s; animation-delay: -2s; --r: 7deg; }
.float-card--ygo   { animation-duration: 6.5s; animation-delay: -4s; --r: 12deg; }
.float-card--mtg2  { animation-duration: 9s; animation-delay: -1s; --r: -6deg; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-18px) rotate(var(--r, 0deg)); }
}

.badge-deal   { background: rgba(31, 169, 113, 0.95); }
.badge-soft   { background: rgba(111, 211, 154, 0.95); color: #0d3d2c; }
.badge-market { background: rgba(255, 255, 255, 0.85); color: #4a5568; }
.badge-over   { background: rgba(225, 75, 75, 0.95); }

@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}

/* ── Section scaffolding ── */
section { padding: 50px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

.section-head .kicker {
  display: inline-block;
  color: var(--blue);
  background: #e8f0fe;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin: 0;
}

/* ── Feature grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(13, 27, 51, 0.12);
}

.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card h3 { margin: 0 0 8px; font-size: 17.5px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
}

.step { position: relative; padding-left: 4px; }

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ── Showcase (screenshots) ── */
.showcase {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.showcase-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #eef4ff, #e4edfd);
  display: flex;
  flex-direction: column;
}

.showcase-card__frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 24px 10px;
  min-height: 280px;
}

.showcase-card img { width: 100%; max-height: 320px; object-fit: contain; }

.showcase-card__img--framed {
  border-radius: 14px;
  box-shadow: var(--shadow-float);
}

.showcase-card__label {
  padding: 16px 18px 20px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.showcase-card__label strong { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 3px; }

/* ── Free banner ── */
.free-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.free-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 197, 49, 0.25), transparent 55%);
}

.free-banner > * { position: relative; z-index: 1; }

.free-banner h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 14px; }
.free-banner p { color: rgba(255, 255, 255, 0.85); font-size: 16.5px; max-width: 520px; margin: 0 auto 30px; }

.free-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 14.5px;
}

.free-list li { display: flex; align-items: center; gap: 8px; }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 680px;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; }
.footer-brand img { width: 32px; }

.footer-tagline { color: rgba(255, 255, 255, 0.55); font-size: 13.5px; margin-top: 10px; max-width: 280px; }

.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Privacy / static content pages ── */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 70px 0 56px;
  color: #fff;
}

.page-header h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.page-header p { color: rgba(255, 255, 255, 0.82); margin: 0; font-size: 15px; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.doc h2 { font-size: 22px; margin: 40px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc p { color: #33415a; font-size: 15.5px; line-height: 1.7; margin: 0 0 16px; }
.doc ul { color: #33415a; font-size: 15.5px; line-height: 1.7; padding-left: 22px; }
.doc li { margin-bottom: 6px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14.5px;
}

.doc th, .doc td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.doc th { background: #eef4ff; color: var(--blue); font-weight: 700; }

.doc-callout {
  background: #eef7f1;
  border: 1px solid #cdeadb;
  color: #14603f;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  margin: 24px 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "visual" "rest";
  }
  .hero__visual { min-height: 320px; margin: 30px 0; }
  .hero__mockup { max-width: 260px; }
  .float-card-wrap { width: 96px; }
  .features, .steps, .showcase-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  section { padding: 32px 0; }
  .features, .steps, .showcase-grid { grid-template-columns: 1fr; }
  .free-banner { padding: 40px 24px; }
  .hero__mockup { max-width: 220px; }
  .float-card-wrap { width: 80px; }
}
