/* ==========================================================================
   SEO Factory — Public Landing
   Axiom-aligned: black surfaces, ember orange, JetBrains Mono typography,
   2px corners, no blur, single subtle shadow.
   ========================================================================== */

@font-face {
    font-family: 'Pixellari';
    src: url('/admin-static/fonts/Pixellari.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BerkeleyMono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/admin-static/fonts/JetBrainsMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'BerkeleyMono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/admin-static/fonts/JetBrainsMono-Bold.woff2') format('woff2');
}

:root {
    --bg: #000000;
    --surface: #111111;
    --surface-hover: #191919;
    --surface-solid: #0a0a0a;
    --surface-active: rgba(218, 92, 44, 0.05);

    --border: #202020;
    --border-hover: #3a3a3a;
    --border-glow: rgba(218, 92, 44, 0.35);

    --text: #eeeeee;
    --text-muted: #b4b4b4;
    --text-dim: #7e7e7e;

    --accent-gradient: linear-gradient(135deg, #ff8c00 0%, #da5c2c 50%, #c4501f 100%);
    --accent: #da5c2c;
    --accent-hover: #c4501f;

    --success: #10b981;
    --danger: #ef4444;

    --radius-md: 2px;
    --radius-lg: 2px;
    --transition: 120ms linear;
    --shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    --shadow-glow: 0 0 12px rgba(218, 92, 44, 0.15);
    --header-h: 56px;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text);
    font-family: 'BerkeleyMono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(218, 92, 44, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(218, 92, 44, 0.025) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.71;
    font-size: 14px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #202020; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==========================================================================
   Fixed Header + Auth Button
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: var(--color-void, #000000);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    transition: opacity 120ms linear, transform 120ms linear;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

header.header-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

header.scrolled {
    height: 48px;
}

.logo {
    font-family: 'Pixellari', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}

.logo span {
    color: var(--accent);
}

.auth-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'BerkeleyMono', monospace;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.auth-button i {
    color: var(--accent);
    font-size: 0.85rem;
}

.auth-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.auth-button:hover i {
    color: var(--accent);
}

/* ==========================================================================
   Mobile Progress Bar (replaces floating side nav on mobile)
   ========================================================================== */
.mobile-progress {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    z-index: 98;
    display: none;
}

.mobile-progress-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.mobile-progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.1s linear;
}

/* ==========================================================================
   Floating Side Nav (desktop only)
   ========================================================================== */
.side-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border-radius: 2px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
}

.nav-dot {
    width: 10px;
    height: 10px;
    background: var(--text-dim);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-dot:hover {
    background: var(--accent);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 12px var(--accent);
}

.nav-tooltip {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.nav-dot:hover .nav-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   Presentation Layout
   ========================================================================== */
.presentation-container {
    width: 100%;
    margin: 0 auto;
    padding-top: var(--header-h);
}

.slide-section {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4% 4rem 4%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.015);
    position: relative;
    overflow: hidden;
}

.slide-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    position: relative;
    z-index: 2;
}

.pixel-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: radial-gradient(circle, rgba(255, 85, 0, 0.15) 1px, transparent 1px);
    background-size: 6px 6px;
    pointer-events: none;
}

.slide-header {
    margin-bottom: 0.5rem;
    position: relative;
}

.slide-header h2 {
    font-family: 'Pixellari', monospace;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 1.9rem;
    margin: 0 0 0.4rem 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}

.slide-header h2 span {
    color: var(--accent);
}

.slide-header .subtitle {
    font-family: 'Pixellari', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: inline-block;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}

.slide-header .slide-number {
    position: absolute;
    right: 0;
    top: 0;
    font-family: 'Pixellari', monospace;
    font-weight: 700;
    font-size: 3.2rem;
    color: rgba(255, 85, 0, 0.03);
    line-height: 1;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    transition: border-color 120ms linear;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
    transition: background 120ms linear;
}

.card:hover {
    border-color: var(--border-hover);
}

.card:hover::before {
    background: var(--accent);
}

