/* ==========================================================================
   DevOpser 2026 — global design layer
   Matches the visual language of lite.devopser.io landing pages.
   Linked FIRST on every page; page-specific CSS may selectively override.
   ========================================================================== */

/* ---------- Tokens (verified against live lite pages) ---------- */
:root {
  /* Surfaces */
  --ink: #0a0e1a;
  --ink-2: #0f1424;
  --ink-3: #161d33;
  --ink-4: #1c2541;

  /* Borders / rules */
  --rule: #1f2940;
  --rule-2: #2d3858;

  /* Accent */
  --pink: #ED166C;
  --pink-2: #c41058;
  --pink-3: #ff3d8b;
  --pink-glow: rgba(237, 22, 108, 0.45);
  --pink-soft: rgba(237, 22, 108, 0.18);

  /* Semantic accents */
  --hi: #fde047;
  --hi-2: #facc15;
  --good: #34d399;

  /* Text */
  --text: #f7f8fb;
  --text-2: #aab2c7;
  --text-3: #6b7388;
  --text-4: #4a526a;

  /* Layout */
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Radii */
  --radius-button: 3px;
  --radius-card: 8px;
  --radius-pill: 999px;

  /* Type stack */
  --font-display: 'Saira Condensed', 'Heebo', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Heebo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Heebo', ui-monospace, monospace;
}

/* ---------- Base reset / body ---------- */
html {
  scroll-behavior: smooth;
  background-color: var(--ink);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 400px at 88% -8%, rgba(237, 22, 108, 0.10), transparent 60%),
    radial-gradient(700px 600px at -10% 30%, rgba(253, 224, 71, 0.025), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Force the new font stack across the site, overriding hard-coded
   -apple-system rules in legacy page CSS (typography.css, blog-list.css,
   founder-image.css, etc.). High specificity body-rooted selector. */
body,
body input,
body textarea,
body select,
body button {
  font-family: var(--font-body);
}

body h1,
body h2,
body h3,
body .h1,
body .h2,
body .h3,
body .featured-platform h2,
body .cta h2,
body .as-seen-in h2,
body .community-section h2,
body .choose-us h2,
body .posts h2,
body .about h2,
body .about-text h3,
body .benefit h3,
body .community-card h3,
body .post h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

body h4, body h5, body h6 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* Better default wrapping site-wide:
   - Headings: balance avoids 1-word last lines and awkward early breaks
   - Body prose: pretty avoids single-word orphans on the last line
   Browsers without text-wrap support simply fall through to normal wrap. */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; overflow-wrap: break-word; }
p, li { text-wrap: pretty; }

::selection { background: var(--pink); color: #fff; }

/* ---------- Type scale ---------- */
.h-display,
body main h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
}

/* Section titles — apply to h2s inside main */
body main h2 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

body main h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1rem; color: var(--text); }
.subhead, .subtitle { color: var(--text-2); font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.55; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-3); }

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

/* ---------- Editorial primitives ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
}
.kicker-num {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  background: var(--ink-3);
  border: 1px solid var(--rule-2);
  color: var(--hi);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--hi);
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 0.42rem 0.7rem;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.cta-primary,
body a.btn-primary,
body a.btn,
body button.btn,
body .featured-platform a.btn-primary,
body .cta a.btn,
body .about-text > a,
body .card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--pink);
  background-image: none;
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-button);
  border: none;
  box-shadow: 0 0 0 0 var(--pink-glow);
  transition: background 150ms ease, box-shadow 200ms ease, transform 200ms ease;
  cursor: pointer;
  text-decoration: none;
}
.cta-primary:hover,
body a.btn-primary:hover,
body a.btn:hover,
body .card-button:hover,
body .about-text > a:hover {
  background: var(--pink-3);
  background-image: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px var(--pink-glow);
}

.cta-secondary,
body a.btn-secondary,
body .featured-platform a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--rule-2);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 200ms ease;
  cursor: pointer;
  text-decoration: none;
}
.cta-secondary:hover,
body a.btn-secondary:hover {
  color: var(--text);
  background: var(--ink-3);
  border-color: var(--pink);
  transform: translateY(-1px);
}

/* ---------- Header / nav ---------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
}
body > header .container {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-direction: row;
}
body > header .logo img { height: 32px; width: auto; }

body > header nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body > header nav ul li { margin: 0; padding: 0; position: relative; }
body > header nav ul li a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
  padding: 0.45rem 0;
  display: inline-block;
  transition: color 120ms ease;
}
body > header nav ul li a:hover { color: var(--text); }

body > header nav ul li a.highlight-nav {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: var(--pink);
  background-image: none;
  color: #fff;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-button);
  box-shadow: 0 0 0 0 var(--pink-glow);
  transition: background 150ms ease, box-shadow 200ms ease, transform 200ms ease;
}
body > header nav ul li a.highlight-nav:hover {
  background: var(--pink-3);
  background-image: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px var(--pink-glow);
}

/* Submenus */
body > header nav ul li.dropdown {
  padding: 0.25rem 0;
}
body > header nav ul .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.6rem;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 0.4rem 0;
  margin-top: 0.5rem;
  list-style: none;
  min-width: 240px;
  z-index: 110;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
}
/* Invisible hover bridge — fills the visual gap above the submenu so
   the cursor can travel from parent <li> down into the menu without
   the :hover state breaking and the submenu collapsing. */
