/* ================================
   GLOBAL
================================ */
:root {
  --bg: #060e20;
  --bg2: #091328;
  --surface: #0f1930;
  --surface-soft: #141f38;
  --surface-soft-2: #192540;

  --text: #dee5ff;
  --text-muted: #a3aac4;

  --primary: #cc97ff;
  --primary-strong: #9c48ea;
  --secondary: #e197fc;
  --tertiary: #ff95a0;
  --text-button: #46007c;

  --border: #40485d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ================================
   LAYOUT
================================ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 20px 40px;
}

/* ================================
   LOGO
================================ */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 32px;
  height: 32px;
}

/* ================================
   HEADER
================================ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px;
  backdrop-filter: blur(20px);
  background: rgba(9, 19, 40, 0.6);
  display: flex;
  justify-content: space-between;
  z-index: 100;
}

.logo {
  font-weight: 800;
  color: var(--primary);
  font-size: 20px;
}

/* ================================
   HERO
================================ */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(204, 151, 255, 0.1);
  border: 1px solid rgba(204, 151, 255, 0.2);
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--primary-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-btn {
  width: 100%;
  padding: 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, var(--primary), var(--primary-strong));
  color: black;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

/* HERO spacing fix */
.hero {
  margin-bottom: 80px;
}

/* ================================
   CTA BUTTON
================================ */

.cta-btn {
  width: 100%;

  /* Size (≈ 3x text height) */
  font-size: 18px;
  height: 64px; /* key change */

  /* Text */
  color: var(--text-button);
  font-weight: 700;

  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Style */
  border-radius: 999px;
  border: none;
  cursor: pointer;

  /* Background */
  background: linear-gradient(to right, var(--primary), var(--primary-strong));

  /* Effects */
  box-shadow: 0 10px 30px rgba(156, 72, 234, 0.25);
  transition: all 0.2s ease;
}

/* Hover / Press (optional but recommended) */
.cta-btn:hover {
  filter: brightness(1.1);
}

.cta-btn:active {
  transform: scale(0.98);
}

/* ================================
   TYPOGRAPHY
================================ */
/* Base body text */
body {
  font-size: 22px; /* was ~16px → slightly larger */
  line-height: 1.7;
}

/* Main H1 */
h1 {
  font-size: 67px;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* Section Titles (H2) */
.section-title {
  color: var(--primary); /* Primary pink */
  font-weight: 700;
  margin-bottom: 24px;
}

/* Body text */
p {
  line-height: 1.8;
}

/* Paragraphs inside sections */
.card p,
.step p,
.grid-box p,
.faq-item p {
  font-size: 22px;
  line-height: 1.7;
}

/* Step titles */
.step h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.cta-link {
  background: linear-gradient(to right, #cc97ff, #9c48ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.cta-link:hover {
  opacity: 0.8;
}

/* ================================
   SECTIONS
================================ */

.section {
  margin-bottom: 96px; /* main vertical spacing */
}

/* ================================
   CARD SECTION
================================ */

.card {
  position: relative;
  overflow: hidden;

  padding: 28px 36px;
  border-radius: 16px;

  background: var(--bg2);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card,
.step,
.grid-box,
.faq-item {
  padding-left: 40px;
  padding-right: 40px;
}

/* ================================
   CARD QR BACKGROUND
================================ */

.card::after {
  content: "";
  position: absolute;

  bottom: 0;
  right: 0;

  width: 200px;
  height: 200px;

  background: url("/graphics/images/qr.png") no-repeat center;
  background-size: contain;

  opacity: 1; /* TEMP */
  z-index: 0; /* TEMP */
  /* border: 2px solid red; /* TEMP */
}
/* ================================
   STEPS
================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step {
  position: relative;
  background: var(--surface);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.step-number {
  position: absolute;
  left: -10px;
  top: -30px;
  font-size: 120px;
  color: rgba(204, 151, 255, 0.08);
  font-weight: 800;
  z-index: 0;
  pointer-events: none;
}

.step h3 {
  margin: 0 0 6px;
}

.step p {
  color: var(--text-muted);
}

/* ================================
   GRID / BENTO
================================ */
.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-box {
  background: var(--surface-soft);
  padding: 20px 32px;
  border-radius: 12px;
}

/* ================================
   LISTS
================================ */
.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  background: var(--bg2);
  padding: 14px;
  border-radius: 10px;
  color: var(--text-muted);
}

/* ================================
   BEST PRACTICES
================================ */
.best-practices .list-item {
  background: var(--bg);
  border: 2px solid var(--bg2);
  border-radius: 10px;
  padding: 16px 18px;
}

.best-practice-icon svg {
  width: 25px;
  height: 25px;
  margin-right: 14px; /* increase this */
  color: var(--primary);
  vertical-align: middle; /* aligns icon to text center on Y axis */
}
.best-practice-icon-alt svg {
  width: 25px;
  height: 25px;
  margin-right: 14px; /* increase this */
  color: var(--tertiary);
  vertical-align: middle; /* aligns icon to text center on Y axis */
}
/* ================================
   FAQ
================================ */
.faq {
  display: flex;
  flex-direction: column;
  margin-bottom: 96px;
  gap: 14px;
}

/* Base FAQ card */
.faq-item {
  background: var(--surface);
  padding: 20px 32px; /* increased internal spacing */
  border-radius: 14px;
}

.faq-item.alt {
  margin-left: 20px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 20px;
}

.faq-item:nth-child(even) {
  margin-left: 40px;
}

/* =========================================
RELATED TOOLS
========================================= */
.related-tools {
  margin-top: 60px;
  margin-bottom: 40px;
}

.related-tools-title {
  display: flex;
  align-items: center;
  justify-content: space-between; /* title left, link right */
  gap: 10px;
  text-align: left; /* force left alignment */
  margin-bottom: 20px;
}

.related-tools-title .view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-strong);
  text-decoration: none;
  white-space: nowrap;
}

