/* CSS Variables & Theme (Reference Dark Mode) */
:root {
    --bg-color: #030303;
    /* Deep Black/Zinc */
    --bg-card: #0a0a0a;
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --primary: #a855f7;
    /* Purple 500 */
    --primary-glow: rgba(168, 85, 247, 0.4);
    --brand-gradient: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    --font-sans: 'General Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --border: rgba(255, 255, 255, 0.08);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients (Subtle Glows behind sections) */
/* Background Gradients (Subtle Glows behind sections) */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05), transparent 60%);
    pointer-events: none;
    z-index: -2;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.25;
    /* Subtle effect */
    pointer-events: none;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030303;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Shell Image */
.shell-main {
    width: 180px;
    /* Much larger as requested */
    height: auto;
    position: relative;
    z-index: 10;
    animation: shell-breathe 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

/* Echo Layers (The "Layer by Layer" opening effect) */
.shell-echo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: auto;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.echo-1 {
    animation: echo-wave 4s infinite ease-out;
    animation-delay: 0s;
}

.echo-2 {
    animation: echo-wave 4s infinite ease-out;
    animation-delay: 1s;
    /* Staggered delay for "layers" feel */
}

@keyframes shell-breathe {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.2)) brightness(1);
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.6)) brightness(1.2);
    }
}

@keyframes echo-wave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.purple-text {
    color: #d8b4fe;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 44px;
    padding: 0 1.5rem;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: white;
}

.logo-img {
    height: 75px;
    width: auto;
}

/* Section Spacing */
.section {
    padding: 8rem 0;
}

/* Adjusted for Navbar fit */

/* HERO Section */
.hero {
    padding: 16rem 0 10rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-badge i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 0.9rem;
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--primary);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 600;
    /* Slightly lighter to match 'modern' feel */
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-actions .btn {
    height: 50px;
    font-size: 1rem;
    padding: 0 2rem;
}


/* SECTION: Weekly Loop (Cards 1, 2, 3) */
.section-header small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section p.sub {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: #c084fc;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(192, 132, 252, 0.4);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #d8b4fe;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.tag svg {
    margin-right: 10px;
    width: 12px;
    height: 12px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-card .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 48px;
}

.bullet-list li {
    display: flex;
    align-items: start;
    margin-bottom: 0.75rem;
    color: #d4d4d8;
    font-size: 0.9rem;
}

.bullet-list li::before {
    content: '•';
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

.caption {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #52525b;
    font-style: italic;
}


/* SECTION: Outputs (Grid of 6) */
.outputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.output-card {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.output-card:hover {
    background: #111;
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-square {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    margin-bottom: 1.5rem;
}

.output-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 600;
}

.output-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}


/* SECTION: Trust (Confidence) */
.section.trust {
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(10, 10, 10, 0));
    padding-bottom: 10rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.trust-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.trust-text h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: white;
}

.trust-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* FOOTER & CTA */
.footer-cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.footer-cta-box h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    background: #020202;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.footer-links a {
    margin-left: 2rem;
}


/* Mobile Navigation & Responsive Adjustments */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 3, 3, 0.98);
    backdrop-filter: blur(10px);
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    font-weight: 500;
}

.mobile-menu .btn {
    width: 80%;
    max-width: 300px;
}

/* Tablet & Mobile Styles */
@media (max-width: 900px) {

    .nav-links,
    .nav-buttons {
        display: none !important;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 6rem 0;
    }

    .hero {
        padding: 10rem 0 6rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .steps-grid,
    .outputs-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 1rem;
    }

    .footer-cta-box h2 {
        font-size: 2rem;
    }

    /* Adjust forms for mobile */
    .form-container {
        margin: 4rem auto;
        padding: 1.5rem;
    }

    .legal-content h1 {
        font-size: 2.2rem;
    }
}