/* =========================================
    CSS VARIABLES (THEMES)
    ========================================= */
:root {
    /* DEFAULT (DARK) THEME VARIABLES */
    --bg:        #0b0f1a;
    --surface:   #111827;
    --surface2:  #1e2a3a;
    --blue:      #3b82f6;
    --blue-light:#60a5fa;
    --blue-dim:  rgba(59,130,246,.15);
    --text:      #ffffff;
    --muted:     #94a3b8;
    --subtle:    #cbd5e1;
    --border:    rgba(255,255,255,.08);
    --nav-bg:    rgba(11, 15, 26, 0.85);
    --featured-bg: linear-gradient(160deg, #111827 0%, #0f1d35 100%);
    
    --radius:    12px;
    --nav-h:     72px;
}

/* LIGHT THEME VARIABLES */
[data-theme="light"] {
    --bg:        #f8fafc;
    --surface:   #ffffff;
    --surface2:  #e2e8f0;
    --blue:      #2563eb;
    --blue-light:#3b82f6;
    --blue-dim:  rgba(37,99,235,.1);
    --text:      #0f172a;
    --muted:     #64748b;
    --subtle:    #475569;
    --border:    rgba(15,23,42,.1);
    --nav-bg:    rgba(255, 255, 255, 0.85);
    --featured-bg: linear-gradient(160deg, #ffffff 0%, #f0f4f8 100%);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; }

/* =========================================
   SCROLL PROGRESS BAR
   ========================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    z-index: 200;
    transition: width 0.1s linear;
}

/* =========================================
   NAVBAR
   ========================================= */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: var(--nav-h);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* =========================================
   LOGO WRAPPER (with fallback)
   ========================================= */
.logo-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-wrapper img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-wrapper img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--blue-light);
    letter-spacing: -0.3px;
}
.fa-solid, .fas{
    color:var(--blue-light);
}

/* CENTER — nav links */
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 24px;
}

.nav-links a {
    color: var(--subtle);
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--blue-dim);
}

.nav-links a.active {
    color: var(--blue-light);
}

/* LANGUAGE DROPDOWN */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 12px;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--subtle);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.lang-dropdown-toggle:hover, 
.lang-dropdown.open .lang-dropdown-toggle {
    color: var(--text);
    background: var(--blue-dim);
}

.lang-dropdown-toggle i {
    font-size: 11px;
    transition: transform 0.2s;
    margin-top: 2px;
}

.lang-dropdown.open .lang-dropdown-toggle i {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    min-width: 140px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--subtle);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-size: 14px;
}

.lang-dropdown-menu a:hover {
    background: var(--blue-dim);
    color: var(--text);
}

.flag-icon {
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* RIGHT — login + cta + theme toggle */
.nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--subtle);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--blue-light);
    background: var(--blue-dim);
    transform: rotate(15deg);
}

.login {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(96,165,250,.4);
    background: transparent;
    color: var(--subtle);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.login:hover {
    border-color: var(--blue-light);
    color: var(--text);
}

.nav-cta {
    padding: 8px 18px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

/* Hamburger (mobile) */
.mobile-divider { display: none; }
.mobile-auth    { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--subtle);
    border-radius: 2px;
    transition: .3s;
}

/* =========================================
   HERO WRAPPER (for centering on large screens)
   ========================================= */
#home {
    background: var(--bg);
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#home .hero {
    width: 100%;
    max-width: 1280px;
    min-height: unset;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 60px;
    min-height: calc(100vh - var(--nav-h));
}

.hero-content {
    max-width: 520px;
    animation: heroFadeUp 0.9s cubic-bezier(.22,.68,0,1.2) both;
}

.hero-visual {
    position: relative;
    width: 450px;
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroFadeIn 1.2s ease both;
}

.hero-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.15));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hero-svg:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 25px 50px rgba(59, 130, 246, 0.25));
}

[data-theme="dark"] .hero-svg {
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.3));
}

[data-theme="dark"] .hero-svg:hover {
    filter: drop-shadow(0 25px 50px rgba(59, 130, 246, 0.45));
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        var(--blue-light) 0%,
        var(--text) 40%,
        var(--blue) 60%,
        var(--blue-light) 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3.5s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 250% center; }
}

.hero > p,
.hero-content > p {
    color: var(--muted);
    margin: 18px 0 0;
    font-size: 17px;
}

