@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   MAIN.CSS — Dark premium "tech-editorial" theme
   Font: Inter only. Accent: #31cafd.
   Sections:
     1. Tokens
     2. Reset
     3. Base & typography
     4. Fade-in (IntersectionObserver: .is-visible)
     5. Layout (container, section, section-title, content)
     6. Navbar (two-level, fixed) + hamburger
     7. Hero
     8. Screenshots
     9. Cards
    10. Tables
    11. Blockquote / pull-quote
    12. Code / pre
    13. Lists, lead, dropcap, helpers
    14. Details / accordion
    15. Section dividers
    16. Footer
    17. Responsive
    18. Reduced motion
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  --bg: #060d14;
  --bg2: #0a1520;
  --bg3: #0d1a28;
  --surface: #0f2030;
  --surface2: #132638;
  --border: #1a3347;
  --text: #e8f4f8;
  --text2: #7ba8be;
  --text3: #3d6a82;
  --accent: #31cafd;
  --accent-dim: rgba(49,202,253,0.12);
  --accent-glow: rgba(49,202,253,0.2);
  --accent-dark: #1a9cc8;
  --white: #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;

  --nav-top-height: 64px;
  --nav-menu-height: 40px;
  --nav-total-height: 104px;

  --container: 1100px;
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-deep: 0 18px 40px rgba(0, 0, 0, 0.55);
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-total-height) + 1rem);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

strong,
b {
  font-weight: 600;
}


/* ==========================================================================
   3. BASE & TYPOGRAPHY
   ========================================================================== */

body {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-total-height);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(49, 202, 253, 0.05), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

h2 {
  font-weight: 600;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

h3 {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--white);
}

h4 {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
}

h5 {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.45;
}

h6 {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
}

p {
  line-height: 1.75;
  color: var(--text);
}

small {
  font-size: 0.85em;
  color: var(--text2);
}

em,
i {
  font-style: italic;
}

.muted {
  color: var(--text2);
}

.text-tertiary {
  color: var(--text3);
}

/* Text links inside content */
.content a,
main p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(49, 202, 253, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition), text-shadow var(--transition);
}

.content a:hover,
main p a:hover {
  color: var(--white);
  text-decoration-color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ==========================================================================
   4. FADE-IN  (JS adds .is-visible via IntersectionObserver)
   Placed before components so component hover transforms win.
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   5. LAYOUT
   ========================================================================== */

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

.section {
  position: relative;
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title[data-index]::before {
  content: attr(data-index);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title[data-index]::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(to right, var(--accent-dark), var(--accent));
  border-radius: 2px;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-family: var(--font);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text2);
}

.section-subtitle.lead {
  font-style: normal;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text2);
}

/* Section title followed by content with no subtitle */
.section-title + .content,
.section-title + .cards,
.section-title + .screenshots-grid {
  margin-top: 2.75rem;
}

.content {
  color: var(--text);
}

.content--measure {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.content > * + * {
  margin-top: 1.25rem;
}

.content h2 {
  margin-top: 2.75rem;
}

.content h3 {
  margin-top: 2.25rem;
}

.content h2 + p,
.content h3 + p,
.content h2 + ul,
.content h3 + ul,
.content h2 + ol,
.content h3 + ol {
  margin-top: 0.85rem;
}

.content p {
  color: var(--text);
}

.content p + p {
  margin-top: 1.1rem;
}

.content strong {
  color: var(--white);
  font-weight: 600;
}


/* ==========================================================================
   6. NAVBAR — two-level, fixed
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Level 1: logo bar */
.navbar-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-top-height);
  padding: 0 1.5rem;
  background: rgba(10, 21, 32, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

/* Level 2: menu bar */
.navbar-nav {
  position: fixed;
  top: var(--nav-top-height);
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-menu-height);
  padding: 0 1.5rem;
  background: rgba(10, 21, 32, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled .navbar-top,
.navbar-top.scrolled {
  background: rgba(10, 21, 32, 0.92);
}

.navbar.scrolled .navbar-nav,
.navbar-nav.scrolled,
.navbar.scrolled,
.navbar-top.scrolled {
  box-shadow: 0 2px 20px rgba(49, 202, 253, 0.08);
}

.navbar-nav li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-nav li::after {
  content: '|';
  display: inline-block;
  margin: 0 0.15rem;
  font-weight: 300;
  color: var(--border);
  pointer-events: none;
  user-select: none;
}

.navbar-nav li:last-child::after {
  content: none;
}

.navbar-nav a {
  display: inline-flex;
  align-items: center;
  height: var(--nav-menu-height);
  padding: 0 0.9rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  box-shadow: inset 0 -2px 0 transparent;
  transition: color var(--transition), box-shadow var(--transition), text-shadow var(--transition);
}

.navbar-nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
}

.navbar-nav a.active,
.navbar-nav li.active > a {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.navbar-nav .sep {
  color: var(--border);
  font-weight: 300;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: filter var(--transition), transform var(--transition), opacity var(--transition);
}



.logo:hover {
  filter: drop-shadow(0 0 10px var(--accent-glow));
  transform: translateY(-1px);
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--accent-dim);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, width 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}


/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 5rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 202, 253, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 202, 253, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-kicker::before,
.hero-kicker::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero-title,
.hero h1 {
  position: relative;
  margin: 0 auto;
  color: var(--white);
  text-shadow: 0 0 40px rgba(49, 202, 253, 0.12);
}

.hero-title::after,
.hero h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin: 1.75rem auto 0;
  background: linear-gradient(to right, var(--accent-dark), var(--accent));
  border-radius: 2px;
  box-shadow: 0 0 16px var(--accent-glow);
}

