/* ==========================================================================
   TechStarks - Next-Generation AI & Software Engineering Stylesheet
   Design Philosophy: Cyber-Minimalist, High-Tech Dark Mode, Ultra-Crisp Precision
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Color Palette */
    --bg-void: #06090e;
    --bg-body: #090d16;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #162038;
    --bg-surface-card: rgba(18, 27, 49, 0.7);
    --bg-surface-hover: #1e2c4f;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(59, 130, 246, 0.4);
    --border-focus: #3b82f6;

    --brand-blue: #3b82f6;
    --brand-cyan: #06b6d4;
    --brand-indigo: #6366f1;
    --brand-purple: #8b5cf6;
    --brand-pink: #ec4899;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;

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

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --grad-purple: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --grad-card: linear-gradient(180deg, rgba(22, 32, 56, 0.75) 0%, rgba(13, 20, 36, 0.85) 100%);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    position: relative;
}

/* Background Cyber Grid Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace !important;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Gradient Text Utilities */
.text-grad-primary {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-grad-cyan {
    background: var(--grad-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-grad-purple {
    background: var(--grad-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Bar */
.navbar-elite {
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-elite .navbar-brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.navbar-elite .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-elite .nav-link:hover,
.navbar-elite .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Live Status Pulse Dot */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--brand-emerald);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-emerald);
    margin-right: 8px;
    position: relative;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.5);
    animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Buttons */
.btn-elite-primary {
    background: var(--grad-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 26px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-elite-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.55);
}

.btn-elite-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-elite-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-epic {
    position: relative;
    padding-top: 150px;
    padding-bottom: 90px;
    overflow: hidden;
    z-index: 1;
}

.hero-glow-1 {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero-glow-2 {
    position: absolute;
    top: 25%;
    right: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.hero-display-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .hero-display-title {
        font-size: 2.6rem;
    }
}

.hero-subhead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 640px;
}

/* Interactive IDE Terminal Mockup */
.terminal-window {
    background: #0a0f1d;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.12);
    overflow: hidden;
    position: relative;
}

.terminal-header {
    background: rgba(15, 23, 42, 0.95);
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-tabs {
    display: flex;
    gap: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-cyan);
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #e2e8f0;
    max-height: 380px;
    overflow-y: auto;
}

/* Bento Card Grid */
.bento-card {
    background: var(--grad-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 32px 28px;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bento-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
}

.bento-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--brand-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 22px;
    transition: all 0.3s;
}

.bento-card:hover .bento-icon-wrapper {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.08);
}

/* Tech Tags */
.chip-tech {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    margin: 3px 3px 3px 0;
    transition: all 0.2s ease;
}

.chip-tech:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.comparison-table th {
    background: rgba(22, 32, 56, 0.9);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.comparison-table td {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.col-highlight {
    background: rgba(59, 130, 246, 0.07) !important;
    border-left: 1px solid rgba(59, 130, 246, 0.2);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    color: #ffffff !important;
    font-weight: 600;
}

/* Interactive Architecture Pipeline */
.pipeline-step {
    padding: 24px;
    background: rgba(18, 27, 49, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    height: 100%;
    position: relative;
    transition: all 0.3s;
}

.pipeline-step:hover {
    border-color: var(--brand-blue);
    background: rgba(22, 32, 56, 0.85);
}

.pipeline-num {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: var(--grad-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

/* Case Study Showcase Cards */
.case-epic {
    background: var(--grad-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.case-epic:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.15);
}

.case-img-wrap {
    background: #090e1a;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.case-img-wrap img {
    max-height: 220px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.case-epic:hover .case-img-wrap img {
    transform: scale(1.04);
}

.case-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-stat-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

/* Interactive Estimator */
.estimator-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.1);
}

.est-pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

.est-pill-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.est-pill-btn.active {
    background: rgba(59, 130, 246, 0.18);
    border-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.summary-spec-box {
    background: #090d16;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 22px;
}

/* Form Inputs in Dark Mode */
.input-dark {
    background: rgba(10, 16, 29, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.input-dark:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    outline: none !important;
}

.input-dark::placeholder {
    color: #475569 !important;
}

/* Accordion Dark */
.accordion-dark .accordion-item {
    background: rgba(18, 27, 49, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 14px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-dark .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 20px 24px;
    box-shadow: none !important;
}

.accordion-dark .accordion-button:not(.collapsed) {
    background: rgba(59, 130, 246, 0.08);
    color: var(--brand-cyan);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accordion-dark .accordion-button::after {
    filter: invert(1);
}

.accordion-dark .accordion-body {
    background: rgba(11, 17, 31, 0.8);
    color: var(--text-secondary);
    padding: 22px 24px;
    line-height: 1.7;
}

/* Footer Minimal Dark */
.footer-elite {
    background: #04060a;
    border-top: 1px solid var(--border-subtle);
    padding-top: 70px;
    padding-bottom: 40px;
    color: var(--text-secondary);
}

.footer-elite a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-elite a:hover {
    color: #ffffff;
}
