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

:root {
  /* Surfaces */
  --bg-primary: #050505;
  --bg-secondary: rgba(255, 255, 255, 0.02);
  --bg-tertiary: rgba(255, 255, 255, 0.04);
  --bg-hover: rgba(255, 255, 255, 0.06);

  /* Borders & Lines */
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 255, 255, 0.25);

  /* Text Colors */
  --text-primary: #ededed;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Semantic Accents based on Trust Badge system */
  --accent-attack: #ff453a; /* pure red */
  --accent-defense: #30d158; /* pure green */
  --accent-warn: #ff9f0a; /* pure amber */
  --accent-info: #0a84ff; /* pure blue */

  /* Theme Brand Accent */
  --brand-accent: #ff453a;
  --brand-glow: rgba(255, 69, 58, 0.4);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Layout Variables */
  --container: 1100px;
  --section-pad: 120px;
  --transition-fast: 0.15s ease-out;
  --transition-smooth: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Background Texture Noise & Glow */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-color: var(--bg-primary);
}

body::after {
  content: "";
  position: absolute;
  top: -20vh; left: 50%;
  transform: translateX(-50%);
  width: 100vw; height: 80vh;
  background: radial-gradient(circle at 50% 0%, rgba(255, 69, 58, 0.08), transparent 70%);
  z-index: -2;
  pointer-events: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* offset for sticky header */
  background-color: var(--bg-primary);
}

body {
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-primary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Styled page scrollbar — the default OS scrollbar looks raw against the
   dark theme (light grey + chunky), especially noticeable when contrasted
   with the polished hero. Subtle, brand-aware track + thumb. Standardish
   webkit (Chrome/Safari/Edge) + scrollbar-* (Firefox). */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 8px;
  transition: background 150ms ease;
}
html::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
  background-clip: padding-box;
}

ul, ol {
  list-style: none;
}

.mono {
  font-family: var(--font-mono);
}

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

section {
  padding: var(--section-pad) 0;
  position: relative;
  scroll-margin-top: 120px;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-blue-text {
  background: linear-gradient(135deg, #7dd3fc 0%, var(--accent-info) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.1;
}

h1 {
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  font-weight: 800;
}

h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 65ch;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Global Card Glassmorphism */
.glass-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.5);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Sticky Topbar */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-smooth);
}
.topbar::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-accent);
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--brand-glow);
}

