
/* =========================================
   1. Reset & Base Variables
   ========================================= */
:root {
    /* Colors */
    --color-bg-body: #0b1118;
    --color-bg-card: #161f2c;
    --color-bg-darker: #060a0f;
    
    --color-primary: #1e88e5;
    --color-primary-hover: #42a5f5;
    --color-secondary: #00e676; /* Vivid Green for CTAs */
    --color-secondary-hover: #69f0ae;
    
    --color-text-main: #ffffff;
    --color-text-muted: #8ba2b5;
    
    --color-border: #2a3b50;
    
    --gradient-primary: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    --gradient-accent: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 4.5rem;
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

ul, ol {
    list-style: none;
}

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

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. Layout & Container
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

section {
    padding: 4rem 0;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
header {
    background: rgba(22, 31, 44, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

header .logo-wrap {
    width: 120px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="%231e88e5"><text x="0" y="25" font-family="Arial" font-weight="bold" font-size="28" fill="white">1WIN</text></svg>') no-repeat center left;
    background-size: contain;
    margin-right: auto;
}

/* Desktop Menu */
.menu {
    display: flex;
    gap: 2rem;
}

.menu li a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

.menu li a:hover {
    color: var(--color-primary-hover);
}

.menu li a:hover::after {
    width: 100%;
}

/* Mobile Menu Logic (Hidden inputs) */
.switcher {
    display: none;
}

.open, .close {
    display: none;
    cursor: pointer;
}

/* =========================================
   4. Banner / Hero Section
   ========================================= */
.banner {
    background: radial-gradient(circle at 70% 30%, #1c3654 0%, var(--color-bg-body) 70%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.banner-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.h1-wrap h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #b3d4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h1sub {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Banner Buttons */
.btn-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.js-copy-target {
    display: none; /* Hidden text element from HTML logic */
}

/* Main Promo Link Button */
.btn-promolink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #000;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1.125rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-promolink:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.6);
    color: #000;
}

/* Copy Code Button */
.btn-cod {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cod:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-cod.copied {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #000;
}

/* Licenses */
.bannerlic-wrap {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

.bannerlic-item-title {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bannerlic-item-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* =========================================
   5. Content Section & Typography
   ========================================= */
.content {
    background: var(--color-bg-darker);
}

.content-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.content h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 3rem 0 1.5rem;
    color: var(--color-text-main);
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.content ul, .content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content ul li, .content ol li {
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
    position: relative;
}

.content ul li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

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

/* CTA Button inside content */
.cta-wrap {
    margin: 3rem 0;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(30, 136, 229, 0.6);
}

.cta-btn:hover::before {
    left: 100%;
}

/* =========================================
   6. Tables & Forms
   ========================================= */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    background: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Force scroll on mobile */
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

table tr:first-child td {
    background: rgba(30, 136, 229, 0.1);
    color: var(--color-text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-border);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td:not(:first-child) {
    background: rgba(255, 255, 255, 0.02);
}

/* =========================================
   7. Footer
   ========================================= */
.footer {
    background: #05080c;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-separator {
    height: 2px;
    width: 50px;
    background: var(--color-primary);
    margin-top: 1rem;
}

.footer-contact-title {
    color: var(--color-text-main);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-contact-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer-contact a {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.footer-contact a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact-phone a {
    font-size: 1.2rem;
    color: var(--color-text-main);
    font-weight: 600;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social-item1, .footer-social-item2 {
    display: flex;
    gap: 1rem;
}

/* Social icons placeholders styled as circles */
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-copyright {
    grid-column: 1 / -1;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* =========================================
   8. Responsive Media Queries
   ========================================= */

/* Tablet & Mobile (Max width 768px) */
@media (max-width: 768px) {
    
    /* Header & Mobile Menu */
    .open {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        margin-left: auto;
    }
    
    .hamb {
        width: 24px;
        height: 2px;
        background: #fff;
        position: relative;
    }
    
    .hamb::before, .hamb::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: #fff;
        left: 0;
    }
    
    .hamb::before { top: -8px; }
    .hamb::after { top: 8px; }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 17, 24, 0.98);
        z-index: 1001;
        transition: right var(--transition-smooth);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .switcher:checked ~ nav {
        right: 0;
    }
    
    .menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .menu li a {
        font-size: 1.5rem;
    }
    
    .close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        color: #fff;
        display: block; /* Visible only inside opened nav */
    }

    /* Banner Mobile */
    .banner-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .btn-wrap {
        justify-content: center;
        flex-direction: column;
    }
    
    .btn-promolink, .btn-cod {
        width: 100%;
    }
    
    .bannerlic-wrap {
        justify-content: center;
    }
    
    /* Footer Mobile */
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social-item1, .footer-social-item2 {
        justify-content: center;
    }
    
    .footer-contact a:hover {
        padding-left: 0; /* remove movement on mobile */
    }
}