.card.active {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.card.active::before {
    background: var(--accent);
}

.card-inner {
    position: relative;
    z-index: 2;
}

.card h3 {
    font-family: 'Pixellari', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
    line-height: 1.3;
}

.card h3 i {
    color: var(--accent);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.card p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.card .card-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    margin-left: 6px;
}

.card .card-tag {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.card .card-tag-accent {
    color: var(--accent);
}

.card .role-note {
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text);
}

/* ==========================================================================
   Browser mockups
   ========================================================================== */
.browser-mockup {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.5);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 1rem;
    width: 100%;
    transition: var(--transition);
}

.browser-mockup:hover { border-color: rgba(255, 85, 0, 0.2); }

.mockup-header {
    height: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-address {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 220px;
    max-width: 60%;
    height: 18px;
    font-size: 0.62rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    padding: 0 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-content {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 85, 0, 0.002);
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    padding: 1.2rem;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-content i {
    font-size: 1.4rem;
    color: rgba(255, 85, 0, 0.25);
    margin-bottom: 4px;
}

.mockup-content-success {
    color: var(--success);
}

.mockup-content-success i {
    color: var(--success);
}

/* ==========================================================================
   Grid utilities
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
}

.cta-final {
    align-items: stretch;
}

/* ==========================================================================
   Lists
   ========================================================================== */
.risk-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-item {
    position: relative;
    padding-left: 2rem !important;
    margin-bottom: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
}

.pulse-marker {
    position: absolute;
    left: 0.4rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--danger);
}

.neutral-dot-list,
.success-dot-list,
.neutral-dash-list {
    list-style: none;
    padding: 0;
    margin-top: 0.6rem;
}

.neutral-dot-list li,
.success-dot-list li,
.neutral-dash-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.neutral-dot-list li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    background-color: var(--text-dim);
    border-radius: 50%;
}

.success-dot-list li::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success), 0 0 20px rgba(16, 185, 129, 0.4);
}

.neutral-dash-list li::before {
    content: '—';
    position: absolute;
    left: 0.3rem;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ==========================================================================
   Schema arrows
   ========================================================================== */
.schema-container {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}

.schema-node {
    flex: 1;
    z-index: 2;
}

.schema-arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    z-index: 2;
    flex-shrink: 0;
}

.schema-arrow {
    width: 100%;
    height: 20px;
}

.flow-line {
    animation: flow-data 2.5s linear infinite;
}

@keyframes flow-data {
    to { stroke-dashoffset: -50; }
}

/* ==========================================================================
   Cluster schema (slide 7)
   ========================================================================== */
.cluster-schema {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cluster-center {
    width: 260px;
    z-index: 3;
}

.cluster-satellite {
    width: 200px;
    z-index: 3;
    padding: 1rem !important;
}

.satellite-1, .satellite-2, .satellite-3, .satellite-4 {
    /* desktop: positioned by cluster-svg-overlay */
}

.cluster-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cluster-svg-overlay path {
    fill: none;
    stroke: rgba(255, 85, 0, 0.15);
    stroke-width: 2;
    stroke-dasharray: 6, 6;
    animation: dash-flow 25s linear infinite;
    transition: var(--transition);
}

.cluster-schema:hover .cluster-svg-overlay path {
    stroke: rgba(255, 85, 0, 0.4);
    filter: drop-shadow(0 0 6px rgba(255, 85, 0, 0.2));
}

@keyframes dash-flow {
    to { stroke-dashoffset: -1000; }
}

.bg-concentric-squares {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    transition: var(--transition);
}

.cluster-schema:hover .bg-concentric-squares {
    opacity: 0.28;
}

.square-deco {
    position: absolute;
    border: 1px solid var(--accent);
    border-radius: 20px;
}

.sq-1 { width: 280px; height: 220px; }
.sq-2 { width: 480px; height: 280px; }
.sq-3 { width: 680px; height: 340px; }

.cluster-tag {
    display: inline-block;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
    padding: 2px 8px;
    background: rgba(255, 85, 0, 0.15);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ==========================================================================
   Timeline (slide 3)
   ========================================================================== */
.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    padding-left: 2.2rem;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: linear-gradient(to bottom, #ff8c00, #ff2200);
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.2);
}

.timeline-step {
    position: relative;
    transition: var(--transition);
}

.timeline-bullet {
    position: absolute;
    left: -2.2rem;
    top: 4px;
    width: 24px;
    height: 24px;
    background: var(--surface-solid);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.2);
    z-index: 2;
    transition: var(--transition);
}

