:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(18, 18, 25, 0.7);
    --border-color: rgba(0, 213, 255, 0.15);

    --text-main: #f0f0f5;
    --text-muted: #9494a3;

    --accent-blue: #0055ff;
    --accent-cyan: #00d5ff;
    --accent-glow: rgba(0, 213, 255, 0.2);

    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: rgba(0, 213, 255, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 213, 255, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 213, 255, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-cyan {
    color: var(--accent-cyan);
}

.text-blue {
    color: var(--accent-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-1 {
    top: -200px;
    right: -100px;
    background: var(--accent-cyan);
    animation: float 10s ease-in-out infinite;
}

.glow-2 {
    bottom: -300px;
    left: -100px;
    background: var(--accent-blue);
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(30px) scale(1.05);
    }
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(0, 85, 255, 0.3);
}

.btn-primary:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 213, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* Glass Card (With Glow Tracking) */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(0, 213, 255, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card>* {
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(0, 213, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    border-radius: 50%;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient-cyan {
    background: linear-gradient(to right, #4dd0e1, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(to right, #ba68c8, #f06292);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-white {
    background: #ffffff;
    color: #000000;
    border: none;
    font-weight: 700;
}

.btn-white:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 0;
    font-weight: 700;
}

.btn-text:hover {
    color: var(--text-muted);
    transform: translateY(-2px);
}

/* Hero Visual / Logo Card */
.logo-display-card {
    background: #0f111a;
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-logo-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 213, 255, 0.4));
    animation: cyber-bird-float 6s ease-in-out infinite;
    will-change: transform, filter;
}

@keyframes cyber-bird-float {

    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 20px rgba(0, 213, 255, 0.2));
    }

    50% {
        transform: translateY(-15px);
        filter: drop-shadow(0 0 45px rgba(0, 213, 255, 0.6));
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Sections */
.projects-section,
.services-section,
.pricing-section,
.manifesto-section {
    padding: 8rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.project-card h3,
.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p,
.service-content p {
    color: var(--text-muted);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-card:hover .arrow-btn {
    background: var(--accent-blue);
    color: white;
    transform: rotate(-45deg);
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    overflow-x: auto;
    padding: 3rem 1rem 4rem;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pricing-grid::-webkit-scrollbar {
    display: none;
}

.pricing-card {
    min-width: 320px;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.currency-switcher {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.currency-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.currency-btn:hover {
    color: var(--text-main);
}

.currency-btn.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 213, 255, 0.2);
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.pricing-card.highlighted {
    border-color: var(--accent-blue);
    background: rgba(0, 213, 255, 0.03);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.highlighted::after {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 19px;
    border: 1px solid var(--accent-cyan);
    opacity: 0.5;
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.amount {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.period {
    color: var(--text-muted);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features i.fa-xmark {
    opacity: 0.5;
}

/* Manifesto Section */
.manifesto-card {
    padding: 5rem;
    position: relative;
    border: 1px solid rgba(186, 104, 200, 0.2);
}

.manifesto-lead {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-main);
    text-align: center;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.manifesto-item h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.manifesto-item p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.manifesto-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.manifesto-footer strong {
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: 2px;
}

/* Quantara Hub Section */
.hub-section {
    padding: 8rem 0;
    background: radial-gradient(circle at 10% 90%, rgba(186, 104, 200, 0.05), transparent 40%);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.hub-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hub-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.hub-visual {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hub-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-card:hover .hub-visual img {
    transform: scale(1.05);
}

.hub-info {
    padding: 2.5rem;
}

.hub-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hub-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hub-actions {
    display: flex;
    gap: 1rem;
}

/* Alert Container Styles */
.alert-container {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.alert-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.alert-content p {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
}

.alert-time {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Alert Types */
.high-risk {
    border-left: 4px solid #ff4444;
}

.high-risk .alert-icon {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.high-risk .alert-time {
    color: #ff4444;
    animation: pulse 2s infinite;
}

.warning {
    border-left: 4px solid #ffbb33;
}

.warning .alert-icon {
    color: #ffbb33;
    background: rgba(255, 187, 51, 0.1);
}

.info {
    border-left: 4px solid var(--accent-blue);
}

.info .alert-icon {
    color: var(--accent-blue);
    background: rgba(0, 213, 255, 0.1);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 30px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links,
    .nav-btn {
        display: none;
    }

    /* Mobile menu needed */
}

/* Auth Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-main);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 213, 255, 0.2);
}

.auth-toggle {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-toggle a {
    text-decoration: none;
    font-weight: 600;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

.error-msg {
    color: #ff5f56;
    font-size: 0.85rem;
    margin-top: -0.5rem;
}

.success-msg {
    color: #27c93f;
    font-size: 0.85rem;
    margin-top: -0.5rem;
}

.hidden {
    display: none !important;
}