/* Daily AI Agents — Shared Design System v2 */

/* ─── CSS Variables ─── */
:root {
    --bg-primary: #050507;
    --bg-secondary: #08080d;
    --bg-elevated: #0e0e16;
    --bg-card: rgba(14, 14, 22, 0.75);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text-primary: #f0f0f5;
    --text-secondary: #9494a6;
    --text-tertiary: #606070;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.12);
    --accent-glow-strong: rgba(99, 102, 241, 0.25);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.12);
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.15);
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 50%, #818cf8 100%);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-hover);
}

/* ─── Global Styles ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ─── Layout ─── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── Navigation ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    background: rgba(5, 5, 7, 0.75);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 7, 0.92);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.25));
    transition: filter 0.3s;
}

nav:hover .nav-logo-img {
    filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.4));
}

.nav-logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a.active {
    color: var(--accent-light);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-cta {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    background: var(--accent);
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
}

/* ─── Typography ─── */
h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    font-size: 16px;
    line-height: 1.7;
}

.small {
    font-size: 14px;
    color: var(--text-secondary);
}

.tiny {
    font-size: 12px;
    color: var(--text-tertiary);
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* ─── Cards ─── */
.card {
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
    box-shadow: var(--card-shadow);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

/* ─── Section Headers ─── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-light);
    margin-bottom: 18px;
    padding: 5px 14px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
}

.section-header h2 {
    margin-bottom: 18px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Email Form ─── */
.email-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.email-form {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.email-form:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 30px rgba(99, 102, 241, 0.1);
}

.email-form input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.email-form input::placeholder {
    color: var(--text-tertiary);
}

.email-form button {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.email-form button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.email-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 14px;
    text-align: center;
}

.form-success {
    display: none;
    text-align: center;
    padding: 18px;
    background: var(--success-glow);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    color: var(--success);
    font-weight: 500;
    font-size: 15px;
}

.form-success.show {
    display: block;
}

/* ─── Footer ─── */
footer {
    padding: 56px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.25));
}

.footer-text {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger child reveals */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }

/* Fallback: ensure content is visible even without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ─── Status Badge ─── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
}

.status-badge.live {
    color: var(--success);
    background: var(--success-glow);
}

.status-badge.building {
    color: var(--amber);
    background: var(--amber-glow);
}

.status-badge .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(99, 102, 241, 0);
    }
}

/* ─── Grid Layouts ─── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ─── Hero Badge ─── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.08);
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 36px;
    backdrop-filter: blur(12px);
}

.hero-badge .pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

/* ─── Responsive Design ─── */
@media (max-width: 768px) {
    .container,
    .container-narrow {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .email-form {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 16px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 15px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* DESIGN SYSTEM v2 — Premium AI Aesthetic Upgrades                           */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); }

/* ─── Selection ─── */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ─── Enhanced Card Hover ─── */
.card:hover,
.principle-card:hover,
.cap-card:hover,
.agent-card:hover,
.report-card:hover,
.hypothesis-card:hover,
.benchmark-card:hover,
.blog-post-card:hover,
.blog-featured-card:hover {
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(99, 102, 241, 0.06);
}

/* ─── Glow Button ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}
.btn-primary:hover::after {
    left: 130%;
}
.btn-primary:hover {
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.4), 0 8px 32px rgba(99, 102, 241, 0.2);
}

/* ─── Enhanced Nav CTA ─── */
.nav-cta {
    position: relative;
    overflow: hidden;
}
.nav-cta::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 30%; height: 200%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    transition: left 0.45s ease;
    pointer-events: none;
}
.nav-cta:hover::after { left: 130%; }

/* ─── Email Button Shine ─── */
.email-form button {
    position: relative;
    overflow: hidden;
}
.email-form button::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 30%; height: 200%;
    background: rgba(255,255,255,0.12);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}
.email-form button:hover::after { left: 130%; }
.email-form button:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

