/* ═══════════════════════════════════════════════════
   domainlens.app — Global Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens (Cyber theme) ── */
:root {
    --bg:         #08081A;
    --surface:    #12122B;
    --card:       #161633;
    --card-hi:    #1C1C40;
    --primary:    #7C6FFF;
    --primary-dk: #5A52D5;
    --primary-lt: #A08BFF;
    --secondary:  #00E4B8;
    --accent:     #FF6B9D;
    --neon:       #00FFD1;
    --neon-purple:#B06CFF;
    --neon-blue:  #3DEFE9;
    --glow:       #4A3FCF;
    --text:       #F0F0FF;
    --text-sec:   #A0A0C8;
    --text-muted: #5E5E80;
    --success:    #4ADE80;
    --warning:    #FBBF24;
    --error:      #FF6B6B;
    --radius:     12px;
    --radius-lg:  20px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Glow background ── */
.glow-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 600px 400px at 20% 20%, rgba(124,111,255,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 80%, rgba(0,228,184,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 50% 50%, rgba(176,108,255,0.06) 0%, transparent 70%);
}

/* ── Nav ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(8,8,26,0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124,111,255,0.15);
}
.nav-logo {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1.25rem; font-weight: 700; color: var(--text);
    text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-sec); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); text-decoration: none; }

/* ── Hero ── */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}
.hero-icon {
    width: 100px; height: 100px; margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(124,111,255,0.5));
    animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-lt), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}
.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-sec);
    max-width: 640px; margin: 1.2rem auto 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: 50px;
    font-size: 1rem; font-weight: 600;
    transition: transform 0.15s, box-shadow 0.25s;
    cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,111,255,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(124,111,255,0.5); color: #fff; }
.btn-outline {
    background: transparent; color: var(--secondary);
    border: 2px solid var(--secondary);
}
.btn-outline:hover {
    background: rgba(0,228,184,0.1);
    box-shadow: 0 4px 20px rgba(0,228,184,0.2); color: var(--secondary);
}
.btn svg { width: 20px; height: 20px; }

/* ── Sections ── */
section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-title {
    font-size: 2rem; font-weight: 700; text-align: center;
    margin-bottom: 0.6rem;
}
.section-sub {
    text-align: center; color: var(--text-sec);
    margin-bottom: 3rem; font-size: 1.1rem;
}

/* ── Stats Banner ── */
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem; text-align: center;
    padding: 2rem; margin-bottom: 2rem;
}
.stat-num {
    font-size: 2.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary-lt), var(--neon));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: var(--text-sec); font-size: 0.9rem; margin-top: 0.2rem; }

/* ── Feature Grid ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--card);
    border: 1px solid rgba(124,111,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.feature-card:hover {
    border-color: rgba(124,111,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124,111,255,0.1);
}
.feature-icon {
    font-size: 2rem; margin-bottom: 1rem;
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: rgba(124,111,255,0.1);
    border-radius: var(--radius);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-sec); font-size: 0.95rem; }

/* ── Services List ── */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.service-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(124,111,255,0.08);
    font-size: 0.92rem;
}
.service-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: var(--secondary);
    box-shadow: 0 0 6px var(--secondary);
}

