/* --- CSS Variables & Resets --- */
:root {
    --bg-color: #000000;
    /* True black */
    --bg-secondary: #0a0a0c;
    --accent-cyan: #00e5ff;
    --accent-blue: #0A84FF;
    /* macOS blueish tint */
    --text-main: #f5f5f7;
    /* Apple lighter grey/white */
    --text-muted: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Typography & Utilities --- */
.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 8rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.font-bold {
    font-weight: 600;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-weight: 500;
    border-radius: 30px;
    /* Pill shape */
    transition: var(--transition);
    cursor: pointer;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.btn-large {
    padding: 1.1rem 2.2rem;
    font-size: 17px;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: #ffffff;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: -0.02em;
}

.ai-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 6px;
    color: var(--accent-cyan);
    vertical-align: middle;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 13px;
    color: var(--text-main);
    opacity: 0.8;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.nav-link:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    gap: 0.8rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    width: 22px;
    height: 1.5px;
    background: var(--text-main);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero_bg.png') center/cover no-repeat;
    z-index: -2;
    opacity: 0.4;
    filter: blur(10px) brightness(0.6);
    transform: scale(1.05);
    /* hide blurred edges */
}

/* Subtle gradient aura instead of harsh orbs */
.glow-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(10, 132, 255, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 860px;
    z-index: 1;
    padding: 0 1rem;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.arrow {
    margin-left: 0.4rem;
    font-size: 1.1em;
    font-weight: 300;
}

/* --- Data Stream Section --- */
.data-stream-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.stream-text {
    font-size: 21px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* --- Features Section --- */
.features {
    padding: 8rem 0;
    background: var(--bg-color);
}

.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem 2.5rem;
    transition: var(--transition);
    text-align: left;
    /* Cleaner, more editorial look */
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Stats Section --- */
.stats {
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--bg-color);
    padding: 10rem 0;
}

.cta-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-heading {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal a {
    margin-left: 1.5rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--text-main);
}

/* --- Animations & Interactions --- */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    /* Tighter animation */
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .cta-title {
        font-size: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-legal {
        margin-top: 0;
    }

    .footer-legal a {
        margin: 0 0.8rem;
    }
}

/* Mobile Menu Active State */
.nav-container.active .nav-links,
.nav-container.active .nav-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container.active .nav-links {
    align-items: center;
}

.nav-container.active .nav-actions {
    top: calc(100% + 180px);
    /* Positioned below links */
    border-bottom: none;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 11, 16, 0.85);
    /* Matches dark theme with opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

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

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.form-group select option {
    background-color: var(--bg-secondary);
    color: var(--text-main);
}

.btn-full-width {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease forwards;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.form-success p {
    color: var(--text-muted);
}