/* SEARCH */
.search-wrapper {
    display: flex;
    margin-top: 28px;
    background: var(--surface);
    border-radius: 40px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.search-wrapper input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    outline: none;
}

.search-wrapper input::placeholder { color: var(--muted); }

.search-wrapper button {
    padding: 14px 26px;
    border: none;
    background: var(--blue);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.search-wrapper button:hover { background: #1d4ed8; }

.search-wrapper:focus-within {
    border-color: rgba(96,165,250,.6);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
    transition: box-shadow 0.25s, border-color 0.25s;
}

/* BUTTONS */
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.primary {
    background: var(--blue);
    border: none;
    padding: 12px 26px;
    border-radius: 25px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.primary:hover { background: #1d4ed8; transform: translateY(-1px); }

.ghost {
    background: transparent;
    border: 1px solid var(--blue);
    padding: 12px 26px;
    border-radius: 25px;
    color: var(--blue-light);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.ghost:hover { background: var(--blue-dim); transform: translateY(-1px); }



/* =========================================
   SECTION LABELS
   ========================================= */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-light);
    background: var(--blue-dim);
    border: 1px solid rgba(96,165,250,.25);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 16px;
}

/* =========================================
   SECTION DIVIDERS (onepager)
   ========================================= */
.section-divider {
    text-align: center;
    padding: 80px 60px 48px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.op-domain-search {
    max-width: 540px;
    margin: 0 auto;
}

/* =========================================
   PAGE SECTIONS (onepager)
   ========================================= */
.page-section {
    position: relative;
    border-top: none;
}

.page-section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--blue) 30%,
        var(--blue-light) 50%,
        var(--blue) 70%,
        transparent 100%
    );
    opacity: 0.45;
    margin: 0 10%;
    animation: accentPulse 4s ease-in-out infinite alternate;
}

@keyframes accentPulse {
    from { opacity: 0.3; margin: 0 15%; }
    to   { opacity: 0.65; margin: 0 5%; }
}

/* =========================================
   STATS STRIP
   ========================================= */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 48px 60px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-light);
    transition: color 0.3s, text-shadow 0.3s;
}

.stat-item:hover .num {
    color: var(--blue);
    text-shadow: 0 0 20px rgba(96,165,250,.5);
}

[data-theme="dark"] .stat-item:hover .num {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(96,165,250,.7);
}

.stat-item .lbl {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* =========================================
   FEATURES
   ========================================= */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding: 80px 60px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background-color 0.3s ease;
}

.feature:hover {
    border-color: rgba(59,130,246,.5);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(59,130,246,.12);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 14px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}

.feature:hover .feature-icon {
    transform: scale(1.3) rotate(-8deg);
}

.feature h3 {
    color: var(--blue-light);
    font-size: 17px;
    margin-bottom: 8px;
}

.feature p { color: var(--muted); font-size: 14px; }

/* =========================================
   SCROLL REVEAL ANIMATION
   ========================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(.22,.68,0,1.1),
                transform 0.6s cubic-bezier(.22,.68,0,1.1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }
[data-reveal]:nth-child(5) { transition-delay: 0.4s; }
[data-reveal]:nth-child(6) { transition-delay: 0.5s; }

/* =========================================
   PRICING
   ========================================= */
.pricing {
    text-align: center;
    padding: 80px 40px;
}

.pricing h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing > p,
.pricing .subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 48px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* =========================================
   PRICING TOGGLE
   ========================================= */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label.active {
    color: var(--text);
}

.discount-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

[data-theme="dark"] .discount-badge {
    color: #4ade80;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--surface2);
    transition: .4s;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3.5px;
    background-color: var(--blue-light);
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--blue);
    border-color: var(--blue);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

/* Toggle Logic */
.yearly-active .monthly-price { display: none !important; }
.yearly-active .yearly-price { display: block !important; }
.yearly-price { display: none; }

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 30px 28px;
    border-radius: 16px;
    width: 270px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(.22,.68,0,1.2),
                border-color 0.3s,
                box-shadow 0.3s, background-color 0.3s ease;
    text-align: left;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(59,130,246,.15);
}

.price-card h3 {
    color: var(--blue-light);
    font-size: 18px;
    margin-bottom: 6px;
}

.price-card .desc {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    margin: 4px 0 2px;
}

.price .monthly-price,
.price .yearly-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
}

