/*
 * 🎨 TREEBIRD LANDING PAGE V2
 * Style: Tribal Integration
 * "Ancient Wisdom Meets Modern Code"
 */

/* ═══════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════ */
:root {
    /* Base - Earthy Darks */
    --bg-deep: #1a1612;
    --bg-surface: #2a2420;
    --bg-surface-light: #3a3430;
    --bg-surface-hover: #4a4440;

    /* Text */
    --text-primary: #e8e4df;
    --text-secondary: #c8c4bf;
    --text-muted: #9a958f;
    --text-inverse: #1a1612;

    /* Accent - Bluejay Blue */
    --accent: #4a90d9;
    --accent-light: #6ba8eb;
    --accent-dark: #3a7bc4;
    --accent-glow: rgba(74, 144, 217, 0.3);

    /* Semantic */
    --success: #6b9a5b;
    --warning: #c9a227;
    --error: #a85a4a;
    --rust: #8b4513;

    /* Borders & Patterns */
    --border: #3d3530;
    --border-light: #5d5550;
    --pattern: #3d3530;

    /* Fonts */
    --font-serif: 'Spectral', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;

    /* Sizing */
    --max-width: 1200px;
    --nav-height: 80px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-serif);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════════════════
   NOISE TEXTURE OVERLAY
   ═══════════════════════════════════════════════════════ */
.hero-bg-pattern,
.story::before,
.flock::before {
    position: absolute;
    inset: 0;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(26, 22, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.logo-img-footer {
    height: 80px;
    width: auto;
    border-radius: 12px;
}


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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

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

.nav-btn {
    padding: 10px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.nav-btn:hover {
    background: var(--bg-surface-light);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   SECTION 1: HERO
   ═══════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
    background: radial-gradient(ellipse at 50% 30%, #2a2420 0%, #1a1612 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    color: var(--accent);
}

.tagline {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

/* Hero Flanking Glyphs */
.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 1rem;
}

.hero-title-center {
    text-align: center;
}

.hero-glyph-left,
.hero-glyph-right {
    width: 200px;
    height: 200px;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(74, 144, 217, 0.3));
}

.hero-glyph-right {
    transform: scaleX(-1);
}

/* Terminal Demo */
.terminal-demo {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    max-width: 550px;
    margin: 0 auto 3rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.amber {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #666;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 8px;
}

.prompt {
    color: var(--accent);
    margin-right: 8px;
}

.cmd {
    color: #fff;
}

.arg {
    color: var(--text-muted);
    margin: 0 4px;
}

.pkg {
    color: var(--warning);
}

.output {
    color: var(--text-muted);
}

.output.success {
    color: var(--success);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--warning);
    color: var(--text-inverse);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #dbb84a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-inverse);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ═══════════════════════════════════════════════════════
   SECTION 2: STORY / MANIFESTO
   ═══════════════════════════════════════════════════════ */
.story {
    position: relative;
    padding: 120px 20px;
    background: var(--bg-surface);
}

.story-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.story-badge,
.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-surface-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 24px;
}

.story h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
}

.manifesto {
    max-width: 700px;
    margin: 0 auto 60px;
}

.manifesto blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--warning);
    padding-left: 24px;
    line-height: 1.8;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.story-card {
    background: var(--bg-deep);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.story-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.story-card h3 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.story-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   SECTION 3: THE FLOCK (AGENTS)
   ═══════════════════════════════════════════════════════ */
.flock {
    position: relative;
    padding: 120px 20px;
    background: var(--bg-deep);
}

.flock-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.agent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.agent-card:hover {
    border-color: var(--warning);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.agent-card.featured {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(74, 144, 217, 0.1) 100%);
    border-color: var(--accent);
}

.agent-card.collective {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(201, 162, 39, 0.1) 100%);
    border-color: var(--warning);
}

.agent-card.human {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(107, 154, 91, 0.15) 100%);
    border-color: var(--success);
}

.human-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.human-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
}

.human-links a:hover {
    color: var(--accent-light);
}

/* Center last row if fewer than 3 items */
.agent-grid {
    justify-items: center;
}

