/* Base Reset */
html {
    scroll-behavior: auto;
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

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

:root {
    /* Fonts */
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Brand Colors */
    --brand-green: #77d49b;
    --brand-green-hover: #48bb78;

    /* Light Theme (Default) */
    --bg-color: #F5F5F0;
    --text-color: #1E1919;
    --text-muted: #666;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #fff;
    --card-bg-glass: rgba(255, 255, 248, 0.7);
    --footer-bg: #EAEAE0;
    --footer-text: #1E1919;
    --footer-text-muted: #555;
    --footer-border: rgba(0, 0, 0, 0.08);
}

body.dark-theme {
    /* Dark Theme Variables */
    --bg-color: #1E1919;
    --text-color: #f4f4f5;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #2a2a2a;
    --card-bg-glass: rgba(30, 25, 25, 0.7);
    --footer-bg: #151111;
    --footer-text: #f4f4f5;
    --footer-text-muted: rgba(255, 255, 255, 0.6);
    --footer-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body, nav, footer, a, button, input, .command-card, .terminal-mockup, .pill, .logo, .nav-links a, .footer-links a, .social-icons a {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* Background Blobs */
.blob {
    position: absolute;
    background-color: var(--brand-green);
    border-radius: 50%;
   
    
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.blob-green-1 {
    width: 350px;
    height: 250px;
    border-radius: 30px ; /* Rectangle shape */
    top: 15%;
    right: 8%;
    left: auto;
    background-color: rgba(84, 223, 141, 0.15); /* Subtle dark green */
    opacity: 1;
    
}

.blob-green-2 {
    width: 400px;
    height: 200px;
    border-radius: 30px; /* Rectangle shape */
    top: 40%;
    left: 15%;
    bottom: auto;
    right: auto;
    opacity: 1;
}



/* Top Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: transparent;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--text-color);
    text-decoration: none;
}

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

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

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

.icon-link {
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.icon-link:hover {
    opacity: 1;
}

/* Primary Button */
.btn-primary {
    background-color: var(--brand-green);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateZ(0);
    transition: color 0.4s ease, border-color 0.4s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    background-color: var(--brand-green-hover);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: translate(-50%, -50%) scale(12);
    opacity: 1;
}

.btn-primary.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: #1c1c1c;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 24px;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #252525;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section (CLI Page) */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center everything */
    gap: 120px;
    /* Increased space between visuals and text for less clutter */
    padding: 0 5%;
    min-height: 100vh;
    padding-top: 80px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1 1 40%;
    max-width: 600px;
    z-index: 10;
}

.hero-display {
    font-family: var(--font-display);
    font-size: clamp(4rem, 7vw, 7rem);
    line-height: 0.9;
    /* Tighter */
    letter-spacing: -1px;
    /* Closer to HTTPie compressed font */
    color: var(--text-color);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Download Section */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.buttons-group {
    display: flex;
    gap: 16px;
}

.version-tag {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-family: var(--font-mono);
}

.alt-downloads {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.alt-downloads a {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.npx-fallback {
    margin-top: 24px;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.terminal-code {
    display: block;
    background: #000;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-mono);
    color: #fff;
    margin-top: 8px;
    
}

/* Hero Visuals (Tilted Terminals) */
.hero-visuals {
    flex: 1 1 50%;
    position: relative;
    height: 600px;
}

.floating-icon {
    position: absolute;
    padding: 12px;
    border-radius: 16px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icon svg {
    width: 18px;
    height: 18px;
}

.icon-dark {
    background: #111;
    border: none;
    top: 60%;
    left: 2%;
    opacity: 0.5;
    /* Blends nicely into background */
    box-shadow: none;
}

.icon-green {
    background: var(--brand-green);
    border: none;
    top: 25%;
    left: 70%;
    opacity: 0.25;
    /* Highly transparent, non-distracting */
    box-shadow: none;
}

.tilted-terminal {
    position: absolute;
    background-color: var(--card-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.terminal-back {
    width: 380px;
    height: auto;
    min-height: 240px;
    top: 10%;
    left: 10%;
    opacity: 1;
    /* Solid background so text is readable */
}

.terminal-front {
    width: 420px;
    height: auto;
    min-height: 280px;
    top: 40%;
    left: 30%;
    z-index: 10;
    box-shadow: none;
}

.terminal-header {
    height: 36px;
    background: transparent;
   
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

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

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

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

.dot.grey {
    background: #555;
}

.terminal-body {
    padding: 24px 32px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    /* Extremely sleek, small font */
    line-height: 1.8;
    color: #e2e8f0;
    
}

.prompt {
    color: #58a6ff;
}

.info {
    color: #8b949e;
}

.command {
    color: #e2e8f0;
}

.success {
    color: #54df8d;
}

.warning-text {
    color: #ff7b72;
}

.warning-bg {
    background: rgba(255, 123, 114, 0.15);
    color: #ff7b72;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.error {
    color: #8b949e;
    font-style: italic;
}

/* Default Dark Theme / Auto Adaptive Terminals (Glassmorphic) */
.tilted-terminal,
.feature-terminal-card {
    background: rgba(15, 17, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none !important;
    color: #e2e8f0;
}

.tilted-terminal .prompt,
.feature-terminal-card .prompt,
.feature-terminal-card .ft-prompt {
    color: #58a6ff;
}

.tilted-terminal .info,
.feature-terminal-card .info,
.feature-terminal-card .ft-info {
    color: #8b949e;
}

.tilted-terminal .command,
.feature-terminal-card .command,
.feature-terminal-card .ft-cmd {
    color: #e2e8f0;
}

.tilted-terminal .success,
.feature-terminal-card .success,
.feature-terminal-card .ft-success {
    color: #54df8d;
}

.tilted-terminal .warning-text,
.feature-terminal-card .warning-text,
.feature-terminal-card .ft-approval-label {
    color: #ff7b72;
}

.feature-terminal-card .ft-muted {
    color: #6e7681;
}

.feature-terminal-card .terminal-title-label {
    color: #8b949e;
}

.feature-terminal-card .ft-approval-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Light Theme overrides for all 4 terminals */
body.light-theme .tilted-terminal,
body.light-theme .feature-terminal-card {
    background: rgba(255, 255, 248, 0.75) !important;
    border: none !important;
    color: #1f2328 !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .tilted-terminal .prompt,
body.light-theme .feature-terminal-card .prompt,
body.light-theme .feature-terminal-card .ft-prompt {
    color: #0969da !important;
}

body.light-theme .tilted-terminal .info,
body.light-theme .feature-terminal-card .info,
body.light-theme .feature-terminal-card .ft-info {
    color: #57606a !important;
}

body.light-theme .tilted-terminal .command,
body.light-theme .feature-terminal-card .command,
body.light-theme .feature-terminal-card .ft-cmd {
    color: #0f172a !important;
}

body.light-theme .tilted-terminal .success,
body.light-theme .feature-terminal-card .success,
body.light-theme .feature-terminal-card .ft-success {
    color: #1a7f37 !important;
}

body.light-theme .tilted-terminal .warning-text,
body.light-theme .feature-terminal-card .warning-text,
body.light-theme .feature-terminal-card .ft-approval-label {
    color: #9a6700 !important;
}

body.light-theme .feature-terminal-card .ft-muted {
    color: #57606a !important;
}

body.light-theme .feature-terminal-card .terminal-title-label {
    color: #57606a !important;
}

body.light-theme .feature-terminal-card .ft-approval-box {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* === LIGHT THEME (DOCS PAGE) === */
body.light-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.docs-page .top-nav,
.try-page .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.docs-page .nav-left,
.docs-page .nav-right,
.try-page .nav-left,
.try-page .nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.docs-page .logo,
.try-page .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--text-color);
}

.docs-page .nav-links a,
.try-page .nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
}

.docs-page .nav-links a:hover,
.docs-page .nav-links a.active,
.try-page .nav-links a:hover,
.try-page .nav-links a.active {
    color: var(--text-color);
}

/* Layout (Docs) */
.layout-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    gap: 60px;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: calc(100vh - 100px);
    overflow-y: auto;
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.nav-group {
    margin-bottom: 32px;
}

.nav-group h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.nav-group ul {
    list-style: none;
}

.nav-group li {
    margin-bottom: 8px;
}

.nav-group a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.content {
    flex-grow: 1;
    max-width: 850px;
}

.breadcrumbs {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 0.9;
    letter-spacing: 0.02em;
    margin-bottom: 32px;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 48px;
    max-width: 700px;
}

/* Hero Image in Docs */
.hero-image-container {
    background-color: #2B6AFF;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 64px;
    display: flex;
    justify-content: center;
}

.terminal-mockup {
    background-color: var(--card-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    width: 100%;
    max-width: 750px;
    overflow: hidden;
    border: none;
}

/* Content Sections */
.content section {
    margin-bottom: 64px;
    scroll-margin-top: 100px;
    /* For anchor links */
}

.content h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.content p {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.7;
}

.code-block {
    position: relative;
    background-color: #111;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.code-block pre {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #F8F8F2;
    overflow-x: auto;
}

.code-block .comment {
    color: #6272A4;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    cursor: pointer;
}

.copy-btn:hover {
    color: #fff;
    border-color: #fff;
}



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

.right-aligned {
    display: flex;
    justify-content: flex-end;
}

/* ---------------------------------
   LAYOUT UTILITIES
--------------------------------- */

.section-padding {
    padding: 120px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ---------------------------------
   CHANGELOG & FEATURES
--------------------------------- */

.changelog-section {
    padding: 60px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.changelog-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.changelog-pill {
    background-color: var(--card-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 40px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: none;
}

.changelog-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

body.light-theme .changelog-pill:hover {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 0.9;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    color: var(--text-color);
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
}

.section-padding {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-graphic {
    display: flex;
    justify-content: center;
}

.right-aligned {
    justify-content: flex-end;
}

.badge {
    display: inline-block;
    background: rgba(84, 223, 141, 0.15);
    color: var(--brand-green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start; /* Prevents pill stretching in flex layouts */
}

/* Theme visibility overrides for terminal text */
.feature-terminal-card,
.tilted-terminal {
    color: #c9d1d9 !important; /* Force readable light text */
}

.feature-terminal-card .terminal-title-label,
.tilted-terminal .terminal-title-label {
    color: #8b949e !important;
}

.feature-terminal-card .ft-muted {
    color: #6e7681 !important;
}

.feature-terminal-card .ft-info {
    color: #8b949e !important;
}

body.light-theme .badge {
    color: #1a7f37; /* Higher contrast dark green for light mode */
    background: rgba(26, 127, 55, 0.1);
}

/* ============================
   Feature Card System
   ============================ */
.feature-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.feature-card-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.feature-blob-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.green-accent {
    width: 320px;
    height: 240px;
    background: radial-gradient(circle, rgba(84,223,141,0.35) 0%, transparent 70%);
    top: -40px;
    right: -40px;
}

.blue-accent {
    width: 300px;
    height: 240px;
    background: radial-gradient(circle, rgba(64,104,213,0.4) 0%, transparent 70%);
    bottom: -40px;
    left: -40px;
}

.feature-terminal-card {
    position: relative;
    z-index: 2;
    background: rgba(14, 17, 23, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.light-theme .feature-terminal-card {
    background: rgba(26, 30, 46, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
}

.terminal-title-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #555;
    margin-left: 8px;
    flex: 1;
    text-align: center;
    padding-right: 60px; /* balance the dots */
}

.feature-terminal-body {
    padding: 20px 28px 28px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #c9d1d9;
}

.ft-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-gap {
    margin-top: 12px;
}

.ft-prompt {
    color: #54df8d;
    font-weight: 700;
    flex-shrink: 0;
}

.ft-cmd {
    color: #e6edf3;
    font-weight: 500;
}

.ft-info {
    color: #8b949e;
}

.ft-muted {
    color: #6e7681;
}

.ft-success {
    color: #54df8d;
}

.ft-highlight {
    color: #79c0ff;
    background: rgba(121,192,255,0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.ft-approval-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 12px;
}

.ft-approval-label {
    color: #f0c27f;
}

.ft-approval-input {
    color: #54df8d;
    font-weight: 700;
}

.ft-cursor {
    color: #54df8d;
    animation: blink 1s step-end infinite;
    font-size: 10px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Feature Stats Row */
.feature-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-green);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* Legacy placeholder (keep for old feature-window refs) */
.graphic-placeholder {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 24px;
    overflow: hidden;
}

.feature-blob {
    position: absolute;
    width: 280px;
    height: 200px;
    border-radius: 40px;
    z-index: 1;
}

.feature-blob.green {
    background: #56a775cd;
    top: 10%;
    right: 5%;
    opacity: 0.9;
}

.feature-blob.dark {
    background: #56a775cd;
    bottom: 6%;
    left: 2%;
}

/* ============================
   Improved Footer
   ============================ */
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--footer-text-muted);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 240px;
}

.footer-email {
    color: var(--brand-green) !important;
    font-weight: 500;
    font-size: 0.88rem;
    word-break: break-all;
}

.footer-theme-wrap {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-theme-label {
    font-size: 0.75rem;
    color: var(--footer-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-banner {
    background: #4068d5;
    color: white;
    padding: 80px 5% 40px;
    margin: 0;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.cta-left {
    flex: 1;
}

.zig-zag-graphic {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: max-content;
}

.zig-zag-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100%;
    z-index: 1;
}

.pill {
    background: #fff;
    color: #000;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
    text-align: center;
}

.cta-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

.cta-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.community-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.comm-btn {
    background: #fff;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.comm-btn.github {
    padding-right: 8px;
}

.comm-btn .count {
    background: #1a1919;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 400;
}

.newsletter-input {
    display: flex;
    align-items: center;
    background: var(--border-color);
    padding: 6px;
    border-radius: 30px;
    width: 100%;
    max-width: 350px;
}

.newsletter-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px 16px;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-input input::placeholder {
    color: var(--text-muted);
}

.newsletter-input .submit-arrow {
    background: #54df8d;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #000;
}

/* === NEW FOOTER STYLES === */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 40px;
    margin: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr 0.5fr;
    gap: 40px;
    padding: 0 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--footer-text);
}

.footer-links h3 {
    color: var(--footer-text);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: var(--footer-text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

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

.badge {
    background: var(--brand-green);
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 4px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: inline-block;
    color: var(--footer-text-muted);
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--footer-text);
}

.dark-theme-input {
    background: var(--border-color);
}

.theme-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--footer-text-muted);
    font-weight: 600;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.toggle-knob {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.3s ease;
}

body:not(.dark-theme) .toggle-knob {
    transform: translateX(20px);
}

.theme-toggle:hover .toggle-knob {
    box-shadow: 0 0 8px var(--brand-green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

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

.footer-legal a {
    color: var(--footer-text-muted);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* === ANIMATIONS === */
.fade-in {
    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);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delayed {
    transition-delay: 0.3s;
}

/* Scroll Line Animation */
.scroll-line-container {
    position: absolute;
    top: 100vh;
    left: 0;
    width: 100%;
    /* Dynamically computed so it ends at the center of the cta-banner (about 480px from page bottom) */
    bottom: 480px; 
    z-index: -2;
    pointer-events: none;
    overflow: visible;
}

.scroll-line-container svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#scroll-line {
    stroke: var(--brand-green);
    stroke-width: 24;
    stroke-linecap: round;
    opacity: 0.7;
    transition: stroke-dashoffset 20ms ease-in-out;
}

/* ===================================
   RESPONSIVE — TABLET (≤1024px)
   =================================== */
@media (max-width: 1024px) {

    /* Nav */
    .top-nav {
        padding: 18px 24px;
    }
    /* Keep nav-socials visible on tablet, hide only on mobile */

    /* Hero */
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        gap: 60px;
        padding: 100px 5% 60px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-display {
        font-size: clamp(3rem, 7vw, 5rem);
    }

    .hero-visuals {
        width: 100%;
        height: 420px;
        display: flex;
        justify-content: center;
    }

    .terminal-back {
        width: 320px;
        min-height: 200px;
        top: 0;
        left: 5%;
    }

    .terminal-front {
        width: 340px;
        min-height: 240px;
        top: 30%;
        left: 25%;
        position: absolute;
    }

    .buttons-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Feature sections */
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .right-aligned {
        justify-content: center;
    }

    .section-desc {
        max-width: 100%;
    }

    .graphic-placeholder {
        height: 320px;
    }

    /* CTA Banner */
    .cta-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .cta-left,
    .cta-right {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .zig-zag-graphic {
        width: 100%;
        align-items: center;
    }

    /* Docs layout */
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 24px;
        position: static;
    }

    .nav-group {
        margin-bottom: 0;
    }

    .content {
        max-width: 100%;
        padding: 24px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
}


/* ===================================
   RESPONSIVE — MOBILE (≤768px)
   =================================== */
@media (max-width: 768px) {

    /* Nav */
    .top-nav {
        padding: 16px 20px;
        gap: 12px;
    }

    .nav-socials {
        display: none;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-right .btn-primary {
        display: none;
    }

    /* Hero */
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 90px 20px 48px;
        gap: 32px;
        min-height: auto;
    }

    .hero-display {
        font-size: clamp(2.6rem, 10vw, 4rem);
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .hero-visuals {
        width: 100%;
        height: 380px;
        position: relative;
    }

    /* Show BOTH terminals on mobile, stacked and smaller */
    .terminal-back {
        display: block;
        width: 260px;
        min-height: 180px;
        top: 0;
        left: 0;
        opacity: 0.85;
    }

    .terminal-front {
        width: 270px;
        min-height: 200px;
        top: 30%;
        left: 15%;
    }

    .terminal-body {
        padding: 14px 18px;
        font-size: 9.5px;
    }

    /* Feature terminals responsive scaling */
    .feature-card-wrap {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .feature-terminal-body {
        padding: 16px 20px;
        font-size: 11.5px;
    }

    .green-accent, .blue-accent {
        width: 260px;
        height: 200px;
    }

    /* Feature sections */
    .section-padding {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .graphic-placeholder {
        height: 260px;
    }

    /* Changelog section */
    .changelog-section {
        padding: 0 20px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 60px 20px 40px;
    }

    .cta-container {
        flex-direction: column;
        gap: 32px;
    }

    .pill {
        font-size: 1.1rem;
        padding: 10px 24px;
    }

    .community-buttons {
        justify-content: center;
    }

    /* Docs */
    .page-title {
        font-size: 3rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .hero-image-container {
        padding: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 32px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px 20px;
    }

    .footer-legal {
        justify-content: center;
    }

    .theme-toggle {
        /* Keep visible — it's how users switch dark/light mode */
        display: flex;
        margin-top: 8px;
    }

    /* Scroll line hidden on mobile — too narrow to look good */
    .scroll-line-container {
        display: none;
    }
}


/* ===================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   =================================== */
@media (max-width: 480px) {

    /* Nav */
    .top-nav {
        padding: 14px 16px;
    }

    .nav-links {
        display: none;
    }

    .logo span {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero-container {
        padding: 80px 16px 40px;
        gap: 28px;
    }

    .hero-display {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    .hero-subtext {
        font-size: 0.95rem;
    }

    /* Stack both terminals vertically */
    .hero-visuals {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .tilted-terminal {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 320px;
    }

    .terminal-back {
        display: block;
        opacity: 1;
    }

    /* Buttons */
    .buttons-group {
        flex-direction: column;
        align-items: stretch;
    }

    .buttons-group a {
        text-align: center;
        justify-content: center;
    }

    .btn-primary.large {
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* Feature sections */
    .section-padding {
        padding: 48px 16px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .feature-card-wrap {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .feature-terminal-body {
        padding: 12px 16px;
        font-size: 10px;
    }

    .green-accent, .blue-accent {
        width: 180px;
        height: 140px;
    }

    .graphic-placeholder {
        height: 220px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 48px 16px 32px;
    }

    .pill {
        font-size: 0.95rem;
        padding: 8px 20px;
    }

    .comm-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Docs */
    .page-title {
        font-size: 2.2rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    /* Footer — single column + keep theme toggle visible */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 24px 16px;
    }

    .footer-bottom {
        padding: 20px 16px;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Theme toggle — make it stand out clearly */
    .theme-toggle {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 10px;
        font-size: 0.75rem;
    }
}