.price .monthly-price span,
.price .yearly-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.price-card ul {
    list-style: none;
    margin: 18px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.price-card ul li {
    color: var(--subtle);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-card ul li::before {
    content: '✓';
    color: var(--blue-light);
    font-weight: 700;
    flex-shrink: 0;
}

.price-card button {
    width: 100%;
    padding: 11px 20px;
    border: 1px solid var(--blue);
    background: transparent;
    color: var(--blue-light);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
    margin-top: auto;
}

.price-card button:hover {
    background: var(--blue);
    color: white;
}

.featured {
    border: 2px solid var(--blue);
    background: var(--featured-bg);
    position: relative;
    animation: featuredGlow 3s ease-in-out infinite alternate;
}

@keyframes featuredGlow {
    from { box-shadow: 0 0 20px rgba(59,130,246,.15),  0 8px 32px rgba(0,0,0,.15); }
    to   { box-shadow: 0 0 48px rgba(59,130,246,.35), 0 8px 32px rgba(0,0,0,.15); }
}

[data-theme="dark"] {
    animation: featuredGlowDark 3s ease-in-out infinite alternate;
}

@keyframes featuredGlowDark {
    from { box-shadow: 0 0 20px rgba(59,130,246,.2),  0 8px 32px rgba(0,0,0,.4); }
    to   { box-shadow: 0 0 48px rgba(59,130,246,.45), 0 8px 32px rgba(0,0,0,.4); }
}

.featured .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.featured button {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.featured button:hover { background: #1d4ed8; }

/* =========================================
   TLD PILL CARDS (onepager domain pricing)
   ========================================= */
.tld-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    max-width: 780px;
    margin: 36px auto 0;
}

.tld-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px 14px;
    text-align: center;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.2s, background-color 0.3s ease;
    cursor: default;
}

.tld-pill:hover {
    border-color: rgba(96,165,250,.45);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(59,130,246,.13);
}

.tld-pill .tld-ext {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-light);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.tld-pill .tld-from {
    display: block;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.2px;
}

.tld-pill .tld-price {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--subtle);
    margin-top: 2px;
}

.tld-note {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 20px;
    opacity: 0.7;
}

/* =========================================
   DOMAIN SEARCH RESULTS
   ========================================= */
.domain-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 60px 80px;
}

.domain-result-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInResult 0.35s cubic-bezier(.22,.68,0,1.2) both;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@keyframes slideInResult {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.domain-result-item:nth-child(2) { animation-delay: 0.07s; }
.domain-result-item:nth-child(3) { animation-delay: 0.14s; }
.domain-result-item:nth-child(4) { animation-delay: 0.21s; }
.domain-result-item:nth-child(5) { animation-delay: 0.28s; }

.domain-result-item .tld { color: var(--blue-light); font-weight: 600; }
.domain-result-item .price-tag { color: var(--subtle); font-size: 14px; }
.domain-result-item button {
    padding: 7px 16px;
    border: 1px solid var(--blue);
    background: transparent;
    color: var(--blue-light);
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}
.domain-result-item button:hover { background: var(--blue); color: white; }

/* =========================================
   FAQ
   ========================================= */
.faq {
    padding: 80px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 36px;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    gap: 16px;
    user-select: none;
}

.faq-question h4 {
    font-size: 16px;
    color: var(--text);
    margin: 0;
    transition: color 0.2s;
}

.faq-item:hover .faq-question h4,
.faq-item.open .faq-question h4 {
    color: var(--blue-light);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-light);
    font-size: 16px;
    font-weight: 300;
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
                background 0.25s,
                border-color 0.25s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--blue-dim);
    border-color: rgba(96,165,250,.4);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(.22,.68,0,1.1);
}

