/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-bg-tertiary: #1a1a1a;
    --color-accent: #ff4500;
    --color-accent-dark: #cc3700;
    --color-accent-glow: rgba(255, 69, 0, 0.3);
    --color-text: #e0e0e0;
    --color-text-secondary: #a0a0a0;
    --color-border: #2a2a2a;
    --color-danger: #ff3333;
    --color-success: #00ff88;
    --spacing-unit: 1rem;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== ANIMATED BACKGROUND ===== */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* ===== NAVIGATION ===== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

#main-nav.visible {
    transform: translateY(0);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.fire-icon {
    font-size: 1.5rem;
    animation: flicker 2s infinite;
}

.logo-text {
    background: linear-gradient(135deg, #ff4500, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    position: relative;
    margin-bottom: 2rem;
}

.fire-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

.brand-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
}

.fire-icon-large {
    font-size: 1.2em;
    display: inline-block;
    animation: flicker 2s infinite;
}

.brand-name .accent {
    color: var(--color-accent);
}

.tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin: 1rem 0;
    color: var(--color-text-secondary);
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 1.5rem auto;
    color: var(--color-text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 69, 0, 0.5);
}

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

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-support {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    border: 2px solid var(--color-accent);
}

.btn-support:hover {
    background: var(--color-accent);
    color: white;
}

.hero-shield {
    position: absolute;
    bottom: -10%;
    right: 10%;
    width: 200px;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.shield-svg {
    width: 100%;
    height: auto;
}

.shield-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawShield 2s ease-out forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
    background: var(--color-bg-secondary);
}

.problem-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.diagram-step {
    background: var(--color-bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
    border: 2px solid var(--color-border);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.diagram-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-icon.danger {
    animation: shake 0.5s infinite;
}

.diagram-arrow {
    font-size: 2rem;
    color: var(--color-accent);
}

.owasp-callout {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 69, 0, 0.05));
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.callout-icon {
    font-size: 3rem;
}

.callout-content h3 {
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

/* ===== HOW IT WORKS SECTION ===== */
.pipeline {
    max-width: 900px;
    margin: 4rem auto;
}

.pipeline-stage {
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.pipeline-stage.visible {
    opacity: 1;
    transform: translateX(0);
}

.stage-number {
    position: absolute;
    top: -1rem;
    left: 2rem;
    background: var(--color-accent);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.stage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pipeline-stage h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pipeline-connector {
    text-align: center;
    position: relative;
    height: 60px;
}

.connector-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    margin: 0 auto;
}

.connector-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.protection-note {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--color-success);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.note-icon {
    font-size: 3rem;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: var(--color-bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-secondary);
}

/* ===== COMMUNITY SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-tertiary);
    border-radius: 12px;
    border: 2px solid var(--color-accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.community-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.community-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-check {
    color: var(--color-success);
    font-size: 1.5rem;
    font-weight: 700;
}

.community-feature h3 {
    margin-bottom: 0.25rem;
}

.community-feature p {
    color: var(--color-text-secondary);
}

/* ===== DEPLOY SECTION ===== */
.deploy-section {
    background: var(--color-bg-secondary);
}

.deploy-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.deploy-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-tertiary);
    border-radius: 12px;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
}

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

.deploy-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.code-block {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.copy-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    color: var(--color-success);
    font-size: 1.1rem;
}

/* ===== DASHBOARD SECTION ===== */
.dashboard-preview {
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.preview-placeholder {
    text-align: center;
    color: var(--color-text-secondary);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.dashboard-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.dashboard-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.feature-bullet {
    color: var(--color-accent);
    font-size: 1.5rem;
}

/* ===== OPEN SOURCE SECTION ===== */
.open-source-section {
    background: var(--color-bg-secondary);
}

.opensource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.opensource-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-tertiary);
    border-radius: 12px;
    border: 2px solid var(--color-border);
}

.os-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.github-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ===== SUPPORT SECTION ===== */
.support-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-secondary);
    border-top: 2px solid var(--color-border);
    padding: 4rem 0 2rem;
}

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

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    margin: 0.5rem 0;
}

/* ===== ANIMATIONS ===== */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes drawShield {
    to { stroke-dashoffset: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.5); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-shield {
        display: none;
    }

    .problem-diagram {
        flex-direction: column;
    }

    .diagram-arrow {
        transform: rotate(90deg);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

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

/* Deploy Tabs */
.deploy-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}
.deploy-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
}
.deploy-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.deploy-tab.active { background: rgba(255,107,0,0.15); color: #ff6b00; border-color: rgba(255,107,0,0.3); }
.deploy-panel { display: none; }
.deploy-panel.active { display: block; }
.deploy-panel .code-block { border-radius: 0 8px 8px 8px; }

/* FireClaw Badger Logo */
.hero-logo-img {
    width: 120px;
    height: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
    /* Hero logo: prominent size for main branding, inline with heading */
}
.nav-logo-img {
    width: 40px;
    height: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    /* Nav logo: increased from 32px for better visibility, standard nav size */
}

.logo:hover .nav-logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}
.footer-logo-img {
    width: 36px;
    height: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
    /* Footer logo: increased from 28px for better visibility, slightly smaller than nav */
}