/* ─── Section Tag Enhanced ─── */
.section-tag {
    transition: background 0.3s, box-shadow 0.3s;
}
.section-tag:hover {
    background: rgba(99, 102, 241, 0.18);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

/* ─── Floating Animation ─── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50%       { transform: translateY(12px) rotate(45deg); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes spinSlowReverse {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Geometric Decorations ─── */
.geo-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
}

/* ─── Hero Particle Canvas ─── */
#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* ─── Reveal Variants ─── */
.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
                transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ─── Live Pulse Ring ─── */
.pulse-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pulse-ring::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 1px solid rgba(99, 102, 241, 0.4);
    animation: pingRing 2s ease-in-out infinite;
}
@keyframes pingRing {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ─── Code Terminal Block ─── */
.terminal-block {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
}
.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-title {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-left: 8px;
    letter-spacing: 0.04em;
}
.terminal-body {
    padding: 20px 24px;
    color: var(--text-secondary);
}
.terminal-body .t-green  { color: #22c55e; }
.terminal-body .t-cyan   { color: #22d3ee; }
.terminal-body .t-purple { color: #818cf8; }
.terminal-body .t-amber  { color: #f59e0b; }
.terminal-body .t-dim    { color: var(--text-tertiary); }
.terminal-cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--accent-light);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1.1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ─── Agent Activity Feed ─── */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    transition: border-color 0.2s, background 0.2s;
    animation: slideInActivity 0.4s ease both;
}
.activity-item:hover {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.03);
}
@keyframes slideInActivity {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.activity-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}
.activity-dot.success { background: var(--success); box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.activity-dot.accent  { background: var(--accent-light); box-shadow: 0 0 6px rgba(129,140,248,0.4); }
.activity-dot.cyan    { background: var(--cyan); box-shadow: 0 0 6px rgba(34,211,238,0.4); }
.activity-dot.amber   { background: var(--amber); box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.activity-text { color: var(--text-secondary); flex: 1; }
.activity-text strong { color: var(--text-primary); font-weight: 600; }
.activity-time {
    font-size: 11px;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

/* ─── Gradient Divider ─── */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99,102,241,0.3) 20%,
        rgba(34,211,238,0.2) 50%,
        rgba(99,102,241,0.3) 80%,
        transparent 100%);
    margin: 0;
}

/* ─── Feature Highlight ─── */
.feature-highlight {
    position: relative;
    padding: 2px 8px;
    background: rgba(99,102,241,0.1);
    border-radius: 4px;
    color: var(--accent-light);
    font-weight: 600;
}

/* ─── Stat Counter Animation ─── */
.stat-number {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* ─── Noise Texture Overlay ─── */
.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

/* ─── Glow Divider ─── */
.glow-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

/* ─── Section Highlight Band ─── */
.section-band {
    position: relative;
    overflow: hidden;
}
.section-band::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(99,102,241,0.015) 40%,
        rgba(34,211,238,0.01) 60%,
        transparent 100%);
    pointer-events: none;
}

/* ─── Arch Layer Enhanced ─── */
.arch-layer:hover .arch-chip {
    border-color: rgba(99, 102, 241, 0.2);
}
.arch-chip {
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.arch-chip:hover {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

/* ─── Enhanced Hero Badge ─── */
.hero-badge {
    animation: fadeInUp 0.6s ease both;
}
.hero-badge:hover {
    background: rgba(99, 102, 241, 0.14);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    cursor: default;
}

/* ─── Gradient Text Enhanced ─── */
.gradient-text {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.2));
}

/* ─── Interactive Stats ─── */
.stat-item {
    cursor: default;
    transition: transform 0.3s;
}
.stat-item:hover {
    transform: translateY(-4px);
}
.stat-item:hover h3 {
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
}

/* ─── Print / Motion reduction ─── */
@media (prefers-reduced-motion: reduce) {
    .reveal-left, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .gradient-text { animation: none; }
    #hero-canvas { display: none; }
    .terminal-cursor { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* DESIGN SYSTEM v3 — Overhaul additions                                       */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page Transition Fade ─── */
body {
    animation: pageFadeIn 0.4s ease both;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Button Ripple Effect ─── */
.btn, .nav-cta, .social-btn {
    position: relative;
    overflow: hidden;
}
.btn::before, .social-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}
.btn:active::before, .social-btn:active::before {
    width: 300px; height: 300px;
    opacity: 1;
    transition: 0s;
}

/* ─── Enhanced Button Glow ─── */
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.45), 0 8px 32px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}
.btn-secondary:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ─── Card Accent Glow on Hover ─── */
.card:hover {
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.18),
        0 24px 64px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(99, 102, 241, 0.07);
}

