/* ==========================================================================
   ffbb-data-client / FFBB MCP Server — Perfect Mobile Responsiveness
   ========================================================================== */

:root {
    --theme-bg: #07090e;
    --theme-surface: #101420;
    --theme-surface-hover: #171d2e;
    --theme-surface-elevated: #1f273d;
    --theme-border: rgba(255, 255, 255, 0.08);
    --theme-border-active: rgba(255, 107, 0, 0.4);

    --color-orange: #ff6b00;
    --color-orange-glow: rgba(255, 107, 0, 0.3);
    --color-amber: #f59e0b;
    --color-live-red: #ef4444;
    --color-mint: #10b981;
    --color-cyan: #06b6d4;
    --color-indigo: #818cf8;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-chip: 9999px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-card: 22px;
    --radius-hero: 28px;

    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--theme-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent Grid & Flex Blowout Everywhere */
.hero-grid, .hero-grid > *,
.tools-grid, .tools-grid > *,
.usecases-grid, .usecases-grid > *,
.ai-banner, .ai-banner > *,
.faq-grid, .faq-grid > *,
.footer-grid, .footer-grid > *,
.container {
    min-width: 0;
    max-width: 100%;
}

/* Ambient Canvas Glow */
.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    max-width: 100vw;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.32;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: 20%;
    width: clamp(240px, 45vw, 600px);
    height: clamp(240px, 45vw, 600px);
    background: radial-gradient(circle, #ff6b00 0%, #f59e0b 45%, transparent 70%);
}

.glow-2 {
    bottom: -15%;
    right: 10%;
    width: clamp(200px, 40vw, 500px);
    height: clamp(200px, 40vw, 500px);
    background: radial-gradient(circle, #818cf8 0%, #06b6d4 45%, transparent 70%);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    padding: 4.5rem 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Navigation */
.site-header, .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.9rem 0;
    transition: var(--transition);
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled, .site-nav.scrolled {
    background: rgba(7, 9, 14, 0.95);
    border-bottom: 1px solid var(--theme-border);
    padding: 0.65rem 0;
}

.header-inner, .nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand, .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo, .nav-brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.35);
    flex-shrink: 0;
}

.main-nav, .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.main-nav a, .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-nav a:hover, .nav-links a:hover { color: #ffffff; }

.header-actions, .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 36px;
    padding: 8px 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 5rem 1.25rem 2rem 1.25rem;
    flex-direction: column;
    justify-content: space-between;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.9rem 1.15rem;
    color: #f1f5f9;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    background: rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.35);
    color: #ff914d;
}

.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--theme-border);
    margin-top: 1.25rem;
}

/* Chips & Badges */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-chip);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--theme-border);
    color: var(--text-secondary);
    white-space: nowrap;
    max-width: 100%;
}

.chip-orange {
    background: rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.35);
    color: #ff8c42;
}

.chip-live {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.chip-mint {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.chip-indigo {
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.3);
    color: #a5b4fc;
}

.live-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-live-red);
    box-shadow: 0 0 7px var(--color-live-red);
    animation: liveBeat 1.5s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes liveBeat {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    border-radius: var(--radius-chip);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b00 0%, #ff9800 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.55);
}

.btn-surface {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--theme-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-surface:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.15rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.text-gradient {
    background: linear-gradient(135deg, #ff6b00 0%, #f59e0b 50%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 580px;
    word-break: break-word;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-badges-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--theme-border);
    width: 100%;
}

.hero-badge-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.hero-badge-val {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-badge-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.2rem;
    line-height: 1.3;
    word-break: break-word;
}


.basket-preview-card {
    background: var(--theme-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 107, 0, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.preview-nav {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--theme-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    min-width: 0;
}

.preview-nav::-webkit-scrollbar { display: none; }

.preview-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-chip);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.preview-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.preview-tab.active {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.35);
    color: #ff914d;
}

.preview-content {
    min-height: 200px;
}

.match-card {
    background: var(--theme-surface-elevated);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 0.85rem;
    min-width: 0;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.team-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.team-name {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    word-break: break-word;
}

.team-score {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #ff6b00;
    line-height: 1.1;
}

.match-vs {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    flex-shrink: 0;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.usecase-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-card);
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    min-width: 0;
}

.usecase-card:hover {
    transform: translateY(-4px);
    background: var(--theme-surface-hover);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.5);
}