.related-tools-title .view-all:hover {
  text-decoration: underline;
  align-items: center; /* vertically center relative to h2 */
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tool-link {
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 10px;
}

.tool-icon svg {
  width: 25px;
  height: 25px;
  color: var(--primary);
}

.tool-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tool-link:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  background: rgba(124, 43, 238, 0.05);
}

.related-tool-icon svg {
  width: 25px;
  height: 25px;
  color: var(--color-icon);
  vertical-align: middle; /* aligns icon to text center on Y axis */
}

/* ================================
   RELATED ARTICLES
================================ */
.related-articles {
  margin-top: 60px;
  margin-bottom: 40px;
}

.related-articles-title {
  display: flex;
  align-items: center;
  justify-content: space-between; /* title left, link right */
  gap: 10px;
  text-align: left; /* force left alignment */
  margin-bottom: 20px;
}

.related-articles-title .view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-strong);
  text-decoration: none;
  white-space: nowrap;
}
/* ================================
   FINAL CTA
================================ */
.cta-card {
  background: linear-gradient(
    to bottom right,
    var(--surface),
    var(--surface-soft-2)
  );
  padding: 30px 100px;
  border-radius: 30px;
  margin-top: 60px;
  text-align: center;
}

.cta-card h2 {
  margin: 10px 0;
}

.cta-icon svg {
  width: 80px;
  height: 80px;
  color: var(--primary);
  vertical-align: middle; /* aligns icon to text center on Y axis */
}

.cta-card * {
  position: relative;
  z-index: 1;
}

.cta-btn {
  text-decoration: none;
}

.cta-btn {
  z-index: 20;
}

/* ========================================= 
COOKIE CONSENT MODAL 
========================================= */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}
.cookie-modal.show {
  display: flex;
}
.cookie-modal-content {
  background: #0f172a;
  border: 1px solid rgba(124, 43, 238, 0.25);
  border-radius: 14px;
  max-width: 520px;
  width: 90%;
  padding: 28px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.cookie-modal-content h3 {
  text-align: center;
  margin-bottom: 20px;
}

.cookie-modal-content p {
  text-align: left;
}

.cookie-modal a {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 500;
}
.cookie-modal a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.cookie-buttons button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.cookie-buttons button:hover {
  transform: translateY(-1px);
}
#accept-cookies-modal {
  background: var(--primary-strong);
  color: white;
}
#decline-cookies-modal {
  background: #444;
  color: white;
}

/* ================================
   FOOTER
================================ */
footer {
  margin-top: 40px;
  padding: 30px;
  text-align: center;
  color: #777;
  font-size: 14px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  .container {
    max-width: 1100px;
  }
  .hero {
    text-align: left;
    max-width: 800px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .step {
    text-align: left;
  }

  .tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}