.brand-text span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  background: rgba(255,255,255,0.02);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.05);
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 800px) {
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 16px;
    gap: 10px 16px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }
  .nav-links a { white-space: nowrap; flex-shrink: 0; }
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 69, 58, 0.9) 0%, rgba(220, 38, 38, 1) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 16px rgba(255, 69, 58, 0.2);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 12px 24px rgba(255, 69, 58, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Forms */
.form-row {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .form-row { flex-direction: column; }
  .btn { width: 100%; }
}

.input-text {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-text:focus {
  border-color: var(--brand-accent);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(255, 69, 58, 0.1);
  background: rgba(0,0,0,0.6);
}

.consent {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
  align-items: flex-start;
}

.consent input {
  margin-top: 4px;
  accent-color: var(--brand-accent);
}

.consent a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.consent a:hover { color: var(--text-primary); }

/* Section 1: Hero */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-intro {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.hero-intro strong {
    color: #ff8050;
    font-weight: 600;
}

.hero h1 {
  max-width: 1000px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  max-width: 740px;
  margin-bottom: 56px;
  line-height: 1.5;
}

.terminal-hook {
  position: relative;
  border-left: 2px solid var(--accent-attack);
  background: linear-gradient(90deg, rgba(255, 69, 58, 0.05) 0%, transparent 100%);
  padding: 32px;
  margin-bottom: 56px;
  max-width: 640px;
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(10px);
}

.terminal-hook p {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 16px;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.terminal-hook p:last-child { margin-bottom: 0; }

.demo-slot {
  margin-top: 100px;
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  overflow: hidden;
}

.demo-slot::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: inset 0 0 80px rgba(0,0,0,0.8);
  pointer-events: none;
}

.demo-slot-header {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.4);
  z-index: 10;
}

.demo-slot-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.demo-slot-label {
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

/* Demo CTA - inline card inside the slot until the visitor clicks Start.
   On click, JS shows the fullscreen overlay (see .demo-fullscreen). */
.demo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px 24px;
  max-width: 520px;
}
.demo-cta-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.demo-cta-meta {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.demo-cta-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  background: var(--brand-accent);
  color: #fff;
  border: 1px solid var(--brand-accent);
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 150ms ease, transform 100ms ease, box-shadow 150ms ease;
  box-shadow: 0 4px 20px var(--brand-glow);
}
.demo-cta-btn:hover {
  background: color-mix(in srgb, var(--brand-accent) 86%, #fff 14%);
  box-shadow: 0 6px 24px var(--brand-glow);
}
.demo-cta-btn:active { transform: translateY(1px); }
.demo-cta-btn:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}
.demo-cta-note {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 440px;
}

/* Mobile-only hint that the lab is desktop-optimized. Hidden by default;
   the @media block below toggles it visible at <=640px. Honest framing
   for mobile visitors: the demo opens here so they can see what the
   product feels like, but the panel grid is built for a larger screen
   so they know to revisit on desktop for the full experience. */
.demo-cta-mobile-hint {
  display: none;
  font-size: 12px;
  line-height: 1.5;
  color: #fbbf24;
  background: rgba(232, 163, 8, 0.08);
  border: 1px solid rgba(232, 163, 8, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 440px;
  text-align: left;
}

/* Mobile responsiveness — at narrow widths the 16:9 aspect-ratio locks the
   slot to ~200px tall on a 390px-wide phone, which clips the Start button
   entirely. Drop aspect-ratio, let content drive the height, and compress
   the CTA paddings + typography so the slot stays reasonably compact while
   the button is always visible. Header also gets tighter so the [DEMO] line
   doesn't eat 2-3 lines of vertical space. */
@media (max-width: 640px) {
  .demo-cta-mobile-hint { display: block; }
  .demo-slot {
    aspect-ratio: auto;
    min-height: 280px;
  }
  .demo-slot-header {
    padding: 10px 14px;
    font-size: 11px;
    line-height: 1.4;
  }
  .demo-cta {
    padding: 20px 16px;
    gap: 12px;
  }
  .demo-cta-title {
    font-size: 18px;
    line-height: 1.25;
  }
  .demo-cta-meta {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .demo-cta-btn {
    padding: 12px 32px;
    font-size: 14px;
  }
  .demo-cta-note {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* Fullscreen launcher overlay - position:fixed covers the entire viewport
   while the visitor is using the demo. Not browser-fullscreen (which would
   hide the URL bar + back button); a fake-fullscreen overlay keeps the
   visitor oriented (they can see they're still on aiseclabs.pl in the
   browser chrome) and ESC behavior is predictable. */
.demo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050505;
  display: flex;
  flex-direction: column;
}
.demo-fullscreen[hidden] { display: none; }

/* Body scroll lock while the overlay is open - keeps the visitor focused on
   the demo and prevents accidental scroll-through into the landing page. */
/* Lock BOTH html AND body. body.overflow:hidden alone doesn't stop the
   viewport scrollbar — Chrome/Firefox use html as the scrolling root,
   so html keeps its own overflow-y:auto and the visitor can still scroll
   the landing page behind the overlay via the html-level scrollbar. */
html.demo-fullscreen-open,
body.demo-fullscreen-open { overflow: hidden; }

.demo-fullscreen__frame {
  flex: 1;
  min-height: 0;
  display: flex;
}
.demo-fullscreen__frame iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg-primary);
  /* Stop scroll chaining from lab panels to the landing page. Without this,
     when a lab panel's internal scrollbar reaches its boundary, the wheel
     event "chains up" to the parent page and starts scrolling THAT. Result:
     visitor scrolling the lesson sidebar suddenly scrolls the landing page
     behind. overscroll-behavior:contain stops the chain at the iframe edge. */
  overscroll-behavior: contain;
}

/* Floating close button - top-right corner of the overlay, positioned BELOW
   the lab's own header strip (~40px tall, contains the lab's "Zakończ lekcję"
   button at its top-right). Setting top:56px keeps a 16px gap below the lab
   header so the two affordances are visually separated. */
.demo-fullscreen__close {
  position: absolute;
  top: 56px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.demo-fullscreen__close:hover {
  background: rgba(255, 69, 58, 0.85);
  border-color: rgba(255, 69, 58, 0.95);
}
.demo-fullscreen__close:active { transform: scale(0.95); }
.demo-fullscreen__close:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Section 2: Anatomia Ataku */
.anatomy {
  position: relative;
}

.anatomy::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.anatomy-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
  align-items: center;
}

@media (max-width: 1000px) {
  .anatomy-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

.anatomy-list {
  margin-top: 40px;
  font-size: 17px;
}

.anatomy-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.anatomy-list li:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.anatomy-list strong {
  color: var(--text-primary);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.override { background: var(--accent-attack); box-shadow: 0 0 10px var(--accent-attack); }
.dot.instruction { background: var(--accent-info); box-shadow: 0 0 10px var(--accent-info); }
.dot.encoding { background: var(--accent-warn); box-shadow: 0 0 10px var(--accent-warn); }
.dot.exfiltration { background: #a855f7; box-shadow: 0 0 10px #a855f7; }

/* Super sleek Terminal block */
.payload-visual {
  background: #111111; /* Very dark grayish */
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

.payload-header {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #888;
}

.window-controls {
  display: flex;
  gap: 8px;
}
.window-controls span {
  width: 12px; height: 12px; border-radius: 50%;
}
.window-controls span:nth-child(1) { background: #ff5f56; }
.window-controls span:nth-child(2) { background: #ffbd2e; }
.window-controls span:nth-child(3) { background: #27c93f; }

.payload-code {
  padding: 32px 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 2;
  overflow-x: auto;
}

.p-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.p-line > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-line:hover {
  background: rgba(255,255,255,0.05);
}

.layer-override { color: var(--accent-attack); text-shadow: 0 0 12px rgba(255,69,58,0.4); }
.layer-instruction { color: var(--accent-info); text-shadow: 0 0 12px rgba(10,132,255,0.4); }
.layer-encoding { color: var(--accent-warn); text-shadow: 0 0 12px rgba(255,159,10,0.4); }
.layer-exfiltration { color: #d084ff; text-shadow: 0 0 12px rgba(208,132,255,0.4); }

.layer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.layer-label::before {
  content: '<--';
  color: #666;
  font-weight: 400;
}

/* Section 3: Metodologia Timeline */
.methodology {
  position: relative;
  background: transparent;
  padding-bottom: 40px;
}
.methodology::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Methodology — compressed visual summary */
.methodology-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.methodology-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.methodology-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.team-phase {
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-phase-red .team-label { color: #f87171; }
.team-phase-red .team-dot {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.team-phase-blue .team-label { color: #60a5fa; }
.team-phase-blue .team-dot {
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.steps-grid {
  display: grid;
  gap: 12px;
}

.steps-grid-red { grid-template-columns: repeat(6, 1fr); }
.steps-grid-blue { grid-template-columns: repeat(3, 1fr); }

.step-card {
  padding: 14px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: default;
}

.step-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.team-phase-red .step-card:hover { border-color: rgba(239, 68, 68, 0.4); }
.team-phase-blue .step-card:hover { border-color: rgba(59, 130, 246, 0.4); }

.step-card .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.step-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 10px;
}

.step-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.step-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.methodology-footer {
  text-align: center;
  margin-top: 48px;
}

.methodology-footer p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 16px 24px;
  display: inline-block;
  border-radius: 8px;
  background: rgba(255, 91, 31, 0.08);
  border: 1px solid rgba(255, 91, 31, 0.15);
  margin-bottom: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid-red { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .methodology-grid { gap: 24px; }
  .team-phase { padding: 20px 16px; }
  .steps-grid-red,
  .steps-grid-blue { grid-template-columns: repeat(3, 1fr); }
  .step-card { padding: 12px 8px; }
  .step-icon { font-size: 20px; }
  .step-name { font-size: 12px; }
  .step-desc { font-size: 10px; }
}


/* Section 4: O Autorze */
.founder {
  position: relative;
  padding-top: 40px;
}

.founder::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.founder-card {
  max-width: 960px;
  margin: 0 auto;
}

.founder-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.founder-photo-wrapper {
  flex-shrink: 0;
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 91, 31, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 91, 31, 0.04);
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.founder-photo-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.founder-photo-wrapper:hover {
  border-color: rgba(255, 91, 31, 0.45);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(255, 91, 31, 0.08);
}

.founder-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.founder-name-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.founder-name {
  margin: 0;
}

.founder-title {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .founder-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .founder-photo-wrapper {
    width: 160px;
    height: 160px;
  }
}

.founder-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  margin-bottom: 24px;
  display: block;
}

.founder-card p {
  max-width: 100%;
  font-size: 19px;
  line-height: 1.8;
  color: #d4d4d8;
}

.signature {
  margin-top: 64px;
  font-size: 20px;
  border-left: 2px solid var(--brand-accent);
  padding-left: 24px;
}
.signature strong { color: var(--text-primary); }
.signature span { color: var(--text-muted); font-size: 16px; display: block; margin-top: 4px; }


/* Section 5: Offer */
.offer {
  position: relative;
  padding: 40px 0;
}

.offer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.offer-card {
  background: rgba(16, 185, 129, 0.02);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 80px 64px;
  border-radius: 24px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 32px 64px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Glowing pseudo element on top of offer card */
.offer-card::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-defense), transparent);
  box-shadow: 0 1px 20px var(--accent-defense);
}

@media (max-width: 640px) {
  .offer-card { padding: 40px 24px; }
}

.offer-tag {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--accent-defense);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.offer-list {
  margin: 48px 0;
}

.offer-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
}

.offer-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent-defense);
  font-size: 18px;
  font-weight: 800;
}

.offer-limit {
  color: var(--accent-warn);
  font-weight: 600;
  margin-bottom: 40px;
  font-size: 16px;
  padding: 20px 24px;
  background: rgba(255, 159, 10, 0.1);
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.offer-limit::before {
  content: '!';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--accent-warn);
  color: #000;
  border-radius: 50%;
  font-weight: 800;
  flex-shrink: 0;
}

.offer-guarantee {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 24px auto 0;
  display: block;
  width: 100%;
}


/* Section 6: FAQ */
.faq {
  padding: 40px 0;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

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

details:last-child {
  border-bottom: none;
}

details > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  position: relative;
  padding-right: 32px;
  transition: color var(--transition-fast);
}
details > summary:hover {
  color: #fff;
}

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

details > summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 24px;
  transition: transform var(--transition-fast);
}

details[open] > summary::after {
  content: '-';
  transform: rotate(180deg);
}

details p {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--text-secondary);
  max-width: 100%;
  padding-right: 24px;
}


/* Footer */
footer {
  padding: 80px 0;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-links-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links-row a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links-row a:hover {
  color: var(--text-primary);
}

.footer-links-row .footer-soon {
  color: var(--text-secondary);
  font-size: 14px;
  opacity: 0.6;
  cursor: default;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-defense);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.4);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links-row {
    flex-direction: column;
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Added from Final Spec --- */



.hero-followup {
    max-width: 640px;
    margin: 24px auto 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
}

.example-lab {
    padding: 96px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.example-lab-header {
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
}

.lab-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.lab-id {
    font-family: var(--font-mono);
    font-size: 0.6em;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    display: inline-block;
}

.lab-intro {
    color: var(--text-secondary);
    font-size: 17px;
    margin-top: 16px;
}

.lab-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .lab-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.lab-dossier {
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    padding: 32px;
}

.dossier-header {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dossier-header-secondary {
    margin-top: 32px;
}

.dossier-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
}

.dossier-fields dt {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dossier-fields dd {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 15px;
}

.standards-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.standards-list li {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.std-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.std-badge {
    display: inline-block;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 2px 8px;
    font-size: 11px;
    white-space: nowrap;
}

.badge-owasp {
    background: rgba(10, 132, 255, 0.08);
    border: 1px solid rgba(10, 132, 255, 0.25);
    color: var(--accent-info);
}

.badge-mitre {
    background: rgba(255, 159, 10, 0.08);
    border: 1px solid rgba(255, 159, 10, 0.25);
    color: var(--accent-warn);
}

.badge-cwe {
    background: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.25);
    color: var(--accent-defense);
}

.badge-nist {
    background: rgba(161, 161, 170, 0.08);
    border: 1px solid rgba(161, 161, 170, 0.25);
    color: var(--text-secondary);
}

.lab-scenario {
    padding: 8px 0;
}

.lab-scenario h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.lab-scenario p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.learning-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.learning-list li {
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
    margin-bottom: 14px;
    line-height: 1.6;
}

.learning-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-defense);
    font-family: var(--font-mono);
}

.lab-footnote {
    margin-top: 40px;
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-left: 2px solid var(--accent-info);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.lab-footnote strong {
    color: var(--text-primary);
}

.qualification {
    padding: 40px 0;
}

.qualification-header {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.qualification-header h2 {
    margin-bottom: 16px;
}

.qualification-header p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.qualification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.qual-column {
    background: var(--bg-secondary);
    padding: 40px;
    border: 1px solid var(--border);
    border-left-width: 3px;
}

.qual-yes {
    border-left-color: var(--accent-defense);
}

.qual-no {
    border-left-color: var(--accent-attack);
}

.qual-column h3 {
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}

.qual-yes h3 {
    color: var(--accent-defense);
}

.qual-no h3 {
    color: var(--accent-attack);
}

.qual-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qual-column li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.qual-column li::before {
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    font-weight: 700;
}

.qual-yes li::before {
    content: "▸";
    color: var(--accent-defense);
}

.qual-no li::before {
    content: "✗";
    color: var(--accent-attack);
}

/* Curriculum section - what you train in the labs */
.curriculum {
    padding: 40px 0 80px;
}

.curriculum-header {
    max-width: 820px;
    margin: 0 auto 56px;
    text-align: center;
}

.curriculum-header h2 {
    margin-bottom: 16px;
}

.curriculum-kicker {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.curriculum-scope-note {
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 12px 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

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

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

.curriculum-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 28px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.curriculum-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-tertiary);
}

.curriculum-card-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 16px;
}


.curriculum-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.curriculum-card p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

/* --- End Added from Final Spec --- */

/* Subpage Specifics (Privacy Policy & Thank You) */
.content-page {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 800px;
  margin: 0 auto;
}

.content-page h2 {
  margin-top: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 28px;
}

.content-page section {
  padding: 0;
  margin-bottom: 48px;
}

.content-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.content-page li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.content-page a {
  color: var(--brand-accent);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 48px;
  transition: all var(--transition-fast);
}

.back-link:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
  transform: translateX(-4px);
}

.thank-you-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 24px;
}

.thank-you-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  padding: 64px 48px;
  border-radius: 24px;
  max-width: 540px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
}

.thank-you-box .mono {
  background: rgba(0,0,0,0.4);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--accent-defense);
  font-size: 14px;
  margin: 32px 0;
  text-align: left;
}

/* Base founder card padding so it can be dynamically resized in media queries */
.founder-card.glass-card { padding: 64px; }

/* Responsive adjustments for mid-size / tablet / split screens (e.g., 800px) */
@media (max-width: 800px) {
  :root {
    --section-pad: 80px;
  }
  .hero { padding-top: 80px; padding-bottom: 60px; }
  h1 { font-size: clamp(32px, 7vw, 48px); margin-bottom: 24px; }
  h2 { font-size: clamp(24px, 5vw, 36px); margin-bottom: 16px; }
  p { font-size: 16px; line-height: 1.6; }
  
  .offer-card { padding: 48px 32px; border-radius: 16px; }
  .founder-card.glass-card { padding: 40px; }
  
  .anatomy-grid { gap: 40px; }
  .payload-code { padding: 24px 16px; font-size: 13px; }
  .layer-label { margin-left: 16px; font-size: 10px; }
  
  section { padding: var(--section-pad) 0; scroll-margin-top: 100px; }
}

/* Extra small screens / Mobile */
@media (max-width: 640px) {
  :root {
    --section-pad: 64px;
  }
  .offer-card { padding: 32px 20px; }
  .founder-card.glass-card { padding: 32px 20px; }
  .container { padding: 0 16px; }

  /* OVERRIDES: Mobile Footer Alignment fix */
  .footer-top, .footer-bottom {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .footer-links-row {
    justify-content: center;
  }
}

/* =========================================
   Mobile overflow fixes (prevent horizontal page scroll)
   ========================================= */

/* Hard guard: prevent horizontal scroll at the page level */
html {
  overflow-x: hidden;
}

/* Make flex items truly shrinkable so ellipsis/overflow-x children constrain */
.standards-list li { min-width: 0; }
.std-text { min-width: 0; flex: 1 1 auto; }

/* Prevent intrinsic max-content from forcing grid children wider than the cell */
.lab-dossier,
.lab-scenario,
.anatomy-visual,
.payload-visual,
.payload-code {
  min-width: 0;
  max-width: 100%;
}

/* Code block scrolls internally, not the page */
.payload-code { overflow-x: auto; }

@media (max-width: 640px) {
  /* Nav: wrap to a second row on very small screens so nothing pushes off-screen */
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 8px; }
  .nav-links {
    width: 100%;
    margin-left: 0;
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    font-size: 12px;
  }
  .nav-links a { font-size: 12px; }

  /* Payload terminal: slightly smaller to breathe */
  .payload-code { padding: 20px 14px; font-size: 12px; }
  .p-line { padding: 4px 6px; font-size: 12px; }
  .layer-label { margin-left: 8px; padding: 2px 6px; }

  /* Ensure anatomy/lab content respects viewport */
  .anatomy-copy, .anatomy-visual { min-width: 0; max-width: 100%; }
  .lab-grid, .lab-dossier, .lab-scenario { min-width: 0; max-width: 100%; }

  /* Hero terminal hook: allow wrapping */
  .terminal-hook, .demo-slot, .demo-slot-header, .demo-slot-body {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Long certification/tag strings should wrap rather than overflow */
  .std-badge { white-space: normal; }
}

/* =========================================
   Social icons (footer) — dark theme
   ========================================= */

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 24px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  transition: color 200ms ease, transform 200ms ease;
  text-decoration: none;
  border-radius: 6px;
}

.social-links a:hover,
.social-links a:focus {
  color: var(--brand-accent);
  transform: translateY(-2px);
}

.social-links a:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 4px;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .social-links {
    justify-content: center;
  }
}