.hero-subtitle {
  max-width: 660px;
  margin: 1.75rem auto 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Plain <hr> right after the hero */
.hero + hr {
  margin: 0 auto;
}

/* Buttons (helper; not required by templates) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--bg);
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
}


/* ==========================================================================
   8. SCREENSHOTS
   ========================================================================== */

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.screenshots-grid figure {
  margin: 0;
}

.screenshots-grid img,
.screenshot {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-slow), border-color var(--transition), box-shadow var(--transition-slow), opacity 0.6s ease;
}

.screenshots-grid figure:hover img,
.screenshots-grid figure:hover .screenshot,
.screenshot:hover,
.screenshot.is-visible:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: var(--shadow-deep), 0 0 24px var(--accent-dim);
}

.screenshots-grid figcaption,
.caption {
  margin-top: 0.9rem;
  text-align: center;
  font-family: var(--font);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text3);
}


/* ==========================================================================
   9. CARDS
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-dark), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover,
.card.is-visible:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim), var(--shadow-soft);
  transform: translateY(-3px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-title,
.card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--white);
}

.card-text {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text2);
}

.card-meta {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.card-link,
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

.card-link::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-link:hover,
.card a.card-link:hover {
  color: var(--white);
  text-shadow: 0 0 12px var(--accent-glow);
}

.card-link:hover::after {
  transform: translateX(4px);
}


/* ==========================================================================
   10. TABLES
   ========================================================================== */

.data-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th {
  padding: 0.85rem 1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text3);
  border-bottom: 2px solid var(--accent);
  vertical-align: bottom;
}

.data-table td {
  padding: 0.9rem 1rem;
  line-height: 1.6;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  transition: background var(--transition), color var(--transition);
}

.data-table tbody th,
.data-table th[scope="row"] {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  white-space: nowrap;
  transition: background var(--transition);
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background: var(--surface2);
}

.data-table tbody tr:hover td {
  color: var(--text);
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: 0;
}

.data-table td strong {
  color: var(--text);
}

/* Tables inside the reading measure: horizontal scroll is handled by the .table-scroll wrapper */
.content--measure .data-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.content--measure .data-table th,
.content--measure .data-table td {
  min-width: 120px;
}


/* ==========================================================================
   11. BLOCKQUOTE / PULL-QUOTE
   ========================================================================== */

blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.35rem 1.6rem;
  font-family: var(--font);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text2);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

blockquote p {
  color: inherit;
}

blockquote p + p {
  margin-top: 0.75rem;
}

blockquote cite,
blockquote footer {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.pull-quote {
  position: relative;
  margin: 3rem 0;
  padding: 1.75rem 2rem 1.75rem 3.5rem;
  font-family: var(--font);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--white);
  background: linear-gradient(to right, var(--accent-dim), transparent 70%);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.4rem;
  left: 1rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
  pointer-events: none;
}

.pull-quote p {
  color: inherit;
}


/* ==========================================================================
   12. CODE / PRE
   ========================================================================== */

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.45em;
  color: var(--accent);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  word-break: break-word;
}

pre {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  tab-size: 2;
}

pre code {
  display: block;
  padding: 0;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  word-break: normal;
  white-space: pre;
}


/* ==========================================================================
   13. LISTS, LEAD, DROPCAP, HELPERS
   ========================================================================== */

.content ul,
.content ol {
  margin: 1.25rem 0;
  padding-left: 0;
}

.content li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.7;
  color: var(--text);
}

.content li + li {
  margin-top: 0.6rem;
}

