/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #10b981, #3b82f6);
    z-index: 200;
    transition: width 0.1s;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

:root {
    --accent: #10b981;
    --accent-light: rgba(16, 185, 129, 0.15);
    --accent-dark: #065f46;
    --font-body: 'Comic Neue', 'Inter', system-ui, sans-serif;
    --font-display: 'Bangers', cursive;
    --font-accent: 'Luckiest Guy', cursive;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-body: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(15, 23, 42, 0.8);
    --border-glass: rgba(255, 255, 255, 0.4);
    --border-color: rgba(226, 232, 240, 0.8);
    --border-hover: rgba(16, 185, 129, 0.4);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --comic-border: 3px solid #000;
    --comic-shadow: 6px 6px 0px #000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-osx-font-smoothing: grayscale;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== DYNAMIC GLASS BACKGROUND ===== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 35%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    pointer-events: none;
    z-index: -1;
}

/* Glass Effect Utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
}

/* Comic Effect Utility */
.comic-card {
    border: var(--comic-border) !important;
    box-shadow: var(--comic-shadow) !important;
    transform: rotate(-0.5deg);
    background: #fff !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.comic-card:hover {
    transform: rotate(0deg) scale(1.02) translate(-2px, -2px);
    box-shadow: 10px 10px 0px #000 !important;
}

.halftone {
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 6px 6px;
    opacity: 0.1;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    margin-top: 0;
}

.navbar--scrolled {
    margin-top: 20px;
    width: 90%;
    max-width: 1100px;
    left: 50% !important;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 12px 24px !important;
}

/* ===== LAYOUT HELPERS ===== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.container--wide {
    width: 100%;
}

.section {
    padding: 80px 0;
    margin: 0 auto;
    width: 100%;
}

.section+.section {
    border-top: 1px solid var(--border-color);
}

/* ===== SECTION HEADER (⟩ style) ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .chevron {
    color: var(--accent);
    font-size: 18px;
    font-weight: 400;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.section-link:hover {
    opacity: 0.7;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-mascot {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    position: relative;
}

.hero-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-mascot::after {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.15), transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-brand {
    font-size: clamp(56px, 12vw, 96px);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.1em;
    line-height: 0.85;
    margin-bottom: 24px;
    -webkit-text-stroke: 2px #000;
    filter: drop-shadow(4px 4px 0px #000);
    text-transform: uppercase;
}

.hero-brand:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 8px 16px rgba(16, 185, 129, 0.3));
}

.hero-tagline {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Announcement pill */
.announcement {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    color: #000;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s;
    cursor: pointer;
    text-transform: uppercase;
}

.announcement:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    background: #fef08a;
    /* yellow pop */
}

.announcement-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 12px;
    border: 2px solid #000;
    transform: rotate(-3deg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.announcement-arrow {
    color: var(--text-muted);
    margin-left: 4px;
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.carousel-track {
    animation: scroll 40s linear infinite;
}

.carousel-track:hover,
div:hover>.carousel-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

.mask-fade {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ===== QUICK START / TERMINAL ===== */
.terminal {
    background: var(--bg-glass-dark);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

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

.terminal-dot--red {
    background: #ef4444;
}

.terminal-dot--yellow {
    background: #eab308;
}

.terminal-dot--green {
    background: #22c55e;
}

.terminal-tabs {
    display: flex;
    gap: 0;
}

.terminal-cmd {
    color: #f1f5f9;
    text-transform: none;
}

.terminal-comment {
    color: #22c55e;
    text-transform: none;
}

.terminal-tab {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
}

.terminal-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.terminal-body {
    padding: 32px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 14px;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.2);
    text-transform: none;
    /* Ensure no uppercase in terminal */
}

.terminal-prompt {
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: white;
    outline: none;
    transition: border-color 0.2s;
    text-transform: none;
    /* User email shouldn't be forced uppercase */
}

.terminal-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.terminal-copy {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
}

.terminal-copy:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.terminal-copy.copied {
    color: var(--accent);
}

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent);
    margin-left: auto;
    margin-bottom: 24px;
    filter: drop-shadow(4px 4px 0px #000);
}

.feature-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== INTEGRATION PILLS ===== */
.integrations-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    color: #000;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.2s;
}

.pill:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000;
    background: #f0fdf4;
}

.pill i {
    font-size: 16px;
}

.pill .fa-whatsapp {
    color: #25D366;
}

.pill .fa-telegram {
    color: #0088cc;
}

.pill .fa-python {
    color: #3776AB;
}

.pill .fa-docker {
    color: #2496ED;
}

.integrations-links {
    text-align: center;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.integrations-links a {
    color: var(--accent);
    transition: opacity 0.2s;
}

.integrations-links a:hover {
    opacity: 0.7;
}

/* ===== FEATURED IN / PHILOSOPHY ===== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.featured-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.featured-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.featured-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 12px;
}

.featured-source {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.featured-quote {
    font-size: 15px;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px;
}

.featured-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

/* ===== TEAM SECTION ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px !important;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    margin-bottom: 24px;
    transform: rotate(-2deg);
    overflow: hidden;
    background: #e2e8f0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover .hero-avatar {
    transform: rotate(0deg) scale(1.05);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    font-family: var(--font-accent);
    color: #ef4444;
    /* Heroic Red */
    font-size: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.team-name {
    font-size: 32px;
    margin-bottom: 12px;
    color: #000;
}

.team-bio {
    text-align: center;
    font-size: 16px;
    color: #475569;
    font-weight: 700;
}

/* ===== RESOURCE CARDS ===== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.resource-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.resource-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.resource-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 16px;
}

.resource-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.resource-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== NEWSLETTER CTA ===== */
.newsletter {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(56, 189, 248, 0.05));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    border: 1px solid var(--border-glass);
    box-shadow: var(--glass-shadow);
}

.newsletter-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.newsletter-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    border-color: var(--accent);
}

.newsletter-btn {
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

.newsletter-btn:active {
    transform: scale(0.97);
}

/* ===== SPONSORS / FOOTER ===== */
.footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-bottom a {
    color: var(--accent);
    font-weight: 600;
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 100;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-brand {
        font-size: 48px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

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

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

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

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter {
        padding: 40px 24px;
    }

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

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

    .terminal-tabs {
        display: none;
    }
}

@media (max-width: 480px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}