.usecase-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.usecase-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.65rem;
    line-height: 1.3;
    word-break: break-word;
}

.usecase-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ai-banner {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(129, 140, 248, 0.08) 100%);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: var(--radius-hero);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.ai-banner h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.ai-banner p {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.ai-chat-bubble {
    background: var(--theme-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    min-width: 0;
}

.chat-user {
    color: #f1f5f9;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    display: flex;
    gap: 0.5rem;
}

.chat-agent {
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.88rem;
    color: #ffb88c;
    line-height: 1.55;
}

.code-section {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.code-tabs-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.25rem;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--theme-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    min-width: 0;
}

.code-tabs-bar::-webkit-scrollbar { display: none; }

.code-box-content {
    position: relative;
    padding: 1.75rem 1.25rem;
    background: rgba(5, 6, 10, 0.95);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    max-width: 100%;
}

.code-box-content pre {
    margin: 0;
    white-space: pre;
    word-wrap: normal;
}


/* Section Headings */
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-top: 0.65rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    word-break: break-word;
}

.section-head p {
    font-size: clamp(0.92rem, 1.6vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.faq-box {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-card);
    padding: 1.35rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 0;
}

.faq-box:hover {
    background: var(--theme-surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-box.open {
    border-color: var(--color-orange);
    background: var(--theme-surface-hover);
}

.faq-question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    gap: 0.75rem;
}

.faq-plus {
    font-size: 1.25rem;
    color: var(--color-orange);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-box.open .faq-plus {
    transform: rotate(45deg);
}

.faq-answer-row {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-box.open .faq-answer-row {
    max-height: 350px;
    margin-top: 0.75rem;
}

/* Copy Button */
.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--theme-border);
    color: var(--text-secondary);
    border-radius: var(--radius-chip);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.copy-btn:hover {
    background: rgba(255, 107, 0, 0.25);
    border-color: var(--color-orange);
    color: #ffffff;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--theme-border);
    background: rgba(5, 6, 10, 0.95);
    padding: 3.5rem 0 1.75rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.75rem;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border);
    color: var(--text-muted);
    font-size: 0.8rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .tools-grid, .usecases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-banner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Mobile Navigation */
    .main-nav, .nav-links, .header-dash-chip, .chip-pypi {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav-drawer {
        display: flex;
    }

    .brand span, .nav-brand span {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding-top: 4.8rem;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(1.65rem, 6.5vw, 2.3rem);
        margin-bottom: 0.85rem;
    }

    .hero-lead {
        font-size: 0.95rem;
        margin-bottom: 1.35rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
        margin-bottom: 1.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 0.85rem 1.25rem;
    }

    .hero-badges-row {
        gap: 0.65rem;
        padding-top: 1rem;
    }

    .hero-badge-val {
        font-size: 1.05rem;
    }

    .hero-badge-lbl {
        font-size: 0.65rem;
    }

    /* Cards & Grids */
    .tools-grid, .usecases-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .tool-card, .usecase-card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    /* AI Banner */
    .ai-banner {
        padding: 1.25rem;
        border-radius: var(--radius-card);
        gap: 1.25rem;
    }

    .ai-chat-bubble {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    /* Code & Setup Box */
    .setup-code-box, .code-box-content {
        padding: 2.5rem 0.85rem 1rem 0.85rem;
        font-size: 0.78rem;
    }

    .copy-btn {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    /* FAQ */
    .faq-box {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .faq-question-row {
        font-size: 0.92rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 0.75rem;
    }

    .brand span, .nav-brand span {
        font-size: 0.9rem;
    }

    .brand-logo, .nav-brand img {
        width: 28px;
        height: 28px;
    }

    .header-gh-btn, .nav-gh-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .hero-badges-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}