.content ul li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0.35rem;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
}

.content ol {
  counter-reset: content-ol;
}

.content ol li {
  padding-left: 2.25rem;
  counter-increment: content-ol;
}

.content ol li::before {
  content: counter(content-ol, decimal-leading-zero);
  position: absolute;
  top: 0.15em;
  left: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.content li ul,
.content li ol {
  margin: 0.6rem 0 0;
}

.content li strong {
  color: var(--white);
}

/* Lead paragraph */
.lead {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--text2);
}

.content .lead {
  color: var(--text2);
}

/* Dropcap */
.has-dropcap::first-letter,
.dropcap::first-letter {
  float: left;
  margin: 0.1em 0.6rem 0 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 0.8;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

/* Eyebrow / kicker / section number helpers */
.eyebrow,
.kicker,
.section-number {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before,
.kicker::before,
.section-number::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}


/* ==========================================================================
   14. DETAILS / ACCORDION
   ========================================================================== */

details {
  border-bottom: 1px solid var(--border);
}

.content details + details {
  margin-top: 0;
}

details:first-of-type {
  border-top: 1px solid var(--border);
}

summary {
  position: relative;
  display: block;
  padding: 1.1rem 2.75rem 1.1rem 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition), padding-left var(--transition);
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  content: '';
}

summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background var(--transition), border-color var(--transition);
}

summary:hover {
  color: var(--accent);
}

summary:hover::after {
  border-color: var(--accent);
  background: var(--accent-dim);
}

details[open] summary {
  color: var(--accent);
}

details[open] summary::after {
  content: '\2212';
  transform: translateY(-50%) rotate(180deg);
  border-color: var(--accent);
  background: var(--accent-dim);
}

details > *:not(summary) {
  padding: 0 2.75rem 1.1rem 0;
  color: var(--text2);
  line-height: 1.7;
}

details p {
  color: var(--text2);
}

details p + p {
  margin-top: 0.75rem;
}

details[open] > *:not(summary) {
  animation: details-reveal 0.35s ease;
}

@keyframes details-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   15. SECTION DIVIDERS
   ========================================================================== */

hr {
  display: block;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem auto;
  max-width: var(--container);
}

.section-divider {
  position: relative;
  height: 1px;
  margin: 0 auto;
  max-width: var(--container);
  border: 0;
  border-top: 0;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  overflow: visible;
}

.section-divider--mark {
  position: relative;
}

.section-divider--mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Divider directly after an alt section shouldn't double with its border */
.section--alt + .section-divider {
  margin-top: -1px;
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.footer {
  position: relative;
  margin-top: 4rem;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 80px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.footer-logo {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  transition: opacity var(--transition), filter var(--transition);
}

.footer-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 1rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  transition: color var(--transition), text-shadow var(--transition);
}

.footer-nav a + a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--border);
}

.footer-nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

.footer-copy {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text3);
}


/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-total-height: 64px;
  }

  body {
    padding-top: var(--nav-total-height);
    background-attachment: scroll;
  }

  html {
    scroll-padding-top: calc(var(--nav-top-height) + 1rem);
  }

  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  /* Level 2 becomes a dropdown */
  .navbar-nav {
    top: var(--nav-top-height);
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(10, 21, 32, 0.96);
    border-bottom: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.3s ease, box-shadow var(--transition);
  }

  .navbar-nav.is-open {
    max-height: calc(100vh - var(--nav-top-height));
    padding: 0.75rem 0 1.25rem;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .navbar-nav li {
    width: 100%;
    height: auto;
    justify-content: center;
  }

  .navbar-nav li::after {
    content: none;
  }

  .navbar-nav a {
    width: 100%;
    height: auto;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
    box-shadow: none;
  }

  .navbar-nav a.active,
  .navbar-nav li.active > a {
    box-shadow: none;
    background: var(--accent-dim);
  }

  /* Hero */
  .hero {
    padding: 96px 0 3.5rem;
  }

  .hero::before {
    width: 140vw;
    height: 420px;
  }

  .hero::after {
    background-size: 36px 36px;
  }

  .hero-kicker {
    margin-bottom: 1.1rem;
    font-size: 0.7rem;
  }

  .hero-kicker::before,
  .hero-kicker::after {
    width: 18px;
  }

  .hero-title::after,
  .hero h1::after {
    width: 48px;
    margin-top: 1.35rem;
  }

  .hero-subtitle {
    margin-top: 1.35rem;
    font-size: 1.05rem;
  }

  /* Layout */
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-subtitle {
    margin-bottom: 2rem;
  }

  .section-title + .content,
  .section-title + .cards,
  .section-title + .screenshots-grid {
    margin-top: 2rem;
  }

  /* Grids */
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  /* Typography */
  .lead {
    font-size: 1.12rem;
  }

  .section-subtitle.lead {
    font-size: 1.08rem;
  }

  .has-dropcap::first-letter,
  .dropcap::first-letter {
    font-size: 3.2rem;
    margin-right: 0.45rem;
  }

  .pull-quote {
    padding: 1.4rem 1.25rem 1.4rem 2.75rem;
    font-size: 1.2rem;
  }

  .pull-quote::before {
    font-size: 3rem;
    left: 0.7rem;
  }

  blockquote {
    padding: 1.1rem 1.25rem;
  }

  /* Tables */
  .data-table {
    font-size: 0.9rem;
  }

  .data-table th,
  .data-table td,
  .data-table tbody th {
    padding: 0.75rem 0.85rem;
  }

  .content--measure .data-table th,
  .content--measure .data-table td {
    min-width: 140px;
  }

  /* Details */
  summary {
    padding: 0.95rem 2.5rem 0.95rem 0;
    font-size: 0.98rem;
  }

  details > *:not(summary) {
    padding-right: 0;
  }

  /* Footer */
  .footer {
    margin-top: 3rem;
    padding: 2.75rem 1.25rem 2rem;
  }

  .footer-nav a {
    padding: 0.35rem 0.7rem;
  }

  hr {
    margin: 2rem auto;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.85rem;
  }

  .hero {
    padding-top: 84px;
  }

  .navbar-top {
    padding: 0 1rem;
  }

  .hamburger {
    right: 0.75rem;
  }

  .footer-nav a + a::before {
    display: none;
  }
}