.agent-glyph {
    flex-shrink: 0;
}

.agent-glyph img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 20px;
}

.agent-info {
    text-align: center;
}

.agent-info h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.agent-role {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--warning);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.agent-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   FEATURED TOOLS SECTION
   ═══════════════════════════════════════════════════════ */
.featured-tools {
    padding: 120px 20px;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
}

.featured-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 40px;
    background: var(--bg-surface);
    border: 2px solid var(--warning);
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.1);
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(201, 162, 39, 0.2);
}

.featured-glyph img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 24px;
}

.featured-info {
    text-align: center;
}

.featured-info h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.featured-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--warning);
    color: var(--text-inverse);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 16px;
}

.featured-tag.live {
    background: var(--success);
}

.featured-tag.launching {
    background: var(--accent);
}

.featured-card.coming-soon {
    opacity: 0.7;
}

.featured-card.coming-soon:hover {
    opacity: 1;
}

.featured-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}


.featured-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.featured-list {
    list-style: none;
    margin-bottom: 20px;
}

.featured-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.featured-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

.featured-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.featured-btn:hover {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

.featured-btn.primary {
    background: var(--warning);
    color: var(--text-inverse);
    border-color: var(--warning);
}

.featured-btn.primary:hover {
    background: #dbb84a;
    border-color: #dbb84a;
}

.featured-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════
   SECTION 4: QUICK START
   ═══════════════════════════════════════════════════════ */
.quickstart {
    padding: 120px 20px;
    background: var(--bg-surface);
}

.quickstart-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.quickstart-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-deep);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--text-inverse);
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: 50%;
}

.step-content h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 12px;
}

.code-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0a0a0a;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #333;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    flex-grow: 1;
}

.copy-btn {
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--bg-surface-light);
    color: var(--text-primary);
}

/* Demo Terminal */
.quickstart-demo {
    max-width: 700px;
    margin: 0 auto;
}

.demo-terminal {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo-terminal pre {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: auto;
}

/* ═══════════════════════════════════════════════════════
   SECTION 5: COMMUNITY
   ═══════════════════════════════════════════════════════ */
.community {
    padding: 120px 20px;
    background: linear-gradient(180deg, var(--bg-deep) 0%, #0f0d0b 100%);
}

.community-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header.light h2 {
    color: var(--text-primary);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.community-card {
    display: block;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.community-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.community-card h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.community-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 40px;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   SECTION 6: FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    padding: 80px 20px 40px;
    background: #0a0908;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-muted);
    font-style: italic;
}

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

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-quote {
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE - TABLET
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .agent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .agent-glyph img {
        width: 160px;
        height: 160px;
    }

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

    /* Hero glyphs smaller on tablet */
    .hero-glyph-left,
    .hero-glyph-right {
        width: 120px;
        height: 120px;
    }

    .hero-title-row {
        gap: 24px;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE - MOBILE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Prevent horizontal overflow */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .nav {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        /* Add mobile menu later */
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Hide hero glyphs on mobile */
    .hero-glyph-left,
    .hero-glyph-right {
        display: none;
    }

    .hero-title-row {
        flex-direction: column;
    }

    .terminal-demo {
        margin: 0 10px 2rem;
        max-width: calc(100vw - 40px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .story,
    .flock,
    .quickstart,
    .community {
        padding: 60px 16px;
    }

    /* Agent Grid - Single Column on Mobile */
    .agent-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }

    .agent-card {
        padding: 20px;
        max-width: 100%;
    }

    .agent-glyph img {
        width: 120px;
        height: 120px;
    }

    .agent-info h3 {
        font-size: 1.2rem;
    }

    .agent-info p {
        font-size: 0.9rem;
    }

    /* Featured Tools */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-card {
        padding: 20px;
    }

    .featured-glyph img {
        width: 80px;
        height: 80px;
    }

    .featured-actions {
        flex-direction: column;
        gap: 8px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-desc {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 32px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Community Section */
    .community-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE - SMALL MOBILE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .agent-glyph img {
        width: 100px;
        height: 100px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .terminal-body {
        font-size: 0.8rem;
        padding: 16px;
    }
}