.timeline-step:hover .timeline-bullet {
    background: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--accent);
}

.timeline-step .card { padding: 1.1rem 1.6rem; }

/* ==========================================================================
   Bento highlight box
   ========================================================================== */
.bento-highlight-box {
    background: var(--accent-gradient);
    border: none;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    min-height: 90px;
    margin: 0.8rem 0;
    box-shadow: 0 8px 30px rgba(255, 85, 0, 0.2);
}

.bento-highlight-box strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1.1;
    word-break: break-word;
}

.bento-highlight-box span {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.85;
}

/* ==========================================================================
   Info bar
   ========================================================================== */
.info-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 85, 0, 0.04);
    border: 1px solid rgba(255, 85, 0, 0.2);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.info-bar i {
    color: var(--accent);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-bar span strong {
    color: var(--text);
}

/* Callout highlight (slide 6) */
.callout-highlight {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 85, 0, 0.1);
    border: 1px solid rgba(255, 85, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.88rem;
    line-height: 1.5;
}

.callout-highlight i {
    color: var(--accent);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   Title slide
   ========================================================================== */
.title-slide-content {
    align-items: center;
    text-align: center;
    padding: 4vh 0;
    position: relative;
    z-index: 3;
}

/* WebGL hero: a living search/link graph, rendered behind the title content. */
.search-network-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 72% 43%, rgba(218, 92, 44, 0.16), transparent 27%),
        linear-gradient(135deg, rgba(218, 92, 44, 0.06), transparent 52%),
        repeating-linear-gradient(90deg, rgba(218, 92, 44, 0.07) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(0deg, rgba(218, 92, 44, 0.05) 0 1px, transparent 1px 12px),
        #000;
    transition: opacity 1200ms ease-out;
}

.search-network-canvas.is-ready {
    opacity: 1;
}

#slide-01::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.44) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 48%, rgba(0, 0, 0, 0.18));
}

.title-svg-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    animation: rotate-deco 65s linear infinite;
}

@keyframes rotate-deco {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.title-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
    text-align: left;
    position: relative;
    z-index: 3;
}

.title-text {
    position: relative;
    z-index: 3;
}

.title-text h1 {
    font-family: 'Pixellari', monospace !important;
    font-weight: 700 !important;
    font-size: 3.6rem !important;
    text-transform: uppercase !important;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    text-shadow: none;
    position: relative;
    z-index: 2;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}

.title-text h2 {
    font-family: 'Pixellari', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.4rem;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}