/* ── Themes Showcase ── */
.themes-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.theme-card {
    border-radius: var(--radius-lg); padding: 2rem; text-align: center;
    border: 2px solid transparent; transition: transform 0.2s;
}
.theme-card:hover { transform: translateY(-4px); }
.theme-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.theme-card p { font-size: 0.9rem; opacity: 0.8; }
.theme-cyber {
    background: linear-gradient(135deg, #12122B, #1C1C40);
    border-color: var(--primary); color: var(--text);
}
.theme-matrix {
    background: linear-gradient(135deg, #0a0a0a, #0d1a0d);
    border-color: #00FF41; color: #00FF41;
}
.theme-midnight {
    background: linear-gradient(135deg, #0A0E1A, #121D33);
    border-color: #1E90FF; color: #E8F0FF;
}
.theme-sunset {
    background: linear-gradient(135deg, #1A0E0A, #241812);
    border-color: #FF6B35; color: #FFF0E8;
}
.theme-arctic {
    background: linear-gradient(135deg, #0A1014, #142028);
    border-color: #00BCD4; color: #E0F7FA;
}
.theme-stealth {
    background: linear-gradient(135deg, #0E0E0E, #1A1A1A);
    border-color: #90A4AE; color: #E0E0E0;
}
.theme-accessible {
    background: linear-gradient(135deg, #1a1a2e, #222244);
    border-color: #4A90D9; color: #F0F0FF;
}
.theme-rose {
    background: linear-gradient(135deg, #140A10, #1E1018);
    border-color: #FF6B9D; color: #FFF0F5;
}
.theme-emerald {
    background: linear-gradient(135deg, #0A120E, #101E16);
    border-color: #50C878; color: #E8F5E9;
}
.theme-swatch { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.swatch {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
}

/* ── Export ── */
.export-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.export-tag {
    padding: 0.6rem 1.4rem; border-radius: 50px;
    background: var(--card);
    border: 1px solid rgba(124,111,255,0.15);
    font-size: 0.95rem; font-weight: 500;
}

/* ── Changelog ── */
.changelog { max-width: 700px; margin: 0 auto; }
.changelog-version { margin-bottom: 2rem; }
.changelog-version h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary-lt); margin-bottom: 0.5rem; }
.changelog-date { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); margin-left: 0.5rem; }
.changelog-version ul { list-style: none; padding: 0; }
.changelog-version li {
    padding: 0.3rem 0; padding-left: 1.2rem; position: relative;
    color: var(--text-sec); font-size: 0.95rem;
}
.changelog-version li::before {
    content: '•'; position: absolute; left: 0;
    color: var(--secondary); font-weight: 700;
}

/* ── CTA ── */
.cta-section {
    text-align: center; padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(124,111,255,0.06));
    border-radius: var(--radius-lg);
    margin: 2rem auto; max-width: 1100px;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { color: var(--text-sec); margin-bottom: 2rem; font-size: 1.1rem; }

/* ── Footer ── */
footer {
    text-align: center; padding: 2rem;
    border-top: 1px solid rgba(124,111,255,0.1);
    color: var(--text-muted); font-size: 0.85rem;
}
footer a { color: var(--text-sec); }

/* ── MS Store Badge ── */
.ms-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem 0.5rem 0.7rem;
    background: #000; border: 1px solid #555;
    border-radius: 8px; color: #fff; font-size: 0.85rem;
    transition: border-color 0.2s;
}
.ms-badge:hover { border-color: var(--primary); text-decoration: none; color: #fff; }
.ms-badge svg { width: 24px; height: 24px; }
.ms-badge-text { line-height: 1.2; }
.ms-badge-label { font-size: 0.65rem; opacity: 0.7; }
.ms-badge-name { font-weight: 600; font-size: 0.95rem; }

/* ── Inner Pages (Privacy, Terms, Support) ── */
.page-content {
    max-width: 800px; margin: 0 auto; padding: 7rem 2rem 4rem;
}
.page-content h1 {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-content .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.page-content h2 { font-size: 1.3rem; color: var(--secondary); margin: 2rem 0 0.8rem; }
.page-content p, .page-content li { color: var(--text-sec); font-size: 0.95rem; margin-bottom: 0.8rem; line-height: 1.7; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.4rem; }
.page-content .subtitle { color: var(--text-sec); font-size: 1.05rem; margin-bottom: 2.5rem; }

.info-card {
    background: var(--card); border: 1px solid rgba(124,111,255,0.1);
    border-radius: var(--radius-lg); padding: 2rem; margin: 1.5rem 0;
    transition: border-color 0.3s;
}
.info-card:hover { border-color: rgba(124,111,255,0.25); }
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.info-card .card-icon { font-size: 2rem; margin-bottom: 0.8rem; }

.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; margin: 1.5rem 0;
}
.faq-item { margin-bottom: 1.5rem; }
.faq-q { font-weight: 600; color: var(--text); font-size: 1rem; margin-bottom: 0.4rem; }
.faq-a { color: var(--text-sec); font-size: 0.93rem; padding-left: 1rem; border-left: 2px solid var(--primary); }
.badge {
    display: inline-block; padding: 0.25rem 0.75rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    background: rgba(124,111,255,0.15); color: var(--primary);
}

/* ── Technical Details Page ── */
.technical-page .technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.technical-page .technical-card {
    background: var(--card);
    border: 1px solid rgba(124,111,255,0.12);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.technical-page .technical-card h3 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.technical-page .technical-card ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.technical-page .technical-card li {
    margin-bottom: 0.35rem;
    color: var(--text-sec);
    font-size: 0.92rem;
    line-height: 1.55;
}

.technical-page .tech-table-wrap {
    margin-top: 0.8rem;
    overflow-x: auto;
    border: 1px solid rgba(124,111,255,0.16);
    border-radius: var(--radius);
    background: var(--card);
}

.technical-page .tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
}

.technical-page .tech-table th,
.technical-page .tech-table td {
    border-bottom: 1px solid rgba(124,111,255,0.12);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.9rem;
    line-height: 1.45;
}

.technical-page .tech-table th {
    color: var(--secondary);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    background: rgba(124,111,255,0.06);
}

.technical-page .tech-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Contact Form ── */
.contact-form {
    margin-top: 2rem;
    background: linear-gradient(180deg, rgba(22,22,51,0.95), rgba(18,18,43,0.95));
    border: 1px solid rgba(124,111,255,0.18);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 10px 35px rgba(10,8,35,0.35);
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; font-size: 0.9rem; font-weight: 600;
    color: var(--text-sec); margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.form-group .required { color: var(--accent); }
.form-group input,
.form-group textarea {
    width: 100%; padding: 0.9rem 1.1rem;
    background: var(--surface); color: var(--text);
    border: 1px solid rgba(124,111,255,0.12);
    border-radius: var(--radius); font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
}
.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(124,111,255,0.25);
    background: var(--card);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(124,111,255,0.12), 0 0 20px rgba(124,111,255,0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.4rem; }
.btn-submit {
    width: 100%; justify-content: center; font-size: 1.05rem; padding: 1rem;
    margin-top: 0.5rem;
}
.turnstile-wrap { display: flex; justify-content: center; margin: 0.5rem 0; }
.cf-turnstile { max-width: 100%; overflow: hidden; }
.form-alert {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 1rem 1.2rem; border-radius: var(--radius);
    margin-bottom: 1.5rem; font-size: 0.95rem; font-weight: 500;
}
.form-success {
    background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25);
    color: var(--success);
}
.form-error {
    background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.25);
    color: var(--error);
}
.info-card-sm { padding: 1.5rem; }
.info-card-sm .card-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.info-card-sm h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.info-card-sm p { font-size: 0.88rem; margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
    nav { padding: 0.8rem 1rem; }
    .nav-links { display: none; }
    section { padding: 3rem 1.2rem; }
    .hero { padding: 6rem 1.2rem 3rem; }
    .features { grid-template-columns: 1fr; }
    .themes-row { grid-template-columns: 1fr; }
    .page-content { padding: 5rem 1.2rem 3rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1rem; }
}

/* ── Language Switcher (nav dropdown) ── */
#lang-switcher.lang-nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}
.lang-trigger {
    display: flex;
    align-items: center;
    gap: 0.18rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    line-height: 1;
    opacity: 0.65;
    transition: background 0.15s, opacity 0.15s;
}
.lang-trigger:hover { background: rgba(255,255,255,0.07); opacity: 1; }
.lang-trigger-flag { font-size: 1.25rem; display: block; line-height: 1; }
.lang-caret { font-size: 0.58rem; color: var(--text-muted, #5e5e80); margin-top: 1px; }
.lang-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 156px;
    background: rgba(10, 10, 26, 0.97);
    border: 1px solid rgba(124, 111, 255, 0.2);
    border-radius: 10px;
    padding: 0.35rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    z-index: 200;
    gap: 0.05rem;
}
.lang-dropdown.open { display: flex; }
.lang-opt {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.65rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-sec, #a0a0c8);
    font-size: 0.875rem;
    width: 100%;
    text-align: left;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
}
.lang-opt:hover { background: rgba(124, 111, 255, 0.12); color: var(--text, #f0f0ff); }
.lang-opt--active { color: var(--secondary, #00e4b8); }
.lang-opt--active::after { content: '✓'; margin-left: auto; font-size: 0.75rem; padding-left: 0.5rem; }
.lang-opt-flag { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.lang-opt-name { line-height: 1; }