/* ==========================================================================
   18. REDUCED MOTION
   ========================================================================== */

@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;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .card.is-visible:hover,
  .screenshots-grid figure:hover img,
  .screenshot:hover,
  .screenshot.is-visible:hover,
  .btn:hover,
  .logo:hover {
    transform: none;
  }

  .card-link:hover::after {
    transform: none;
  }

  details[open] > *:not(summary) {
    animation: none;
  }
}

/* ── STEPS LIST ──────────────────────────────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.step-item:hover { border-color: var(--accent); }

.step-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.8;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}

/* ── HERO STATUS ─────────────────────────────────────────────── */
.hero-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s infinite;
}

@media (max-width: 768px) {
  .steps-list { grid-template-columns: 1fr; gap: 1rem; }
  .hero-status { flex-wrap: wrap; }
}


/* ==========================================================================
   RICH VISUALS v2  (append-only layer; overrides earlier rules by cascade)
   Sections:
     A. Global grid background (body::before)
     B. Hero — gradient title + status panel
     C. Cards — left accent bar, icon wrap, hover shadow
     D. Steps helpers
     E. Tables — first column, zebra rows
     F. Keyframes
     G. Reduced motion
     H. Mobile (max-width: 375px)
   ========================================================================== */


/* --------------------------------------------------------------------------
   A. GLOBAL GRID BACKGROUND
   body::before is unused elsewhere (hero uses .hero::before / ::after).
   Fixed, behind content (z-index:-1 relative to body's stacking context).
   -------------------------------------------------------------------------- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(49, 202, 253, 0.04) 40px),
    repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(49, 202, 253, 0.04) 40px);
}


/* --------------------------------------------------------------------------
   B. HERO — gradient title (with one-shot shimmer) + status panel
   .hero-title::after (accent line) keeps its own background and stays visible;
   background-clip:text only affects the h1's own background.
   -------------------------------------------------------------------------- */

.hero-title,
.hero h1 {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: heroShimmer 2.2s ease-out 1 both;
}

/* The accent line must not inherit transparent fill or get clipped */
.hero-title::after,
.hero h1::after {
  -webkit-text-fill-color: initial;
  color: initial;
}

.hero-status {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.status-pill:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-dim);
}

.status-pill strong {
  color: var(--white);
  font-weight: 600;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee6a0;
  box-shadow: 0 0 8px #2ee6a0;
  animation: statusPulse 1.6s ease-in-out infinite;
}


/* --------------------------------------------------------------------------
   C. CARDS — left gradient bar (::after; ::before is the top bar), icon wrap,
      richer hover shadow
   -------------------------------------------------------------------------- */

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
  pointer-events: none;
}

.card:hover::after,
.card.is-visible:hover::after {
  transform: scaleY(1);
}

.card:hover,
.card.is-visible:hover {
  box-shadow: 0 8px 32px rgba(49, 202, 253, 0.15);
}

