/* aibadger/style.css */

:root {
    --primary-green: #2ECC71;
    --dark-green: #27AE60;
    --terminal-green: #00FF41;
    --bg-dark: #050505; /* Slightly darker than main site */
    --bg-medium: #121212;
    --bg-light: #1A1A1A;
    --text-primary: #F0F0F0;
    --text-secondary: #D0D0D0;
    --border-color: #222222;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    --container-width: 1240px;
    --header-height: 70px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 300;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 255, 65, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 65, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

a:hover {
    color: var(--terminal-green);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--primary-green);
    line-height: 1.2;
}

.highlight {
    color: var(--primary-green);
}

/* --- Header --- */
#header {
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
}

.product-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-primary);
    padding: 8px 0;
    position: relative;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.5px;
    font-size: 1rem;
    text-transform: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.hamburger {
    background: transparent;
    border: 0;
    display: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-green);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 12px 0 18px 0;
    min-height: auto;
    display: flex;
    align-items: center;
    background: var(--bg-dark) url('../img/carbon-fibre-v2.png');
    position: relative;
    overflow: hidden;
}

.hero-section::before { /* Green glow effect matching main site */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(46, 204, 113, 0.08) 0%, rgba(46, 204, 113, 0) 80%);
    animation: pulseGlow 10s infinite ease-in-out;
    will-change: transform, opacity;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.95fr 1.05fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -1px;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    max-width: 650px;
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 22px;
    font-family: var(--font-body);
    max-width: 650px;
}

.workflow-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    background: rgba(46, 204, 113, 0.05);
    padding: 10px 18px;
    border-radius: 4px;
    border: 1px solid rgba(46, 204, 113, 0.1);
    display: inline-flex;
}

.w-step {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.w-step.active {
    color: var(--terminal-green);
    font-weight: 700;
}

.w-arrow {
    color: var(--border-color);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.btn-primary, .btn-install {
    background: var(--primary-green);
    color: var(--bg-dark);
}

.btn-primary:hover, .btn-install:hover {
    background: var(--terminal-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.2);
}

.btn-secondary, .btn-demo {
    background: transparent;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}

.btn-secondary:hover, .btn-demo:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--terminal-green);
    color: var(--terminal-green);
    transform: translateY(-2px);
}

.btn .icon {
    width: 18px;
    height: 18px;
}

/* --- Terminal Window --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.terminal-window {
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
    font-size: 0.95rem;
    width: 100%;
    max-width: 560px;
    margin: 12px 0;
}

.terminal-header {
    background: #2B2B2B;
    min-height: 34px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #222;
}

.terminal-dots span:nth-child(1) {
    background: #F56B61;
}

.terminal-dots span:nth-child(2) {
    background: #F8C24E;
}

.terminal-dots span:nth-child(3) {
    background: #56C267;
}

.terminal-title {
    color: #D2D2D2;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
}

.terminal-body {
    background: #1F1F1F;
    padding: 6px 14px 6px;
    font-family: var(--font-body);
}

.terminal-header-content {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.terminal-ascii-badger pre {
    color: #FFFFFF;
    font-size: 0.84rem;
    line-height: 1.1;
    margin: 0;
}

.terminal-header-text {
    flex: 1;
}

.terminal-title-row {
    font-size: 0.96rem;
    margin-bottom: 6px;
    color: #FFFFFF;
    white-space: nowrap;
}

.terminal-subtitle {
    color: #BBBBBB;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.terminal-pipeline {
    color: #AAAAAA;
    font-size: 0.82rem;
    white-space: nowrap;
}

.p-step.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    padding: 0 4px;
    border-radius: 2px;
}

.terminal-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin: 14px 0;
}

.terminal-main-content p {
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: #EEEEEE;
}

.terminal-input-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    font-size: 0.88rem;
}

.terminal-input-row.empty {
    margin-top: 8px;
}

.terminal-input-row .prompt {
    color: #888888;
}

.input-line {
    background: rgba(255, 255, 255, 0.08);
    padding: 0 10px;
    color: #FFFFFF;
    flex: 1;
}

.terminal-footer-content {
    font-size: 0.8rem;
    color: #999999;
    padding-top: 8px;
}

/* --- Why Bar Section --- */
.why-bar-section {
    padding: 8px 0;
}

.why-bar {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.why-title {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.why-title h3 {
    font-size: 1.1rem;
    margin: 0;
}

.icon-q {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-weight: bold;
}

.why-divider {
    color: var(--border-color);
    font-weight: 300;
}

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

/* --- Workflow & Features Shared Card Style --- */
.workflow-card, .feature-item {
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.workflow-card:hover, .feature-item:hover {
    border-color: var(--primary-green);
    background: rgba(46, 204, 113, 0.05);
}

.workflow-icon, .feature-icon {
    color: var(--primary-green);
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.workflow-text h3, .feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-green);
}

.why-content, .workflow-text p, .feature-content p {
    font-size: 0.9rem;
    color: #D8D8D8;
    line-height: 1.4;
}

/* --- Workflow Section --- */
.workflow-section {
    padding: 14px 0;
}

.workflow-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.workflow-card {
    flex: 1;
}

.workflow-arrow-v {
    color: var(--border-color);
    width: 24px;
    height: 24px;
}

/* --- Features Grid Section --- */
.features-grid-section {
    padding: 14px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    width: 100%;
}

/* --- Buttons Overrides --- */
.btn-github {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-green);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workflow-grid {
        flex-direction: column;
    }
    
    .workflow-arrow-v {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--bg-medium);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: left 0.3s ease-in-out;
        padding-top: 2rem;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .why-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .why-divider { display: none; }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Footer --- */
#footer {
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

#footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-brand {
    font-family: var(--font-display);
    letter-spacing: 0.8px;
}

.footer-brand-pvr {
    color: var(--text-primary);
}

.footer-brand:hover {
    opacity: 0.9;
}