body > header nav ul .submenu::before {
  content: '';
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 0.7rem;
  background: transparent;
}
body > header nav ul li.dropdown:hover > .submenu,
body > header nav ul li.dropdown:focus-within > .submenu {
  display: block;
}
body > header nav ul .submenu li { width: 100%; margin: 0; }
body > header nav ul .submenu li a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
  border-radius: 0;
}
body > header nav ul .submenu li a:hover {
  background: var(--ink-3);
  color: var(--pink-3);
}

/* Mobile menu (existing checkbox-driven pattern) */
body > header .menu-toggle { display: none; }
body > header .menu-icon { display: none; cursor: pointer; color: var(--text); font-size: 1.6rem; }

@media (max-width: 880px) {
  body > header .container { flex-direction: row; }
  body > header .menu-icon {
    display: block;
    position: relative;
    z-index: 120;
  }
  body > header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--rule);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 110;
  }
  body > header .menu-toggle:checked ~ nav { display: block; }
  body > header nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0;
  }
  body > header nav ul li { width: 100%; text-align: left; }
  body > header nav ul li a {
    padding: 0.85rem var(--pad);
    display: block;
  }
  body > header nav ul li a.highlight-nav {
    margin: 0.5rem var(--pad);
    display: inline-block;
  }
  body > header nav ul .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--rule);
    border-radius: 0;
    padding: 0;
    background: var(--ink-3);
  }
  body > header nav ul li.dropdown > a::after {
    content: ' \25BC';
    font-size: 0.6em;
    margin-left: 0.4em;
    color: var(--text-3);
  }
  body > header nav ul li.dropdown:hover > .submenu,
  body > header nav ul li.dropdown:focus-within > .submenu { display: none; }
  body > header nav ul li.dropdown.active > .submenu { display: block; }
}

/* ---------- Section rhythm ---------- */
body main > section,
body main > div.featured-platform {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

body main > section > .container,
body main > div.featured-platform > .container,
body main .container {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Headings inside sections center by default (matches existing layouts) */
body main > section > h2,
body main > section > .container > h2,
body main > section > h2 + p,
body main > section > .container > h2 + p {
  text-align: center;
}
body main > section > h2,
body main > section > .container > h2 {
  max-width: var(--max);
  margin: 0 auto 1.2rem;
  padding: 0 var(--pad);
}
body main > section > .subtitle,
body main > section > .container > .subtitle,
body main > section > p {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 0 var(--pad);
  color: var(--text-2);
  text-align: center;
}

/* ---------- Hero / featured-platform ---------- */
body .featured-platform {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(237, 22, 108, 0.07), transparent 60%);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
body .featured-platform .container { text-align: center; }
body .featured-platform h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0 auto 1.4rem;
  color: var(--text);
  max-width: 980px;
}
body .featured-platform p {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 2.2rem;
  line-height: 1.55;
}
body .featured-platform .buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Surface alternation ---------- */
body .as-seen-in,
body .choose-us,
body .posts {
  background: var(--ink-2);
}
body .community-section,
body .about {
  background: var(--ink);
}

/* ---------- Cards (generic + named) ---------- */
.card,
body .community-card,
body .benefit,
body .post {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.card:hover,
body .community-card:hover,
body .benefit:hover,
body .post:hover {
  border-color: var(--rule-2);
  transform: translateY(-2px);
  box-shadow: none;
}

/* Top pink rule on hover for the "elevated" cards */
body .community-card,
body .benefit,
body .post {
  isolation: isolate;
}
body .community-card::before,
body .benefit::before,
body .post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(.2, .7, .2, 1);
}
body .community-card:hover::before,
body .benefit:hover::before,
body .post:hover::before { transform: scaleX(1); }

/* Card text colors */
body .community-card,
body .community-card h3,
body .community-card p,
body .benefit,
body .benefit h3,
body .benefit p,
body .post,
body .post h3,
body .post p {
  color: var(--text);
}
body .community-card p,
body .benefit p,
body .post p { color: var(--text-2); }

body .community-card h3,
body .benefit h3,
body .post h3 {
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-weight: 800;
}

/* Community section override: remove old white background, dark surface */
body .community-section { padding: var(--section-y) 0; }
body .community-section h2 { color: var(--text); letter-spacing: -0.01em; }
body .community-section p.subtitle { color: var(--text-2); }
body .community-section::before,
body .choose-us::before,
body .about::before,
body .posts::before {
  display: none !important;
  content: none !important;
}

body .community-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  align-items: stretch;
}
body .community-card { padding: 1.8rem 1.6rem; text-align: left; display: flex; flex-direction: column; }
body .community-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-button);
  background: var(--pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
body .community-card .card-icon i { color: #fff; font-size: 1.15rem; }
body .community-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.005em;
  color: var(--text);
}
body .community-card p {
  flex: 1;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-2);
}
body .community-card a.card-button {
  align-self: flex-start;
  font-size: 0.78rem;
  padding: 0.7rem 1.1rem;
}