.card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(49, 202, 253, 0.15), rgba(49, 202, 253, 0.05));
  border: 1px solid var(--border);
  color: var(--accent);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card-icon-wrap svg {
  display: block;
  width: 22px;
  height: 22px;
}

.card:hover .card-icon-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-dim);
}


/* --------------------------------------------------------------------------
   D. STEPS helpers (override earlier grid variant: vertical list, accent rail)
   -------------------------------------------------------------------------- */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  grid-template-columns: none;
}

.step-item {
  position: relative;
  padding: 0 0 0 1.5rem;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  transition: border-color var(--transition);
}

.step-item::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.step-item:hover {
  border-left-color: var(--accent);
}

.step-number {
  font-family: var(--font);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  opacity: 1;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


/* --------------------------------------------------------------------------
   E. TABLES — emphasised first column, zebra rows
   Row hover (.data-table tbody tr:hover td → surface2) is declared earlier
   but wins by specificity (pseudo-class + element > nth-child + element ties
   are broken by order, so restate hover below to be safe).
   -------------------------------------------------------------------------- */

.data-table td:first-child {
  font-weight: 600;
  color: var(--white);
}

.data-table tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background: var(--surface2);
}


/* --------------------------------------------------------------------------
   F. KEYFRAMES
   -------------------------------------------------------------------------- */

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@keyframes heroShimmer {
  from {
    background-position: 200% center;
  }
  to {
    background-position: 0% center;
  }
}

/* Referenced by the earlier .status-badge::before but never defined */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}


/* --------------------------------------------------------------------------
   G. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero h1 {
    animation: none;
    background-position: 0% center;
  }

  .status-dot,
  .status-badge::before {
    animation: none;
  }

  .card::after,
  .card-icon-wrap,
  .status-pill,
  .step-item {
    transition: none;
  }
}


/* --------------------------------------------------------------------------
   H. MOBILE — max-width: 375px (existing 768 / 420 blocks untouched)
   -------------------------------------------------------------------------- */

@media (max-width: 375px) {
  .logo img,
  .navbar-top .logo img {
    height: 30px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-status {
    gap: 0.5rem;
    margin-top: 1.35rem;
  }

  .status-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card-icon-wrap {
    width: 40px;
    height: 40px;
  }

  .steps-list {
    gap: 1.1rem;
  }
}


/* ==========================================================================
   PREMIUM ANIMATIONS  (append-only block — relies on the cascade)
   --------------------------------------------------------------------------
   Nothing above is rewritten. Existing pseudo-elements stay untouched:
     .hero::before  (glow)  /  .hero::after  (grid)          — both in use
     .hero-kicker::before / ::after (flanking accent lines)  — both in use
   so every effect below is either a helper element or an opt-in modifier.

   HTML hooks required (add to markup to activate):
     .particle .particle-1 … .particle-6   <span class="particle particle-1"></span>
                                           (anywhere in <body>, e.g. right after <body>)
     .accent-glow                          add to any accent element (button, badge…)
     .hero-kicker--type                    add to .hero-kicker  →  typewriter effect
     .hero-scanline                        <span class="hero-scanline"></span> inside .hero
     .metric-value                         wrap a number: <span class="metric-value">42</span>
     .card.fade-in / .is-visible           already wired to the IntersectionObserver
   ========================================================================== */


/* --------------------------------------------------------------------------
   P1. FLOATING PARTICLES (background)
       Needs <span class="particle particle-N"></span> elements (N = 1…6).
       position: fixed + z-index: -1 → sits behind page content, above the
       root canvas background (body bg propagates to the canvas, so the
       particles remain visible on the dark ground).
   -------------------------------------------------------------------------- */

.particle {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.particle-1 { width: 2px; height: 2px; left: 8%;  top: 22%; opacity: 0.35; animation-duration: 9s;  animation-delay: 0s;    }
.particle-2 { width: 3px; height: 3px; left: 23%; top: 68%; opacity: 0.5;  animation-duration: 12s; animation-delay: -2s;   }
.particle-3 { width: 4px; height: 4px; left: 41%; top: 14%; opacity: 0.3;  animation-duration: 15s; animation-delay: -5s;   }
.particle-4 { width: 2px; height: 2px; left: 58%; top: 80%; opacity: 0.6;  animation-duration: 8s;  animation-delay: -1s;   }
.particle-5 { width: 3px; height: 3px; left: 74%; top: 36%; animation-duration: 11s; opacity: 0.45; animation-delay: -7s;   }
.particle-6 { width: 4px; height: 4px; left: 90%; top: 58%; opacity: 0.4;  animation-duration: 14s; animation-delay: -3.5s; }

/* Vertical drift (0 → -40px → 0) with a soft fade in/out.
   The per-particle `opacity` above is the resting value (shown while the
   animation is not running, e.g. reduced motion); while animating, the
   keyframes drive opacity between 0.15 and 0.6. */
@keyframes float {
  0%   { transform: translateY(0);     opacity: 0.15; }
  25%  { opacity: 0.6; }
  50%  { transform: translateY(-40px); opacity: 0.45; }
  75%  { opacity: 0.6; }
  100% { transform: translateY(0);     opacity: 0.15; }
}


/* --------------------------------------------------------------------------
   P2. ACCENT GLOW — pulsing box-shadow on accent elements
       Hook: add class .accent-glow to any element.
   -------------------------------------------------------------------------- */

.accent-glow {
  animation: accentPulse 3s ease-in-out infinite;
}

@keyframes accentPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(49, 202, 253, 0); }
  50%      { box-shadow: 0 0 20px rgba(49, 202, 253, 0.4); }
}


