/* ============================================
   Novalith Engineering — Site Styles
   ============================================ */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #1f2a40;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --accent-glow: rgba(6, 182, 212, 0.25);
    --accent-secondary: #8b5cf6;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.1);
    --border-accent: rgba(6, 182, 212, 0.3);
    --gradient-accent: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --nav-height: 72px;
    --section-padding: 100px;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

/* ---- Typography ---- */
.text-accent { color: var(--accent) !important; }

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

/* ---- Navbar ---- */
.site-nav {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    transition: var(--transition);
    min-height: var(--nav-height);
}

.site-nav .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav.scrolled {
    background: rgba(10, 14, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    padding: 0;
    margin-right: 1rem;
    line-height: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: min(220px, 52vw);
    aspect-ratio: 1327 / 368;
    object-fit: contain;
    object-position: left center;
    display: block;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.35)) brightness(1.06);
    transition: filter var(--transition);
}

.site-nav .brand-logo {
    max-height: calc(var(--nav-height) - 1rem);
}

.navbar-brand:hover .brand-logo {
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.5)) brightness(1.1);
}

.brand-logo-footer {
    height: 72px;
    max-width: 300px;
    margin-bottom: 0.75rem;
}

.footer-brand {
    display: inline-block;
}

.site-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition);
    position: relative;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--text-primary) !important;
}

.site-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* ---- Buttons ---- */
.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-accent:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                var(--bg-primary);
}

.swarm-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero .container {
    z-index: 2;
}

.hero .container > .row {
    padding-top: calc(var(--nav-height) + 3.5rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drone-hub {
    position: relative;
    width: 400px;
    height: 400px;
}

.hub-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--border-accent);
}

.ring-1 { width: 120px; height: 120px; animation: pulse-ring 3s ease-in-out infinite; }
.ring-2 { width: 220px; height: 220px; animation: pulse-ring 3s ease-in-out infinite 0.5s; }
.ring-3 { width: 320px; height: 320px; animation: pulse-ring 3s ease-in-out infinite 1s; }

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

.hub-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 0 40px var(--accent-glow);
    z-index: 2;
}

.drone-node {
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--accent);
    z-index: 2;
    animation: float-node 4s ease-in-out infinite;
}

.node-1 { top: 15%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 30%; right: 15%; animation-delay: 0.5s; }
.node-3 { bottom: 30%; right: 15%; animation-delay: 1s; }
.node-4 { bottom: 15%; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.node-5 { bottom: 30%; left: 15%; animation-delay: 2s; }
.node-6 { top: 30%; left: 15%; animation-delay: 2.5s; }

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

.node-1 { animation-name: float-node-center; }
.node-4 { animation-name: float-node-center; }

@keyframes float-node-center {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.mesh-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mesh-line {
    stroke: var(--accent);
    stroke-width: 1;
    opacity: 0.4;
    stroke-dasharray: 4 4;
    animation: dash-flow 2s linear infinite;
}

.mesh-line-secondary {
    stroke: var(--accent-secondary);
    opacity: 0.2;
    animation-delay: 1s;
}

@keyframes dash-flow {
    to { stroke-dashoffset: -16; }
}

.hero-visual-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
    text-decoration: none;
    transition: color var(--transition);
}

.scroll-indicator:hover {
    color: var(--accent);
}

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

/* ---- Sections ---- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- About ---- */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.about-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
}

.about-feature h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.about-card-main {
    grid-column: 1 / -1;
    padding: 2rem;
}

.about-card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-card-icon-sm {
    font-size: 1.5rem;
    color: var(--accent);
}

.about-card h4, .about-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.about-card-metric {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.about-card-metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.about-card-wide {
    grid-column: 1 / -1;
}

/* ---- Automation Section ---- */
.automation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.automation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

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

.automation-card:hover::before {
    opacity: 1;
}

.automation-card-featured {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
}

.automation-card-featured::before {
    opacity: 1;
}

.automation-card-icon {
    width: 56px;
    height: 56px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.automation-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.automation-card-lead {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.automation-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.automation-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.automation-list li i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.automation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.automation-tags span {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.automation-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.automation-stack {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    margin-bottom: 1rem;
}

.stack-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stack-node {
    text-align: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 130px;
    flex: 1;
    max-width: 180px;
    transition: var(--transition);
}

.stack-node:hover {
    border-color: var(--border-accent);
}

.stack-node i {
    font-size: 1.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.stack-node span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.stack-node small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.stack-node-accent {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.05));
}

.stack-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.automation-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    transition: var(--transition);
}

.automation-stat-card:hover {
    border-color: var(--border-accent);
}

.automation-stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.automation-stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.automation-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
    .stack-arrow {
        display: none;
    }

    .stack-pipeline {
        gap: 1rem;
    }

    .stack-node {
        max-width: none;
        flex: 1 1 calc(50% - 1rem);
    }
}

/* ---- Tech Cards (FANET) ---- */
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

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

.tech-card:hover::before {
    opacity: 1;
}

.tech-card-featured {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
}

.tech-card-featured::before {
    opacity: 1;
}

.tech-card-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tech-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.tech-card h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.tech-card-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* FANET Flow */
.fanet-flow {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 1rem;
}

.flow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.flow-step-icon {
    width: 56px;
    height: 56px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
    color: var(--accent);
}

.flow-step h6 {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.flow-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.flow-connector {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    padding-top: 1rem;
    font-size: 1.25rem;
}

/* ---- Swarm Diagram ---- */
.swarm-diagram {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.swarm-layer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: var(--transition);
}

.swarm-layer:hover {
    border-color: var(--border-accent);
}

.swarm-layer-accent {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.05));
}

.layer-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.layer-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.layer-items span {
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.swarm-capabilities {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.swarm-capabilities li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.swarm-capabilities li i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ---- Application Cards ---- */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.app-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

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

.app-card:hover::after {
    opacity: 1;
}

.app-card-icon {
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.app-card h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.app-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.app-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.app-card-tags span {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ---- Project Cards ---- */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

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

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-status {
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.status-testing {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.status-research {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.project-id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-card h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.project-tech span {
    padding: 0.25rem 0.6rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent-light);
    font-family: var(--font-mono);
}

.progress-custom {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: var(--gradient-accent);
    border-radius: 3px;
}

/* ---- CTA ---- */
.cta-section {
    padding-bottom: var(--section-padding);
}

.cta-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

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

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-divider {
    border-color: var(--border);
    margin: 2rem 0 1.5rem;
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 70px;
    }

    .hero .container > .row {
        align-items: flex-start;
        padding-top: calc(var(--nav-height) + 4.5rem);
    }

    .hero-visual {
        display: none;
    }

    .flow-connector {
        display: none;
    }

    .flow-steps {
        gap: 1.5rem;
    }

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

    .cta-card {
        padding: 2rem;
        text-align: center;
    }

    .cta-card .text-lg-end {
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        max-height: 42px;
        max-width: min(185px, 65vw);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-divider {
        display: none;
    }
}