.title-text p.lead {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.cta-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-cta-light {
    height: 40px;
    padding: 0 18px;
    background: var(--accent);
    color: #eeeeee;
    border: 1px solid var(--accent);
    border-radius: 2px;
    font-family: 'BerkeleyMono', monospace;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-cta-light::after {
    content: " →";
    font-weight: 400;
}

.btn-cta-light:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #eeeeee;
}

.btn-cta-dark {
    height: 40px;
    padding: 0 18px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'BerkeleyMono', monospace;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   CTA right box (slide 13)
   ========================================================================== */
.cta-right-box {
    background: var(--accent-gradient) !important;
    border: none !important;
    box-shadow: var(--shadow-glow), var(--shadow) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem !important;
    border-radius: var(--radius-lg) !important;
    color: #ffffff !important;
}

.cta-right-box h3 {
    font-size: 1.3rem !important;
    color: #ffffff !important;
    margin-bottom: 0.8rem !important;
    text-align: center;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.cta-price-tag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 950;
    font-size: 1.8rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-right-box p {
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1.55;
}

.cta-right-box .btn-cta-action {
    width: 100%;
    height: 48px;
    background: #ffffff;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.cta-right-box .btn-cta-action:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-foot {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85) !important;
}

.cta-foot i {
    color: #fff;
    margin-right: 4px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   Tablet: ≤1024px
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .schema-container {
        flex-direction: column;
        gap: 1rem;
    }
    .schema-arrow-container {
        transform: rotate(90deg);
        width: 100%;
        height: 30px;
    }
    .cluster-schema {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .cluster-center {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    .cluster-satellite {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
    }
    .cluster-svg-overlay { display: none; }
    .bg-concentric-squares { display: none; }
    .side-nav { display: none; }
    .mobile-progress { display: block; }
    .slide-header h2 { font-size: 1.7rem; }
    .title-text h1 { font-size: 3rem !important; }
    .title-text h2 { font-size: 1rem; }
    .title-grid { gap: 2rem; }
    .slide-section { padding: 2.5rem 4% 3rem 4%; }
}

/* ==========================================================================
   Mobile: ≤768px
   ========================================================================== */
@media (max-width: 768px) {
    :root { --header-h: 56px; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .slide-section {
        padding: 2.5rem 5% 3rem 5%;
        min-height: auto;
    }
    .slide-header h2 { font-size: 1.5rem; }
    .slide-header .slide-number { font-size: 2rem; }
    .slide-header .subtitle { font-size: 0.75rem; }

    .title-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .search-network-canvas {
        background-size: auto, auto, 10px 10px, 10px 10px, auto;
    }
    .title-text h1 { font-size: 2.4rem !important; }
    .title-text h2 { font-size: 0.95rem; }
    .title-text p.lead { font-size: 0.95rem; margin: 0 auto 1.5rem; }
    .cta-buttons { justify-content: center; }
    .card { padding: 1.2rem; }
    .card h3 { font-size: 1rem; }
    .card p { font-size: 0.88rem; }

    .browser-mockup { margin-top: 0.8rem; }
    .mockup-content { min-height: 90px; font-size: 0.7rem; }

    .bento-highlight-box strong { font-size: 1.3rem; }
    .bento-highlight-box span { font-size: 0.65rem; }

    .timeline-steps { padding-left: 1.8rem; gap: 0.9rem; }
    .timeline-bullet { left: -1.8rem; width: 20px; height: 20px; font-size: 0.65rem; }
    .timeline-step .card { padding: 0.9rem 1.2rem; }

    .schema-container { gap: 0.6rem; }
    .schema-arrow-container { height: 24px; }

    .cluster-schema { grid-template-columns: 1fr; gap: 0.8rem; }
    .cluster-center { max-width: 100%; }
    .cluster-satellite { width: 100%; }

    .info-bar { padding: 0.8rem 1rem; font-size: 0.85rem; }
    .callout-highlight { padding: 0.7rem 0.9rem; font-size: 0.85rem; }

    .cta-right-box { padding: 1.5rem !important; }
    .cta-right-box h3 { font-size: 1.1rem !important; }
    .cta-price-tag { font-size: 1.5rem; }
    .cta-right-box .btn-cta-action { height: 44px; font-size: 0.85rem; }

    .auth-button { height: 36px; padding: 0 12px; font-size: 0.7rem; }
    .auth-button span { display: none; }
    .auth-button { padding: 0 12px; }
    .auth-button i { font-size: 0.95rem; margin: 0; }
    .auth-button::after { content: "Войти"; }
    .auth-button { gap: 6px; }
}

/* ==========================================================================
   Small mobile: ≤480px
   ========================================================================== */
@media (max-width: 480px) {
    .slide-header h2 { font-size: 1.3rem; }
    .title-text h1 { font-size: 2rem !important; }
    .cta-buttons .btn-cta-light,
    .cta-buttons .btn-cta-dark {
        flex: 1;
        min-width: 140px;
        font-size: 0.82rem;
    }
    .slide-section { padding: 2rem 5% 2.5rem 5%; }
    .neutral-dot-list li,
    .success-dot-list li,
    .neutral-dash-list li { font-size: 0.85rem; }
}
