:root {
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;

    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;

    --blue-500: #3b82f6;

    --yellow-500: #eab308;
    --amber-500: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;

    /* Selection styles */
    ::selection {
        background-color: var(--green-500);
        color: white;
    }
}

body {
    background-color: var(--gray-950);
    color: var(--gray-100);
    min-height: 100vh;
    padding-bottom: 6rem;
}

/* 1. Marquee Container */
.marquee-container {
    background: linear-gradient(to right, var(--yellow-500), var(--amber-500));
    color: black;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.375rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    width: fit-content;
}

.marquee-text {
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (min-width: 768px) {
    .marquee-container {
        font-size: 1rem;
    }
}

/* 2. Top-Left Logo Navbar */
.top-nav {
    position: fixed;
    top: 32px;
    /* Leaves space for Marquee */
    left: 0;
    width: 100%;
    background-color: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-800);
    z-index: 40;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon-box {
    background-color: var(--green-500);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    color: var(--gray-950);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: white;
}

.logo-text .text-green-400 {
    color: var(--green-400);
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
    .hide-on-mobile {
        display: none;
    }
}

/* Main Container */
.main-wrapper {
    padding-top: 120px;
    padding-right: 1rem;
    padding-left: 1rem;
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero */
.hero-section {
    text-align: center;
    max-width: 64rem;
    margin-bottom: 2.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--green-400);
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, var(--green-400), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* fallback */
    display: inline-block;
}

.hero-subtitle {
    color: var(--gray-400);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* 3. YouTube Embed */
.video-container {
    width: 100%;
    max-width: 56rem;
    aspect-ratio: 16 / 9;
    background-color: var(--gray-900);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.15);
    border: 1px solid var(--gray-800);
    margin-bottom: 4rem;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

/* Value Props Grid */
.grid-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 64rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .feature-card {
        flex: 1 1 300px;
        max-width: 380px;
    }
}

.feature-card {
    background-color: rgba(17, 24, 39, 0.5);
    /* gray-900/50 */
    border: 1px solid var(--gray-800);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color 0.2s;
    width: 100%;
}

.feature-card:hover {
    background-color: rgba(31, 41, 55, 0.5);
    /* gray-800/50 */
}

.card-icon {
    background-color: var(--gray-800);
    color: var(--green-400);
    padding: 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-400);
}

/* Registration Form */
.form-wrapper {
    width: 100%;
    max-width: 28rem;
    background-color: var(--gray-900);
    border-radius: 1.5rem;
    /* 3xl */
    padding: 2rem;
    border: 1px solid var(--gray-700);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.form-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 8rem;
    background-color: rgba(34, 197, 94, 0.2);
    filter: blur(60px);
    pointer-events: none;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.form-subtitle {
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 10;
}

.enrollment-form {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 0.25rem;
}

.input-group input {
    width: 100%;
    background-color: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--green-500);
}

.primary-btn {
    width: 100%;
    background: linear-gradient(to right, var(--green-500), var(--green-600));
    color: white;
    font-weight: 700;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s;
}

.primary-btn:hover {
    background: linear-gradient(to right, var(--green-400), #10b981);
    /* emerald-500 */
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.primary-btn .btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.btn-text-main {
    font-size: 1.125rem;
    font-weight: 800;
}

.btn-text-sub {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Phone Input with Country Code */
.phone-input-container {
    display: flex;
    gap: 0.5rem;
}

.country-code {
    width: 80px !important;
    background-color: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    color: white;
    outline: none;
    font-weight: 600;
    cursor: pointer;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.5rem 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    accent-color: var(--green-500);
    cursor: pointer;
    margin-top: 0.125rem;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--gray-300);
    line-height: 1.4;
    user-select: none;
}

.checkbox-label a {
    color: var(--green-400);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

.error-msg {
    color: #f87171;
    /* red-400 */
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
    background-color: rgba(248, 113, 113, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* 4. Social Stack */
.floating-social-stack {
    position: fixed;
    bottom: 90px;
    right: 1rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 9999px;
    padding: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.social-btn:hover {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .social-btn {
        padding: 1rem;
    }
}

.youtube-btn {
    background-color: white;
}

.instagram-btn {
    background: white;
}

.whatsapp-btn {
    background-color: #25D366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    background-color: #20bd5a;
}

.whatsapp-svg,
.social-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (min-width: 768px) {

    .whatsapp-svg,
    .social-svg {
        width: 32px;
        height: 32px;
    }
}

.social-tooltip {
    position: absolute;
    right: 100%;
    margin-right: 0.75rem;
    background-color: var(--gray-900);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.social-btn:hover .social-tooltip {
    opacity: 1;
}

/* 5. Fixed CTA Footer */
.fixed-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--gray-800);
    padding: 1rem;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-btn {
    width: 100%;
    max-width: 42rem;
    background-color: white;
    color: var(--gray-950);
    font-weight: 800;
    font-size: 1.125rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-btn:hover {
    background-color: var(--gray-100);
    transform: scale(1.02);
}

.footer-btn:active {
    transform: scale(0.95);
}

/* Site Footer */
.site-footer {
    width: 100%;
    padding: 3rem 1rem 8rem;
    text-align: center;
    border-top: 1px solid var(--gray-800);
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--green-400);
}

.footer-links .separator {
    color: var(--gray-700);
    font-size: 0.875rem;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 0.75rem;
}