@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css');

:root {
    --bg-main: #02040a;
    --bg-glass: rgba(15, 23, 42, 0.6);
    --border-lite: rgba(255, 255, 255, 0.08);
    --primary-glow: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* BACKGROUND EFFECTS (The "Metoro" Glow) */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: #3b82f6;
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: floatGlow 10s ease-in-out infinite alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: #3b82f6;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: #8b5cf6;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* NAVBAR - Floating Glass */
.navbar {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    /* Increased to ensure clickability */
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.btn-small {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: #60a5fa;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4rem;
    /* 5rem on massive screens */
    line-height: 1.1;
    font-weight: 800;
    max-width: 900px;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: #fff;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* BENTO GRID (The "Metoro" Features) */
.bento-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.header-center h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    /* Allow rows to expand to fit text */
    gap: 1.5rem;
}

.bento-card {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-lite);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.card-large {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bento-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* TERMINAL WIDGET (Improved) */
.terminal-widget {
    margin-top: 4rem;
    width: 100%;
    max-width: 800px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: var(--font-mono);
}

.term-header {
    background: #161b22;
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #30363d;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #30363d;
}

.term-dot.active {
    background: #238636;
}

.term-body {
    padding: 24px;
    color: #e6edf3;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-large,
    .card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar {
        width: 95%;
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: none;
    }

    /* Add hamburger later if needed */
}

/* TECH TICKER (X-RAY EFFECT) */
.trusted-section {
    padding: 3rem 0 6rem;
    text-align: center;
    border-bottom: 1px solid var(--border-lite);
    overflow: hidden;
}

.trusted-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.ticker-stack-wrapper {
    position: relative;
    height: 100px;
    max-width: 1000px;
    margin: 0 auto;
    /* No overflow hidden here if we want potential glow bleed, but safer */
    overflow: hidden;
}

.logo-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: max-content;
    white-space: nowrap;
}

.logo-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 5rem;
    align-items: center;
    animation: scrollTicker 30s linear infinite;
}

/* Base Icon Style */
.logo-track i {
    font-size: 3.5rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

/* Layer 1: Color (Bottom) */
.color-mode {
    z-index: 1;
}

/* Icons are naturally colored via 'colored' class in HTML */

/* Layer 2: Gray (Top) */
.gray-mode {
    z-index: 2;
    /* The Mask: Hides the gray layer in the center, revealing the color layer */
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 1) 100%);
}

.gray-mode i {
    color: #334155;
    /* Dark gray for the "inactive" state */
    opacity: 0.6;
}

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

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

    /* Ensure the duplicate set is long enough to cover the scroll */
}

/* MISSION CONTROL DASHBOARD */
.dashboard-section {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, #02040a 0%, #060912 100%);
    position: relative;
    min-height: 800px;
    /* Ensure space */
}

.dashboard-ui {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 16px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.05);
    overflow: hidden;
}

.dash-controls {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #30363d;
    background: rgba(13, 17, 23, 0.8);
}

.dash-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.dash-btn.active,
.dash-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.2);
}

.dash-screen {
    display: flex;
    min-height: 500px;
}

.dash-sidebar {
    width: 60px;
    border-right: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    gap: 1.5rem;
}

.dash-icon {
    font-size: 1.2rem;
    opacity: 0.5;
    cursor: pointer;
}

.dash-icon.active {
    opacity: 1;
}

.dash-main {
    flex-grow: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dash-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dash-row.large {
    grid-template-columns: 1fr;
    flex-grow: 1;
}

.dash-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-card.wide {
    height: 100%;
}

.dash-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.dash-metric {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trend-up {
    color: #238636;
    font-size: 0.9rem;
    margin-left: auto;
}

.trend-down {
    color: #238636;
    font-size: 0.9rem;
    margin-left: auto;
}

/* Simplified */

.dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    margin-top: auto;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
}

.bar {
    flex-grow: 1;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.6));
    border-radius: 4px 4px 0 0;
}

/* MEGA FOOTER */
.mega-footer {
    background: #02040a;
    border-top: 1px solid #30363d;
    padding: 5rem 5% 2rem;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* HERO STARS */
.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    /* Only upper part */
    pointer-events: none;
    z-index: 1;
    /* Above background, below text (if text is z-2) */
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.input-group input {
    background: #161b22;
    border: 1px solid #30363d;
    padding: 0.6rem;
    border-radius: 6px;
    color: #fff;
    width: 100%;
}

.input-group button {
    background: #3b82f6;
    border: none;
    color: #fff;
    padding: 0 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.footer-certs {
    display: flex;
    gap: 3rem;
    justify-content: center;
    border-top: 1px solid #30363d;
    padding: 3rem 0;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-circle {
    width: 40px;
    height: 40px;
    border: 1px solid #30363d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #30363d;
    padding-top: 2rem;
    color: #64748b;
    max-width: 1200px;
    margin: 0 auto;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #238636;
    border-radius: 50%;
    box-shadow: 0 0 8px #238636;
}

@media (max-width: 900px) {
    .dash-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-track {
        gap: 2rem;
        flex-wrap: wrap;
    }
}

/* PRICING */
.pricing-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-lite);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.pricing-card.highlight {
    background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    display: flex;
    align-items: baseline;
    justify-content: center;
    /* Center it if needed, but flex-col parent usually aligns left. */
}

/* Re-evaluating alignment. Pricing card is flex-col.
   If I set display:flex on .price, it might break if 'justify-content' isn't set.
   Usually it's block.
   Let's keep .price as block or flex-row.
   Actually, the spans will be inline. So keeping .price as block is fine.
   I'll just add .vat font-size.
*/

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.vat {
    font-size: 0.8rem;
    color: #94a3b8;
    /* Lighter grey for better visibility */
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
    /* Make it look cleaner */
    letter-spacing: 0.5px;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 0.8rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: '✓';
    color: #3b82f6;
    font-weight: 700;
}

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

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--border-lite);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.cookie-banner.visible {
    opacity: 1;
    pointer-events: auto;
}

/* HERO STARS */
.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: twinkle ease-in-out infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.cookie-text {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}

.cookie-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.cookie-btn:hover {
    opacity: 0.9;
}

/* UTILITY GRIDS */
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #1e293b;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    max-width: 800px;
    line-height: 1.5;
}

.cookie-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    margin-left: 1rem;
}

.cookie-btn:hover {
    background: #2563eb;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .cookie-btn {
        width: 100%;
        margin-left: 0;
    }

    .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bento-card {
        padding: 2.5rem 1.5rem;
    }

    .logo-track {
        gap: 2rem;
    }
}