
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --color-bg-body: #0f1219;
    --color-bg-surface: #1a1f2b;
    --color-bg-card: #232938;
    
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-secondary: #8b5cf6;
    --color-accent: #10b981;
    --color-danger: #ef4444;

    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-inverse: #ffffff;

    --color-border: #374151;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-header: linear-gradient(180deg, rgba(15, 18, 25, 0.9) 0%, rgba(26, 31, 43, 0.95) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);

    /* Spacing & Sizing */
    --container-width: 120rem; /* ~1200px */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 1.6rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-inverse);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-sm);
    margin-top: var(--space-lg);
}

h3 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    color: var(--color-primary);
    margin-top: var(--space-md);
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

li strong {
    color: var(--color-text-main);
}

b, strong {
    font-weight: 700;
    color: var(--color-text-main);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* --- Layout Components --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.row-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.col-xs-12 {
    width: 100%;
}

.text-center {
    text-align: center;
    width: 100%;
}

/* --- Header / Top Bar --- */
.line-menu-mobile {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 31, 43, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
}

.line-menu-mobile .row-center {
    justify-content: flex-end; /* Align login buttons to right */
}

.landing-header-right-login,
.landing-header-right-reg {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.landing-header-right-login {
    color: var(--color-text-main);
    background: transparent;
    border: 1px solid var(--color-border);
}

.landing-header-right-login:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
}

.landing-header-right-reg {
    background: var(--color-accent);
    color: #000;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.landing-header-right-reg:hover {
    background: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

/* --- Hero Section (.header-box) --- */
.header-box {
    position: relative;
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-lg);
    background: var(--color-bg-surface);
    background-image: var(--gradient-glow);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Fix for legacy .table class used for layout */
.header-box .table {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header-box .ctr {
    width: 100%;
    max-width: 80rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.text-head {
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
}

/* --- Promo Code --- */
.promo {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-accent);
    font-family: monospace;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.promo:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.05);
}

.promo::after {
    content: "COPY";
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-card);
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

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

.inform-promo {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    opacity: 0.7;
}

/* --- Main CTA Button --- */
.button.href-site {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.6rem 4rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin: var(--space-sm) 0;
}

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

.button.href-site:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5);
}

.button.href-site:hover::before {
    left: 100%;
}

.button.href-site:active {
    transform: translateY(-1px);
}

/* --- Content Section --- */
.content {
    background: var(--color-bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

/* Images within content */
.img {
    margin: var(--space-lg) 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.img img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.9);
}

.img img:hover {
    transform: scale(1.01);
    filter: brightness(1.05);
}

/* Lazyload fade in */
.lazyload {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.lazyloaded {
    opacity: 1;
}

/* --- Data Tables --- */
table:not(.header-box .table) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-md) 0;
    font-size: 1.5rem;
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table:not(.header-box .table) th,
table:not(.header-box .table) td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

table:not(.header-box .table) th {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

table:not(.header-box .table) tr:last-child td {
    border-bottom: none;
}

table:not(.header-box .table) tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    /* Menu alignment on mobile */
    .line-menu-mobile .row-center {
        justify-content: space-between;
    }
    
    .landing-header-right-login,
    .landing-header-right-reg {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
    }

    /* Adjust header box padding */
    .header-box {
        padding: var(--space-md) var(--space-sm);
    }
    
    .content {
        padding: var(--space-md);
    }

    /* Tables scrollable on mobile */
    table:not(.header-box .table) {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    h1 {
        text-align: center;
    }
    
    .button.href-site {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .line-menu-mobile .row-center {
        gap: 0.5rem;
    }
    
    .landing-header-right-login, 
    .landing-header-right-reg {
        flex: 1;
        text-align: center;
        font-size: 1.2rem;
    }
}