/* ---------- Choose-us / benefits ---------- */
body .choose-us h2 { color: var(--text); }
body .benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
body .benefit { padding: 2rem 1.6rem; text-align: left; }
body .benefit h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  padding-bottom: 0.5rem;
  position: relative;
}
body .benefit h3::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--pink);
  margin: 0.6rem 0 0;
  position: static;
}
body .benefit p { color: var(--text-2); font-weight: 400; }

/* ---------- About / founder ---------- */
body .about { background: var(--ink); }
body .about h2 { color: var(--text); }
body .about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  align-items: center;
}
body .about-content > img {
  border-radius: var(--radius-card);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 60px -28px rgba(237, 22, 108, 0.4);
  width: 100%;
  height: auto;
}
body .about-text { text-align: left; }
body .about-text h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-transform: none;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
body .about-text p { color: var(--text-2); }
body .founder-name {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  margin: 0;
}
body .founder-title { color: var(--text-3); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

body .founder-social a {
  background: var(--ink-3) !important;
  color: var(--text-2) !important;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-button);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease, border-color 120ms ease;
}
body .founder-social a:hover {
  color: var(--pink-3) !important;
  border-color: var(--pink);
  background: var(--ink-3) !important;
}

@media (min-width: 768px) {
  body .about-content { grid-template-columns: 1fr 1.1fr; }
}

