/* Global Styles */
@font-face {
    font-family: 'DigitalClock';
    src: url('../fonts/digital7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Checkbook';
    src: url('../fonts/CHECKBK0.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Layout & Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Header & Nav */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

.btn-primary-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    color: white !important;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    /* Offset for fixed header */
    padding-top: 70px;
    /* Offset for fixed header */
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#why-premium {
    background: linear-gradient(rgba(124, 58, 237, 0.1), rgba(15, 23, 42, 0.9)), url('../images/premium-bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.module-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, border-color 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.module-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.module-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    color: var(--text-muted);
}

.module-card li::before {
    content: "•";
    color: var(--primary-color);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Pricing Section */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
    /* Space between rows effectively */
    margin-top: 2rem;
}

.pricing-header th {
    padding: 1.5rem;
    color: var(--accent-color);
    font-size: 1.2rem;
    text-align: center;
}

.pricing-row td {
    background: var(--glass-bg);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.pricing-row td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-left: 1px solid var(--glass-border);
    text-align: left;
    font-weight: 600;
    color: white;
    padding-left: 2rem;
}

.pricing-row td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-right: 1px solid var(--glass-border);
}

.plan-basic {
    border-top: 3px solid #3b82f6 !important;
}

.plan-standard {
    border-top: 3px solid #8b5cf6 !important;
}

.plan-premium {
    border-top: 3px solid #f43f5e !important;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .pricing-table,
    .pricing-header,
    .pricing-row,
    .pricing-row td {
        display: block;
        width: 100%;
    }

    .pricing-header {
        display: none;
    }

    /* Hide complicated table header on mobile */
    .pricing-row {
        margin-bottom: 2rem;
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        padding: 1rem;
    }

    .pricing-row td {
        border: none !important;
        text-align: left;
        padding: 0.5rem;
        display: flex;
        justify-content: space-between;
    }

    .pricing-row td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--text-muted);
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 
 * Intro 3D Overlays 
 */

#intro-timer {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999 !important;
    color: #00ffcc;
    /* Cyan/Celeste */
    font-family: 'DigitalClock', monospace;
    font-size: 4.5rem;
    /* Made slightly bigger for the digital effect */
    font-weight: normal;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.8), 0 0 5px white;
    pointer-events: none;
    display: none;
    letter-spacing: 4px;
    text-align: center;
}

#intro-controls {
    position: absolute;
    bottom: 90px;
    right: 30px;
    z-index: 999999 !important;
    display: none;
    grid-template-areas:
        ". up ."
        "left down right";
    gap: 10px;
    pointer-events: none;
    /* Just visual */
    opacity: 0.8;
}

.intro-key {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    backdrop-filter: blur(8px);
    transition: all 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.intro-key.active {
    background: rgba(0, 255, 204, 0.6);
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
    transform: scale(0.9);
    color: #020202;
}

.key-up {
    grid-area: up;
}

.key-down {
    grid-area: down;
}

.key-left {
    grid-area: left;
}

.key-right {
    grid-area: right;
}

#intro-footer {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background: rgba(240, 244, 248, 0.65);
    /* Whitish Grey with more transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    /* Distinguish from the 3D content */
    gap: 20px;
}

#intro-footer img {
    height: 40px;
    object-fit: contain;
}

#intro-footer span {
    color: #1e293b;
    font-size: 1.05rem;
    font-family: var(--font-main, 'Inter', sans-serif);
    font-weight: 600;
}

#web-footer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background: rgba(240, 244, 248, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999 !important;
    display: none;
    /* hidden until intro ends */
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

#web-footer img {
    height: 40px;
    object-fit: contain;
}

#web-footer span {
    color: #1e293b;
    font-size: 1.05rem;
    font-family: var(--font-main, 'Inter', sans-serif);
    font-weight: 600;
}

#intro-exit-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 85, 0.2);
    border: 2px solid rgba(255, 0, 85, 0.5);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999999 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

#intro-exit-btn:hover {
    background: rgba(255, 0, 85, 0.6);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.8);
}