/* --------------------------------------------------------------------------
   P3. TYPEWRITER for the hero kicker — OPT-IN modifier
       Hook: <p class="hero-kicker hero-kicker--type">…</p>
       The plain .hero-kicker (inline-flex + ::before/::after flank lines) is
       left exactly as it is. The modifier:
         - switches to inline-block so `width` can be animated,
         - removes the flanking lines (they would be clipped by overflow),
         - uses border-right as the blinking caret (::after is already used).
       width animates 0 → 100% and is clamped by max-width: max-content, so
       the text is fully revealed once width reaches the text's own width.
       Selector is doubled (.hero-kicker.hero-kicker--type) to out-rank the
       base rule and the 768px media override without !important.
   -------------------------------------------------------------------------- */

.hero-kicker.hero-kicker--type {
  display: inline-block;
  max-width: max-content;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
  padding-right: 0.15em;                 /* breathing room before the caret */
  border-right: 2px solid var(--accent);
  animation:
    typing 2s steps(30, end) 1 both,
    caretBlink 0.8s step-end infinite;
}

.hero-kicker.hero-kicker--type::before,
.hero-kicker.hero-kicker--type::after {
  content: none;
}

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes caretBlink {
  50% { border-color: transparent; }
}


/* --------------------------------------------------------------------------
   P4. CARD REVEAL — 3D tilt-in on top of the existing .fade-in
       Works with the IntersectionObserver that toggles .is-visible.
       Base .fade-in already handles opacity + translateY; here we only add
       rotateX via a more specific selector (.card.fade-in, 0,2,0).
       Note: the base .card rule sets `transition: transform 0.25s …`, which
       would make the reveal too snappy — so the reveal transition is
       re-declared at 0.6s here, while hover-in keeps the original 0.25s.
       Hover is re-declared at (0,4,0) so it still wins over
       .card.fade-in.is-visible (0,3,0) defined just below it.
   -------------------------------------------------------------------------- */

.cards {
  perspective: 1000px;
}