/* ---------- Posts ---------- */
body .posts h2 { color: var(--text); }
body .post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  justify-content: stretch;
}
body .post {
  text-align: left;
  flex-basis: auto;
  max-width: none;
}
body .post a { display: block; color: inherit; }
body .post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-bottom: 1px solid var(--rule);
}
body .post h3 {
  padding: 1.2rem 1.4rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  color: var(--text);
  text-transform: none;
  line-height: 1.2;
}
body .post p { padding: 0 1.4rem 1.2rem; color: var(--text-2); }
body .post .read-more {
  color: var(--pink-3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body .post .read-more:hover { color: var(--pink); }
body .view-all-posts-link {
  color: var(--pink-3);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body .view-all-posts-link:hover { color: var(--text); }
body .view-all-posts-container { text-align: center; margin-top: 2.5rem; }

/* ---------- As-seen-in press strip ---------- */
body .as-seen-in {
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
body .as-seen-in h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
body .as-seen-in-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
body .as-seen-in-logo img {
  filter: grayscale(100%) brightness(1.6);
  opacity: 0.55;
  transition: filter 200ms ease, opacity 200ms ease;
  max-height: 36px;
  width: auto;
}
body .as-seen-in-logo:hover img {
  filter: grayscale(0%) brightness(1.2);
  opacity: 1;
}
body .many-more p {
  text-align: center;
  color: var(--pink-3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.5rem 0 0;
  border: 0;
}

/* ---------- AWS partner badge tweaks ---------- */
body .aws-partner-badge span {
  color: var(--text-2);
  background: var(--ink-3);
}
body .aws-partner-badge img {
  background: rgba(255, 255, 255, 0.92);
}

/* ---------- CTA / finale ---------- */
body .cta {
  background:
    radial-gradient(900px 500px at 50% 100%, var(--pink-soft), transparent 60%),
    var(--ink);
  border-top: 1px solid var(--rule);
  text-align: center;
}
body .cta .container { max-width: 760px; }
body .cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 auto 1rem;
  max-width: 720px;
  padding: 0;
}
body .cta p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
body > footer {
  background: var(--ink);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  color: var(--text-3);
  text-align: center;
}
body > footer .container { max-width: var(--max); padding: 0 var(--pad); }
body > footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
body > footer .footer-social h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}
body > footer .footer-social .social-links { display: flex; gap: 0.7rem; justify-content: center; }
body > footer .footer-social .social-links a {
  background: var(--ink-3);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-button);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
body > footer .footer-social .social-links a:hover {
  border-color: var(--pink);
  background: var(--ink-3);
  color: var(--pink-3);
}
body > footer .footer-social .social-links a i { color: var(--text-2); font-size: 1rem; }
body > footer .footer-social .social-links a:hover i { color: var(--pink-3); }

body > footer .footer-links {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
}
body > footer .footer-links a {
  color: var(--text-3);
  margin: 0 0.4rem;
  transition: color 120ms ease;
}
body > footer .footer-links a:hover { color: var(--pink-3); }
body > footer .footer-links p {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-4);
}

/* ---------- Generic forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], textarea, select {
  background: var(--ink-2);
  color: var(--text);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-button);
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}
::placeholder { color: var(--text-4); }
label { color: var(--text-2); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- A11y ---------- */
:focus-visible {
  outline: 2px solid var(--pink-3);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Cookie banner + modal (new design system) ---------- */
.cookie-consent-banner,
#cookie-banner,
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-2);
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.45);
}
.cookie-consent-banner p,
#cookie-banner p,
.cookie-banner p {
  margin: 0;
  flex: 1 1 320px;
  color: var(--text-2);
}
.cookie-consent-banner a,
#cookie-banner a,
.cookie-banner a {
  color: var(--pink-3);
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
}
.cookie-consent-banner .cookie-buttons,
#cookie-banner .cookie-buttons,
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cookie-preferences-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(10, 14, 26, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cookie-preferences-modal.visible,
.cookie-preferences-modal[aria-hidden="false"] { display: flex; }

.cookie-preferences-modal .modal-content,
.cookie-preferences-modal > div {
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  color: var(--text);
}
.cookie-preferences-modal h2,
.cookie-preferences-modal h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.cookie-preferences-modal h2 { font-size: 1.6rem; }
.cookie-preferences-modal h3 { font-size: 1rem; }
.cookie-preferences-modal p { color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }
.cookie-preferences-modal .category,
.cookie-preferences-modal .cookie-category {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.cookie-preferences-modal .category:first-of-type,
.cookie-preferences-modal .cookie-category:first-of-type {
  border-top: 0;
}
.cookie-preferences-modal .modal-actions,
.cookie-preferences-modal .cookie-modal-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Toggle switches */
.cookie-preferences-modal .toggle-switch,
.cookie-preferences-modal label.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-preferences-modal .toggle-switch input,
.cookie-preferences-modal label.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-preferences-modal .toggle-switch .slider,
.cookie-preferences-modal label.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--ink-3);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.cookie-preferences-modal .toggle-switch .slider::before,
.cookie-preferences-modal label.switch .slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  background: var(--text-2);
  border-radius: 50%;
  transition: transform 200ms ease, background 150ms ease;
}
.cookie-preferences-modal .toggle-switch input:checked + .slider,
.cookie-preferences-modal label.switch input:checked + .slider {
  background: var(--pink);
  border-color: var(--pink);
}
.cookie-preferences-modal .toggle-switch input:checked + .slider::before,
.cookie-preferences-modal label.switch input:checked + .slider::before {
  transform: translateX(18px);
  background: #fff;
}
.cookie-preferences-modal .toggle-switch input:disabled + .slider {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Callouts (blog / docs) ---------- */
.callout,
aside.callout {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pink);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.7rem;
  margin: 2rem 0;
  color: var(--text);
}
.callout h3,
.callout h4,
.callout p { color: var(--text); }
.callout h3,
.callout h4 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.callout h4 + p,
.callout h3 + p { margin: 0 0 1rem; color: var(--text-2); }
.callout > *:last-child { margin-bottom: 0; }
.callout h4 i,
.callout h3 i { color: var(--pink-3); }

.callout-feature { border-left-color: var(--pink); }
.callout-success { border-left-color: var(--good); }
.callout-success h3 i,
.callout-success h4 i { color: var(--good); }
.callout-warning { border-left-color: var(--hi); }
.callout-warning h3 i,
.callout-warning h4 i { color: var(--hi); }

/* Inline single-paragraph callout — common in blog posts */
p.callout {
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
}

/* ---------- Utility helpers ---------- */
.section-dark { background: var(--ink); }
.section-elevated { background: var(--ink-2); }
.section-subtle { background: var(--ink-3); }

.hero {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(237, 22, 108, 0.10), transparent 60%),
    transparent;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.finale {
  background:
    radial-gradient(900px 500px at 50% 100%, var(--pink-soft), transparent 60%),
    var(--ink);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

/* ---------- Mobile typography & spacing ---------- */
@media (max-width: 880px) {
  body main > section,
  body main > div.featured-platform { padding-top: clamp(2.5rem, 7vw, 4rem); padding-bottom: clamp(2.5rem, 7vw, 4rem); }
  body .featured-platform h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  body main h2 { font-size: clamp(1.7rem, 7vw, 2.5rem); }
  body .cta h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  body > footer .footer-content { gap: 1.2rem; }
}