.faq-answer p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    padding-bottom: 20px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
    text-align: center;
    padding: 80px 60px 60px;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.page-hero p {
    color: var(--muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 60px 28px;
    transition: border-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand .logo { font-size: 18px; font-weight: 700; color: var(--text); }

.footer-brand p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
    max-width: 220px;
    line-height: 1.6;
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--subtle);
    font-size: 14px;
    margin-bottom: 8px;
    transition: color .2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* =========================================
   RESPONSIVE - Mobile & Tablet
   ========================================= */
@media (max-width: 1100px) and (min-width: 901px) {
    /* Prevent overlapping before mobile menu kicks in */
    .nav {
        padding: 0 30px;
    }
}

@media (max-width: 900px) {
    /* Navbar mobile */
    .nav { padding: 0 24px; }
    
    .logo-wrapper img { height: 40px; }
    .logo-text { font-size: 18px; }
    
    .nav-links { display: none; position: absolute; }
    .hamburger { display: flex; }

    /* Hide login/CTA buttons — they move into the dropdown */
    .nav-right { display: none; }

    .nav.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: var(--nav-h);
        /* left: 0; */
        right: 0;
        width: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 16px 0 20px;
        gap: 4px;
        z-index: 999;
    }

    .nav.open .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* Divider + auth buttons inside dropdown */
    .nav.open .nav-links .mobile-divider {
        display: block;
        width: 80%;
        height: 1px;
        background: var(--border);
        margin: 10px 0;
    }

    .nav.open .nav-links .mobile-auth {
        display: flex;
        gap: 12px;
        margin-top: 4px;
        align-items: center;
    }

    /* Hero mobile - hide orbs and center text */
    .hero {
        flex-direction: column;
        padding: 48px 24px 60px;
        text-align: center;
        gap: 40px;
    }

    .hero h1 { font-size: 34px; }

    .hero-actions { justify-content: center; }

    /* Adjust hero visual on mobile */
    .hero-visual { 
        display: none; 
    }

    /* Center hero content when visual is hidden */
    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    /* Other sections */
    .features { padding: 48px 24px; }
    .pricing { padding: 48px 24px; }
    .page-hero { padding: 48px 24px 40px; }
    .page-hero h1 { font-size: 30px; }

    .section-divider { padding: 56px 24px 36px; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 15px; }
    .page-section::before { margin: 0 6%; }

    .domain-results { padding: 0 24px 60px; }
    .faq { padding: 48px 24px; }
    .stats { gap: 32px; padding: 36px 24px; }

    footer { padding: 36px 24px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
    .logo-wrapper img { height: 40px; }
    .logo-text { font-size: 16px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .pricing-cards { gap: 16px; }
    .price-card { width: 100%; }

    /* Search bar stacks vertically on very small screens */
    .search-wrapper {
        flex-direction: column;
        border-radius: 16px;
        overflow: hidden;
    }
    .search-wrapper input {
        width: 100%;
        border-radius: 0;
        padding: 14px 18px;
    }
    .search-wrapper button {
        width: 100%;
        border-radius: 0;
        padding: 13px 18px;
        font-size: 14px;
    }

    .section-divider { padding: 40px 16px 28px; }
    .section-title { font-size: 24px; }

    .tld-pills {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
    }

    .tld-pill .tld-ext { font-size: 18px; }
    .tld-pill .tld-from { font-size: 11px; }
    .tld-pill .tld-price { font-size: 12px; }
}

/* =========================================
   RTL / ARABIC SUPPORT
   ========================================= */
html[dir="rtl"] {
    --font-primary: 'Cairo', 'Outfit', sans-serif;
}

html[dir="rtl"] body {
    font-family: var(--font-primary);
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero h1 span,
html[dir="rtl"] .search-wrapper input,
html[dir="rtl"] .search-wrapper button,
html[dir="rtl"] .primary,
html[dir="rtl"] .ghost,
html[dir="rtl"] .login,
html[dir="rtl"] .price-card button {
    font-family: var(--font-primary);
}

html[dir="rtl"] .price-card,
html[dir="rtl"] .feature,
html[dir="rtl"] .domain-result-item {
    text-align: right;
}

html[dir="rtl"] .price-card ul li {
    text-align: right;
}

html[dir="rtl"] .search-wrapper input {
    text-align: right;
}

/* Pricing Toggle Fixes */
html[dir="rtl"] .toggle-switch .slider:before {
    left: auto;
    right: 3px;
}

html[dir="rtl"] .toggle-switch input:checked + .slider:before {
    transform: translateX(-24px);
}

/* FAQ Icon position */
html[dir="rtl"] .faq-question {
    flex-direction: row;
}

/* Lang Dropdown RTL Fixes */
html[dir="rtl"] .lang-dropdown {
    margin-left: 0;
    margin-right: 12px;
}

html[dir="rtl"] .lang-dropdown-toggle i {
    margin-right: 6px;
    margin-left: 0;
}

/* General Flex directions */
html[dir="rtl"] .nav-links,
html[dir="rtl"] .nav-right,
html[dir="rtl"] .mobile-auth {
    flex-direction: row;
}
