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

:root {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #4f46e5;
    --primary-hover: #3730a3;
    --secondary: #d946ef;
    --accent: #0891b2;
    --success: #10b981;
    --danger: #ef4444;
    
    --gradient-primary: linear-gradient(135deg, #4f46e5, #7c3aed);
    --gradient-accent: linear-gradient(135deg, #2563eb, #0891b2);
    --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 1px 0 rgba(255, 255, 255, 0.8) inset;
    
    --font-outfit: 'Outfit', sans-serif;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background Ambient Glows */
.glow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
}

.glow-orb-2 {
    position: absolute;
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
}

.glow-orb-3 {
    position: absolute;
    bottom: -10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    background-color: rgba(248, 250, 252, 0.75);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.75rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border-bottom-color: rgba(15, 23, 42, 0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.btn-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu Toggle */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 2rem 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-glow);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    animation: fadeInUp 1.2s ease;
}

/* Search Bar Wrapper */
.search-container {
    max-width: 750px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 1.25rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04), var(--shadow-premium);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 20;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-container:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2), var(--shadow-premium);
}

.search-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-left: 1rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-outfit);
    font-size: 1.1rem;
    padding: 0.75rem 0.5rem;
    width: 100%;
}

.search-input::placeholder {
    color: #6b7280;
}

.search-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 0.9rem;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.search-btn:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.search-btn:active {
    transform: scale(0.98);
}

/* Quick TLD Badges */
.tld-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tld-badge {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tld-badge span.name {
    font-weight: 700;
    color: var(--text-main);
}

.tld-badge span.price {
    color: var(--accent);
}

/* Search Result Container */
.results-wrapper {
    max-width: 750px;
    margin: 2rem auto 0 auto;
    text-align: left;
    display: none;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Glow Effect for Available Domains */
.result-card.available-glow {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.result-card.taken-glow {
    border-color: rgba(244, 63, 94, 0.3);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.result-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.result-domain-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-icon.available {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-icon.taken {
    background: rgba(244, 63, 94, 0.15);
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.result-domain-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-all;
}

.result-domain-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-pricing-buy {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.price-display {
    text-align: right;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.2rem;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.btn-buy {
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-buy.taken-btn {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Suggestion Container */
.suggestions-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.suggestions-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid rgba(15, 23, 42, 0.03);
    border-radius: 0.75rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(99, 102, 241, 0.2);
}

.suggestion-name {
    font-weight: 600;
    color: var(--text-main);
}

.suggestion-price-buy {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}

.btn-buy-sm {
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-buy-sm:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Spinner */
.spinner {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sections */
.main-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 10;
}

.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-premium);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: center;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
}

.price-card-tld {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.price-card-tld span {
    color: var(--accent);
}

.price-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.price-card-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 1.5rem;
}

.btn-price-buy {
    display: block;
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-main);
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.price-card:hover .btn-price-buy {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Hosting Promo Callout */
.promo-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(217, 70, 239, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 2rem;
    padding: 4rem 3rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 4rem;
}

.promo-text {
    max-width: 600px;
}

.promo-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(217, 70, 239, 0.15);
    color: #f472b6;
    border: 1px solid rgba(217, 70, 239, 0.3);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.promo-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.promo-title span {
    background: linear-gradient(135deg, #f472b6, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.promo-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-promo {
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.promo-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Developer Mode Badge */
.dev-badge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #d97706;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.dev-badge-dot {
    width: 8px;
    height: 8px;
    background-color: #fbbf24;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background-color: #0b0f19;
    padding: 5rem 2rem 2rem 2rem;
    position: relative;
    z-index: 10;
    color: #f1f5f9;
}

footer h4, footer h5, footer .footer-bottom p {
    color: #f1f5f9 !important;
}

footer p, footer ul a {
    color: #94a3b8 !important;
}

footer ul a:hover {
    color: #ffffff !important;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info-col h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.footer-info-col h4 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-info-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-col h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--text-main);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.footer-socials a:hover {
    color: var(--primary);
}

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

/* Responsiveness */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .promo-banner {
        padding: 3rem 2rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-dark);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        backdrop-filter: blur(16px);
        align-items: flex-start;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .btn-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .search-container {
        flex-direction: column;
        padding: 0.75rem;
        border-radius: 1rem;
    }
    
    .search-icon {
        display: none;
    }
    
    .search-input {
        padding: 0.5rem 0.25rem;
        text-align: center;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .result-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-pricing-buy {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }
    
    .price-display {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