.card.fade-in {
  transform: translateY(20px) rotateX(5deg);
  transform-origin: top center;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card.fade-in.is-visible {
  transform: translateY(0) rotateX(0);
}

.card.fade-in.is-visible:hover {
  transform: translateY(-3px) rotateX(0);
  transition:
    opacity 0.6s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


/* --------------------------------------------------------------------------
   P5. HERO SCAN LINE — helper element (hero::before/::after are taken)
       Hook: <span class="hero-scanline"></span> placed inside .hero
       (.hero is already position: relative + overflow: hidden).
       `top` is animated from just above the hero to its bottom edge (100%),
       so the line always sweeps the full hero height whatever it is.
       z-index: 0 = same layer as the glow/grid, below .hero .container (1);
       DOM order puts it above the pseudo-elements.
   -------------------------------------------------------------------------- */

.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
  0%   { top: -2px; }
  100% { top: 100%; }
}


/* --------------------------------------------------------------------------
   P6. NUMBER COUNTER — entrance animation for .metric-value
       Hook: <span class="metric-value">1 200+</span>
       This is a purely visual "roll-in" (slide up + fade). Real digit
       counting (0 → N) requires JS; this rule only styles the appearance.
   -------------------------------------------------------------------------- */

.metric-value {
  display: inline-block;
  animation: countUp 1s ease-out both;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(0.4em); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --------------------------------------------------------------------------
   P7. REDUCED MOTION — disable every animation introduced in this block
       and pin the elements to their final, fully visible state.
       (Selector specificity mirrors the rules above so it always wins:
        .card.fade-in.is-visible:hover is 0,4,0 — matching P4.)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .particle,
  .accent-glow,
  .hero-kicker.hero-kicker--type,
  .hero-scanline,
  .metric-value {
    animation: none;
  }

  .particle {
    opacity: 0.25;
  }

  .accent-glow {
    box-shadow: none;
  }

  .hero-kicker.hero-kicker--type {
    width: auto;
    border-right: 0;
    padding-right: 0;
  }

  .hero-scanline {
    display: none;
  }

  .metric-value {
    opacity: 1;
    transform: none;
  }

  .cards {
    perspective: none;
  }

  .card.fade-in,
  .card.fade-in.is-visible,
  .card.fade-in.is-visible:hover {
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   SCREENSHOTS — LARGER
   Geometry-only overrides appended after everything else (cascade wins).
   Colors / borders / hover / transition / opacity are NOT touched here.

   Breakout approach: the grid lives inside .container (max 1100px, centered).
   Instead of transform (would stack with nothing here, but margins are the
   more predictable option — no new stacking context, no interplay with
   .fade-in transforms), we widen the grid to min(1280px, 100vw - 3rem) and
   center it on the container's centre with a negative-capable margin-left:
     margin-left = 50% of container − half of grid width
   Because .container itself is centered in the viewport, the grid ends up
   centered on the viewport too. The 3rem subtraction keeps a 1.5rem gutter
   on each side (> any scrollbar width), so no horizontal page scroll.
   ========================================================================== */

.screenshots-grid {
  --shots-w: min(1280px, calc(100vw - 3rem));
  box-sizing: border-box;
  width: var(--shots-w);
  max-width: none;                                 /* allow > .container */
  margin-left: calc(50% - var(--shots-w) / 2);      /* centre on viewport */
  margin-right: 0;
  grid-template-columns: 1fr 1fr;                   /* keep 2 columns */
  gap: 1.5rem;                                      /* slightly tighter -> bigger images */
}

.screenshots-grid figure {
  min-width: 0;                                     /* grid items may shrink; no overflow */
}

.screenshots-grid img,
.screenshot {
  display: block;
  width: 100%;
  max-width: 100%;                                  /* no smaller cap anywhere */
  height: auto;
  border-radius: var(--radius-lg);                  /* re-affirm, unchanged */
}

/* Tablet/mobile: single column, cancel the breakout so nothing exceeds the
   container padding (no horizontal scroll). Existing ≤768px rules untouched. */
@media (max-width: 768px) {
  .screenshots-grid {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ============================================================
   ONION BLOCK
   ============================================================ */

.onion-section {
  width: 100%;
  padding: 3rem 0;
}

.onion-card {
  background: linear-gradient(135deg, #0a1628, #0f2030);
  border-top: 2px solid #31cafd;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(49,202,253,0.08);
  padding: 2rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.onion-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.onion-card-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.75rem;
}

.onion-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(49,202,253,0.1);
}
.onion-row:last-child {
  border-bottom: none;
}

.onion-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #31cafd;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  min-width: 60px;
}

.onion-addr {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  word-break: break-all;
  flex: 1;
}

.onion-copy {
  padding: 0.375rem 0.75rem;
  border: 1px solid #31cafd;
  border-radius: 6px;
  color: #31cafd;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.onion-copy:hover {
  background: rgba(49,202,253,0.1);
}

@media (max-width: 640px) {
  .onion-card {
    padding: 1.25rem;
  }
  .onion-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .onion-addr {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   CHECKLIST — FULL WIDTH BREAKOUT
   Geometry-only overrides appended after everything else (cascade wins).

   Target: index.html section "Safe Access Checklist" —
     <section class="section"> > .container > h2.section-title[data-index="02"]
     + p.section-subtitle.lead + .content.content--measure > table.data-table
   There is no .checklist-section class in the markup, so the section is
   located via :has(). NOTE: data-index="02" also exists on other pages
   (about/access/verify/guide/faq); the ".section-subtitle.lead" sibling is
   unique to the index checklist and is used as the discriminator.
   A .checklist-section hook is included as well for a future manual class.

   Same approach as .screenshots-grid: widen .container to
   min(1280px, 100vw - 3rem) and centre it on its parent with
   margin-left = 50% − width/2. 3rem keeps a 1.5rem gutter each side
   (> scrollbar width), so no horizontal page scroll.
   ========================================================================== */

.section:has(> .container > .section-title[data-index="02"] + .section-subtitle.lead) > .container,
.checklist-section > .container,
.checklist-section {
  --cl-w: min(1280px, calc(100vw - 3rem));
  box-sizing: border-box;
  width: var(--cl-w);
  max-width: none;                                  /* allow > .container */
  margin-left: calc(50% - var(--cl-w) / 2);          /* centre on viewport */
  margin-right: 0;
}

/* Prevent double breakout if the manual class is put on the <section> itself:
   its inner .container then stays a normal full-width child. */
.checklist-section > .container {
  --cl-w: 100%;
}

/* The reading measure (72ch) would otherwise keep the table narrow —
   lift it only inside the checklist section so the table uses the breakout. */
.section:has(> .container > .section-title[data-index="02"] + .section-subtitle.lead) .content--measure,
.checklist-section .content--measure {
  max-width: none;
}

/* Tablet/mobile: cancel the breakout so nothing exceeds the container
   padding (no horizontal scroll). Existing ≤768px rules untouched. */
@media (max-width: 768px) {
  .section:has(> .container > .section-title[data-index="02"] + .section-subtitle.lead) > .container,
  .checklist-section > .container,
  .checklist-section {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Logo text styles */
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-accent {
  color: #31cafd;
  margin-left: 0.1em;
}

.logo:hover .logo-text {
  opacity: 0.85;
}

/* Remove content width restriction globally */
.content--measure {
  max-width: none;
}

/* Styled text logo */
.logo-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}

.logo-torzon {
  font-size: 1.75rem;
  font-weight: 800;
  color: #31cafd;
  letter-spacing: -0.02em;
  font-style: italic;
  text-shadow: 0 0 20px rgba(49,202,253,0.4);
}

.logo-onion {
  color: #4db8e8;
  font-style: normal;
}

.logo-market {
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.logo:hover .logo-torzon {
  text-shadow: 0 0 30px rgba(49,202,253,0.7);
}

/* Match logo background to navbar */
.logo img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  background: #060d14;
  padding: 2px 4px;
}

/* Mobile overflow fix */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .screenshots-grid,
  .onion-card,
  .cards,
  .cards-2,
  .cards-3 {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: auto;
    box-sizing: border-box;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden;
  }

  .onion-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .onion-addr {
    font-size: 0.68rem;
    word-break: break-all;
    white-space: normal;
  }
}

/* ==========================================================================
   MOBILE OVERFLOW FIX
   Append-only block — nothing above is rewritten or removed; relies on the
   cascade (these rules come last and override earlier ones).
   Purpose: kill horizontal page scroll on mobile (tested at 375px, rules
   apply at <= 768px). !important is used ONLY in the breakout-cancel block
   so the calc()-based breakouts (.screenshots-grid / checklist :has()) are
   guaranteed to be overridden regardless of selector specificity.
   ========================================================================== */

/* 1. Global clamp — safe on desktop too. body's earlier rule is untouched;
      this only adds overflow-x / max-width on top of it. */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 768px) {

  /* 2. Cancel ALL breakouts (screenshots grid + checklist, both selector
        variants: :has() lookup and the .checklist-section hook). */
  .screenshots-grid,
  .section:has(> .container > .section-title[data-index="02"] + .section-subtitle.lead) > .container,
  .checklist-section > .container,
  .checklist-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  /* 3. Table scrolling is handled solely by the .table-scroll wrapper. */

  /* 4. Container-level safety net. (.cards-2 may not exist — harmless.) */
  .onion-card,
  .onion-row,
  .cards,
  .cards-2,
  .container,
  .content,
  .content--measure {
    max-width: 100%;
    box-sizing: border-box;
  }

  .onion-row {
    min-width: 0;
  }

  /* 5. Long unbreakable strings (mono .onion addresses, code blocks). */
  .onion-addr {
    overflow-wrap: anywhere;
  }

  pre {
    max-width: 100%;
  }
}

/* ============================================================
   TABLE SCROLL WRAPPER
   ============================================================ */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius, 8px);
}
.table-scroll table {
  min-width: 500px;
  width: 100%;
}
.table-scroll .data-table {
  display: table;
}

/* Table scroll fix - force shrink on mobile */
@media (max-width: 640px) {
  .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll table,
  .table-scroll .data-table {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.8rem;
  }

  .table-scroll td,
  .table-scroll th {
    padding: 0.5rem 0.4rem;
    word-break: break-word;
    white-space: normal;
  }

  .table-scroll td:first-child,
  .table-scroll th:first-child {
    min-width: 80px;
  }
}

/* Force table fix on all pages */
@media (max-width: 640px) {
  .table-scroll .data-table,
  .data-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    font-size: 0.78rem !important;
  }

  .data-table td,
  .data-table th {
    padding: 0.4rem !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