/* ─── Gradient Animated Background ─── */
.gradient-bg-animated {
    background: linear-gradient(
        135deg,
        rgba(99,102,241,0.07) 0%,
        rgba(34,211,238,0.04) 35%,
        rgba(99,102,241,0.05) 65%,
        rgba(34,197,94,0.03) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── Section Entrance Animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Stagger delays for grids ─── */
.principle-grid .reveal:nth-child(1),
.cap-grid .reveal:nth-child(1),
.proof-grid .reveal:nth-child(1),
.pipeline-steps .pipeline-step:nth-child(1) { transition-delay: 0s; }

.principle-grid .reveal:nth-child(2),
.cap-grid .reveal:nth-child(2),
.proof-grid .reveal:nth-child(2),
.pipeline-steps .pipeline-step:nth-child(2) { transition-delay: 0.08s; }

.principle-grid .reveal:nth-child(3),
.cap-grid .reveal:nth-child(3),
.proof-grid .reveal:nth-child(3),
.pipeline-steps .pipeline-step:nth-child(3) { transition-delay: 0.16s; }

.cap-grid .reveal:nth-child(4),
.proof-grid .reveal:nth-child(4),
.pipeline-steps .pipeline-step:nth-child(4) { transition-delay: 0.24s; }

.cap-grid .reveal:nth-child(5),
.pipeline-steps .pipeline-step:nth-child(5) { transition-delay: 0.32s; }

.cap-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.cap-grid .reveal:nth-child(7) { transition-delay: 0.16s; }
.cap-grid .reveal:nth-child(8) { transition-delay: 0.24s; }
.cap-grid .reveal:nth-child(9) { transition-delay: 0.32s; }

/* ─── Progress Bar ─── */
.progress-bar-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left;
}

/* ─── Tooltip ─── */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Enhanced Hero Badge Glow ─── */
.hero-badge {
    box-shadow: 0 0 30px rgba(99,102,241,0.08);
}

/* ─── Mobile Nav Menu (hamburger) ─── */
.nav-mobile-toggle {
    display: none;
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s;
}
.nav-mobile-toggle:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .nav-mobile-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(8, 8, 13, 0.97);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border);
        padding: 16px 20px 24px;
        flex-direction: column;
        gap: 4px;
        z-index: 99;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 15px;
    }
    .nav-links a:hover {
        background: rgba(255,255,255,0.04);
    }
    .nav-cta {
        margin-top: 8px;
        text-align: center;
        padding: 14px 18px !important;
    }
}

/* ─── Scroll Progress Indicator ─── */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: var(--gradient-primary);
    z-index: 200;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
    box-shadow: 0 0 8px rgba(99,102,241,0.5);
}

/* ─── Founder Tier Spotlight Card ─── */
.founder-spotlight {
    background: linear-gradient(135deg,
        rgba(245,158,11,0.06) 0%,
        rgba(99,102,241,0.04) 100%);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 20px;
    padding: 40px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.founder-spotlight::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #6366f1);
    opacity: 0.6;
}

/* ─── Responsive tweaks v3 ─── */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    body { animation: none; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-grid { grid-template-columns: 1fr; }
}

/* ─── Reduced motion overrides ─── */
@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    .btn::before, .social-btn::before { display: none; }
    #scroll-progress { display: none; }
    .gradient-bg-animated { animation: none; }
}
