/* style.css */
:root {
    /* Color Palette */
    --primary: #BA0C2F; /* Deep Red */
    --primary-hover: #8B0000;
    --secondary: #2C2C2C; /* Charcoal */
    --accent: #B0B0B0; /* Silver */
    
    --bg-dark: #0A0A0A; 
    --bg-light: #1A1A1A; 
    --bg-white: #222222; 
    
    --text-main: #E2E8F0; 
    --text-light: #A0AAB2; 
    --text-white: #FFFFFF;
    
    --border-color: #333333;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #BA0C2F 0%, #8B0000 100%);
    --gradient-hero: linear-gradient(135deg, #0A0A0A 0%, #2C2C2C 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 14px 0 rgba(186, 12, 47, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 12, 47, 0.23);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white);
    flex: 1;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    flex: 1;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 2rem 8rem;
    background: var(--bg-dark);
    color: var(--text-white);
    overflow: hidden;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #BA0C2F;
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #8B0000;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Domain Search */
.domains-section {
    background: var(--gradient-primary);
    color: white;
}

.domains-section h2, .domains-section .section-subtitle {
    color: white;
}

.domains-section .text-gradient {
    background: none;
    -webkit-text-fill-color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.domain-search-form {
    display: flex;
    max-width: 700px;
    margin: 2rem auto;
    background: var(--bg-white);
    padding: 0.5rem;
    border-radius: 4rem;
    box-shadow: var(--shadow-lg);
}

.domain-search-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 4rem;
    outline: none;
    font-family: var(--font-body);
    background: var(--bg-white);
    color: var(--text-main);
}

.domain-search-form .btn {
    border-radius: 3rem;
    padding: 1rem 2rem;
}

.domain-extensions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

/* Toggle Switch */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-white);
}

.badge {
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4b5563; /* Grey for Quarterly (off) */
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary); /* Red for Yearly (on) */
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    display: inline-block;
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-desc {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
}

.price .period {
    color: var(--text-light);
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.plan-btn {
    width: 100%;
    margin-bottom: 2rem;
}

.features {
    text-align: left;
}

.features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.features li:last-child {
    border-bottom: none;
}

.features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Advanced Grid */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.features-minimal {
    margin-bottom: 2rem;
}

.features-minimal li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.features-minimal li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.starting-price {
    font-weight: 700;
    color: var(--text-white);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-light);
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-light);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    margin-left: 1rem;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(10px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 2.5rem;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .nav-verse {
        display: none;
    }
    .nav-right {
        flex: auto;
        justify-content: flex-end;
    }
    .nav-links a { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-ctas { flex-direction: column; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .footer-content { grid-template-columns: 1fr; }
    .advanced-grid { grid-template-columns: 1fr; }
}

.section-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    background: var(--bg-light);
    padding: 10px;
}

.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }

.supported-games {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.game-badge {
    background: var(--bg-white);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.game-badge:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* More Games Hover Popup */
.more-games-container .more-games-popup {
    display: none;
    position: absolute;
    bottom: 140%; 
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    width: 350px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.more-games-container:hover .more-games-popup {
    display: block;
}

.more-games-popup .popup-games {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}
*:focus-visible {
    outline: 3px solid var(--primary) !important;
    outline-offset: 2px;
}
