
/* =========================================
   1. CSS Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --primary-hue: 220;
    --primary-dark: hsl(var(--primary-hue), 90%, 10%);
    --primary-main: hsl(var(--primary-hue), 90%, 25%);
    --primary-light: hsl(var(--primary-hue), 80%, 40%);
    
    --accent-color: #00c853; /* Vibrant Green for CTAs */
    --accent-hover: #00e676;
    --accent-shadow: rgba(0, 200, 83, 0.4);

    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-light: #ffffff;
    
    --bg-body: #f7f9fc;
    --bg-card: #ffffff;
    
    --gradient-header: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --gradient-btn: linear-gradient(135deg, var(--accent-color) 0%, #009624 100%);

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-h1: clamp(2rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
    --fs-body: 1rem;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-pill: 50px;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

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

/* =========================================
   2. Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.row-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

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

/* =========================================
   3. Header & Navigation (Top Bar)
   ========================================= */
.line-menu-mobile {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

.line-menu-mobile .row-center {
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.bbb {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6em 1.5em;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

/* Login Button */
.landing-header-right-login {
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.landing-header-right-login:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-light);
}

/* Registration Button */
.landing-header-right-reg {
    background: var(--gradient-btn);
    color: var(--text-light);
    box-shadow: 0 4px 15px var(--accent-shadow);
}

.landing-header-right-reg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-shadow);
    filter: brightness(1.1);
}

/* =========================================
   4. Hero Section (.header-box)
   ========================================= */
.header-box {
    position: relative;
    background: var(--gradient-header);
    color: var(--text-light);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-sm);
    overflow: hidden;
}

/* Decorative background shapes */
.header-box::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.table {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ctr {
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.text-head {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

/* Promo Code Styling */
.promo {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-hover);
    padding: 0.2em 0.6em;
    border-radius: 6px;
    border: 1px dashed var(--accent-color);
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.promo:hover {
    background: rgba(0, 200, 83, 0.1);
    transform: scale(1.05);
}

.promo::after {
    content: 'Click to copy';
    position: absolute;
    top: -2.5em;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 0.7em;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    white-space: nowrap;
    font-family: var(--font-family);
}

.promo:hover::after {
    opacity: 1;
    visibility: visible;
}

.inform-promo {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-xs);
}

/* =========================================
   5. Buttons (Main CTA)
   ========================================= */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    background: var(--gradient-btn);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 200, 83, 0.3);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 200, 83, 0.4);
}

.button:hover::before {
    opacity: 1;
}

.button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
}

/* =========================================
   6. Content Section
   ========================================= */
.content {
    background: var(--bg-body);
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 2;
    margin-top: -2rem; /* Overlap effect */
}

/* Card effect for content container */
.content .row-center > div {
    background: var(--bg-card);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
}

h2 {
    font-size: var(--fs-h2);
    color: var(--primary-main);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 0.5rem;
    border-radius: 2px;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

/* Lists styling */
ul {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1em;
}

/* Images in content */
.img {
    margin: var(--spacing-md) 0;
    text-align: center;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

img:hover {
    transform: scale(1.01);
}

/* =========================================
   7. Animations
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lazy Load Transition */
img.lazyload {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.lazyloaded {
    opacity: 1;
}

/* =========================================
   8. Responsive Design
   ========================================= */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-md: 1.5rem;
    }

    /* Header Mobile */
    .header-box {
        min-height: auto;
        padding-top: 6rem; /* Space for fixed/top menu */
        padding-bottom: 3rem;
    }

    .line-menu-mobile .row-center {
        justify-content: center;
        gap: 10px;
    }
    
    .bbb {
        font-size: 0.8rem;
        padding: 0.5em 1em;
    }

    /* Content Mobile */
    .content .row-center > div {
        padding: var(--spacing-md);
        box-shadow: none; /* Flatter design on mobile */
        background: transparent;
    }
    
    .content {
        margin-top: 0;
        background: var(--bg-card);
    }

    h1 {
        font-size: 2rem;
    }

    .promo {
        display: block;
        width: fit-content;
        margin: 0.5rem auto;
    }

    .button {
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
    }
}

/* =========================================
   9. Form Elements (Generic Support)
   ========================================= */
/* Even if not explicitly in HTML, these ensure future form elements match the style */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

/* =========================================
   10. Links & Misc
   ========================================= */
a {
    color: var(--primary-main);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

a:hover {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Highlight specifically within text content */
.content p a {
    color: var(--accent-color);
    font-weight: 500;
}

.content p a:hover {
    color: var(--accent-hover);
}
