/* ──────────────────────────────────────────────────────────────────────────
   NumberCheap — Landing Page CSS
   Theme: Glassmorphism · Light Green Primary · Dark/Light Mode
   ────────────────────────────────────────────────────────────────────────── */

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

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
    --primary:        #4ade80;
    --primary-dark:   #22c55e;
    --primary-glow:   rgba(74, 222, 128, 0.25);
    --primary-subtle: rgba(74, 222, 128, 0.08);

    /* Dark mode (default) */
    --bg:             #080d1a;
    --bg-2:           #0d1525;
    --bg-3:           #111927;
    --text:           #f1f5f9;
    --text-muted:     #94a3b8;
    --text-faint:     #475569;
    --glass-bg:       rgba(255, 255, 255, 0.04);
    --glass-border:   rgba(255, 255, 255, 0.10);
    --glass-hover:    rgba(255, 255, 255, 0.08);
    --shadow:         0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-green:   0 0 40px rgba(74, 222, 128, 0.15);
    --nav-bg:         rgba(8, 13, 26, 0.85);
    --card-bg:        rgba(13, 21, 37, 0.6);
}

[data-theme="light"] {
    --bg:             #f0fdf4;
    --bg-2:           #f8fafc;
    --bg-3:           #ffffff;
    --text:           #0f172a;
    --text-muted:     #475569;
    --text-faint:     #94a3b8;
    --glass-bg:       rgba(255, 255, 255, 0.7);
    --glass-border:   rgba(34, 197, 94, 0.2);
    --glass-hover:    rgba(34, 197, 94, 0.08);
    --shadow:         0 8px 32px rgba(15, 23, 42, 0.1);
    --shadow-green:   0 0 40px rgba(74, 222, 128, 0.2);
    --nav-bg:         rgba(240, 253, 244, 0.90);
    --card-bg:        rgba(255, 255, 255, 0.75);
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a1a10;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
    filter: brightness(1.08);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-subtle);
    transform: translateY(-2px);
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid rgba(74,222,128,0.2);
}

/* ── Background Blobs ──────────────────────────────────────────────────── */
.bg-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: blobFloat 12s ease-in-out infinite alternate;
}
.blob-1 { width: 600px; height: 600px; background: var(--primary); top: -150px; left: -100px; animation-duration: 14s; }
.blob-2 { width: 400px; height: 400px; background: #3b82f6; bottom: 10%; right: -80px; animation-duration: 18s; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: var(--primary-dark); top: 50%; left: 40%; animation-duration: 16s; animation-delay: -8s; }

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(1.05); }
}

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
}
.nav-logo-icon {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.nav-logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.theme-toggle:hover { background: var(--glass-hover); border-color: var(--primary); }

.nav-mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text);
    cursor: pointer;
    align-items: center; justify-content: center;
    font-size: 1.2rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge { margin-bottom: 1.5rem; }

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.hero-stat {}
.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Hero Visual / Phone mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow), var(--shadow-green);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}
.phone-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #86efac);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.phone-name { font-weight: 700; font-size: 0.9rem; }
.phone-status { font-size: 0.75rem; color: var(--primary); }

.chat-messages { display: flex; flex-direction: column; gap: 0.75rem; }

.chat-msg {
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 90%;
    animation: msgIn 0.4s ease both;
}
.chat-msg.bot {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 0.2rem;
    align-self: flex-start;
}
.chat-msg.user {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a1a10;
    border-bottom-right-radius: 0.2rem;
    align-self: flex-end;
    font-weight: 600;
}

.phone-floating-cards {
    position: absolute;
    top: -20px;
    right: -60px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    backdrop-filter: blur(12px);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow);
    animation: cardFloat 4s ease-in-out infinite alternate;
}
.floating-card:nth-child(2) { animation-delay: -2s; }
.floating-card .emoji { margin-right: 0.35rem; }

@keyframes cardFloat {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* ── Section Base ──────────────────────────────────────────────────────── */
section { position: relative; z-index: 1; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .badge { margin-bottom: 1rem; }
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.section-title .highlight {
    background: linear-gradient(135deg, var(--primary), #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

/* ── Features ──────────────────────────────────────────────────────────── */
.features { padding: 6rem 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}


.feature-card {
    padding: 2rem;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    cursor: default;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74,222,128,0.3);
    box-shadow: var(--shadow), 0 0 30px var(--primary-glow);
}

.feature-icon {
    width: 52px; height: 52px;
    border-radius: 0.875rem;
    background: var(--primary-subtle);
    border: 1px solid rgba(74,222,128,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── How It Works ──────────────────────────────────────────────────────── */
.how-it-works { padding: 6rem 0; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
}

.step-number {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a1a10;
    font-weight: 900;
    font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 24px var(--primary-glow);
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Stats ──────────────────────────────────────────────────────────────── */
.stats-section { padding: 5rem 0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-section { padding: 6rem 0; }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
    border-radius: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    text-align: left;
    transition: all 0.2s;
    backdrop-filter: blur(12px);
}
.faq-question:hover { border-color: rgba(74,222,128,0.3); background: var(--glass-hover); }
.faq-question.open { border-color: rgba(74,222,128,0.3); border-radius: 1rem 1rem 0 0; }

.faq-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid rgba(74,222,128,0.2);
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    backdrop-filter: blur(12px);
}
.faq-answer.open { max-height: 300px; }
.faq-answer-inner {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta-section { padding: 6rem 0; }

.cta-card {
    border-radius: 2rem;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74,222,128,0.08), rgba(59,130,246,0.06));
    z-index: 0;
}
.cta-card > * { position: relative; z-index: 1; }

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.cta-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 2rem;
}

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

.footer-brand { }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.footer-logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.82rem;
    color: var(--text-faint);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Scroll animations ─────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { margin-top: 3rem; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .phone-floating-cards { right: -20px; }

    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }

    .nav-links { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 4rem;
        left: 0; right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--glass-border);
    }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 3rem 1.5rem; }
    .steps-grid::before { display: none; }
    .phone-floating-cards { display: none; }
}

/* ── Language Switcher ─────────────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
}
.lang-link {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
    color: var(--text);
}
.lang-link:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── RTL Overrides ─────────────────────────────────────────────────────── */
html[dir="rtl"] body {
    text-align: right;
}
html[dir="rtl"] .faq-question {
    text-align: right;
}
html[dir="rtl"] .floating-card .emoji {
    margin-right: 0;
    margin-left: 0.35rem;
}
html[dir="rtl"] .hero-title, html[dir="rtl"] .section-title {
    letter-spacing: normal;
}

/* ── Legal Content Styles ─────────────────────────────────────────────── */
.legal-content {
    padding: 120px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}
