/* Global Variables */
:root {
    --primary: #6366f1;
    /* Indigo 500 */
    --primary-rgb: 99, 102, 241;
    --primary-dark: #4338ca;
    /* Indigo 700 */
    --secondary: #db2777;
    /* Pink 600 */
    --secondary-rgb: 219, 39, 119;
    --accent: #0ea5e9;
    /* Sky 500 */
    --dark-bg: #020617;
    /* Slate 950 - Deeper dark */
    --card-bg: rgba(15, 23, 42, 0.6);
    /* Slate 900 with more transparency */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html.light-mode {
    --dark-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.5);
}

html.light-mode .search-box {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html.light-mode .search-box input {
    color: var(--text-main);
}

html.light-mode .search-box input::placeholder {
    color: #94a3b8;
}

html.light-mode .pricing-card.featured {
    background: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

html.light-mode .period {
    color: #64748b;
}

html.light-mode .feature-card:hover,
html.light-mode .pricing-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-heading);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.bg-1 {
    top: -300px;
    left: -200px;
    animation: float 20s infinite alternate;
}

.bg-2 {
    bottom: -300px;
    right: -200px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary-dark);
}

.btn-light:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

html.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn-login) {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

html.light-mode .nav-links a:not(.btn-login) {
    color: var(--text-main);
}

html.light-mode .nav-links a:not(.btn-login):hover {
    color: var(--primary);
}

.nav-links a:not(.btn-login)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:not(.btn-login):hover {
    color: white;
}

.nav-links a:not(.btn-login):hover::after {
    width: 100%;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(15deg);
}

html.light-mode .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

html.light-mode .theme-toggle-btn:hover {
    background: var(--primary);
    color: white;
}

.btn-login {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

html.light-mode .btn-login {
    background: var(--primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.btn-login:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 30px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 56px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Domain Search */
.domain-search {
    max-width: 750px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.search-box {
    display: flex;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 6px;
    backdrop-filter: blur(20px);
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.6);
}

.search-box i {
    padding: 16px 24px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.05rem;
    outline: none;
    font-family: var(--font-heading);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-box button {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
    font-size: 1rem;
}

.search-box button:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.domain-extensions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.domain-extensions span {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: default;
}

.domain-extensions span:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03));
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    color: white;
}

html.light-mode .feature-card h3 {
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--primary);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.2), transparent 70%);
    pointer-events: none;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header {
    margin-bottom: 35px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

html.light-mode .price {
    color: var(--text-main);
}

html.light-mode .pricing-card.featured .price {
    color: var(--text-main);
}

.currency {
    font-size: 1.75rem;
    vertical-align: super;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 4px;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    margin-bottom: 40px;
    text-align: left;
}

.features-list li {
    margin-bottom: 18px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.features-list li i {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark), #1e1b4b);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    /* Force white text */
}

html.light-mode .cta {
    --text-muted: rgba(255, 255, 255, 0.7);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    padding-top: 100px;
    background: #020617;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

html.light-mode footer {
    background: #1e293b;
    /* Dark slate for footer in light mode */
    --text-muted: #cbd5e1;
    --glass-border: rgba(255, 255, 255, 0.1);
}

html.light-mode .footer-col h4 {
    color: #f8fafc;
}

html.light-mode .social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-col p {
    margin-bottom: 24px;
    line-height: 1.7;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.footer-col h4 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.15rem;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a {
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 0;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
        gap: 25px;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .bg-glow {
        width: 400px;
        height: 400px;
    }
}