:root {
    --bg-color: #050505;
    --accent-color: #0e4ce9c5;
    /* Techie Blue */
    --accent-gradient: linear-gradient(135deg, #0e15e9 0%, #2922ee 100%);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(14, 165, 233, 0.5);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

.nav-links .btn {
    color: white;
}

/* Hero */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    text-align: center;
}

.hero-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 3rem;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
    text-shadow: 0 0 40px rgba(14, 165, 233, 0.2);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.hero-image {
    margin-top: 5rem;
    perspective: 1000px;
}

.screenshot-wrapper {
    position: relative;
    transform: rotateX(5deg);
    transition: all 0.5s ease;
}

.screenshot-wrapper:hover {
    transform: rotateX(0deg) scale(1.02);
}

.app-screenshot {
    width: 100%;
    display: block;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    /* Standard window radius */
}

/* Features */
.features {
    padding: 10rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    position: relative;
    padding: 3rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-gradient);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

.indicator-group {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.indicator.active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.indicator.active .indicator-dot {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.indicator.idle {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.indicator.idle .indicator-dot {
    background: #f97316;
}

/* Resource Monitor Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.resource-monitor {
    padding: 10rem 0;
    background: radial-gradient(circle at right, rgba(14, 164, 233, 0) 0%, transparent 100%);
}

.monitor-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.monitor-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-list li i {
    color: var(--accent-color);
}

.snippet-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.resource-snippet {
    width: 100%;
    border-radius: 12px;
    filter: saturate(1.2);
}

/* Visual Features Section */
.visual-features {
    padding: 10rem 0;
}

.visual-feature-row {
    margin-bottom: 8rem;
}

.visual-feature-row.reverse {
    direction: ltr; /* Ensure text flows correctly */
}

.visual-feature-row.reverse .visual-img {
    order: -1;
}

@media (min-width: 769px) {
    .visual-feature-row.reverse {
        grid-template-columns: 1.2fr 1fr;
    }
}

.visual-text .section-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.visual-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mockup-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.7);
    transition: transform 0.5s ease;
}

.mockup-container:hover {
    transform: scale(1.02);
}

.feature-mockup {
    width: 100%;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.code-inline {
    background: rgba(14, 165, 233, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #38bdf8;
    font-family: monospace;
    font-size: 0.9em;
}

/* Enhanced Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.visual-feature-row.reverse.reveal {
    transform: translateX(30px);
}

.visual-feature-row.reveal {
    transform: translateX(-30px);
}

.visual-feature-row.visible {
    transform: translateX(0);
}

/* Pricing */
.pricing {
    padding: 10rem 0;
    background: radial-gradient(circle at left, rgba(14, 164, 233, 0) 0%, transparent 100%);
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
}

.pricing-card h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price .currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.price .amount {
    font-size: 6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -2px;
}

.pricing-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.changelog-banner {
    padding: 2rem 0;
    text-align: center;
}

.changelog-banner p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.changelog-banner a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.changelog-banner a:hover {
    text-decoration: underline;
}

.footer {
    padding: 3rem 0 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: rgba(6, 12, 24, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.footer-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.footer-brand-copy {
    min-width: 0;
}

.footer-brand-name {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-brand-copy p,
.footer-meta p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0.2rem 0 0;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
    text-align: right;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(125, 211, 252, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-link:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.36);
    background: rgba(125, 211, 252, 0.12);
    text-decoration: none;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-icon {
        width: 140px;
        height: 140px;
    }

    .brand-name {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.8rem;
    }

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

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .pricing-card {
        padding: 3rem 1.5rem;
    }

    .price .amount {
        font-size: 4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .footer-meta {
        align-items: flex-start;
        text-align: left;
    }
}
