/* ============================================================
   XNRL TWEAKS — UNIFIED THEME
   Extracted from index (2).html, adapted for all pages.
   Uses Inter font (site-wide).
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --bg: #06060f;
    --bg2: #0b0b1a;
    --surface: #0f0f20;
    --surface2: #141428;
    --border: rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.13);
    --text: #e8e8f0;
    --text-muted: #9090aa;
    --text-dim: #606080;
    --purple: #7c5cfc;
    --purple-soft: rgba(124,92,252,0.15);
    --purple-glow: rgba(124,92,252,0.35);
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --orange: #f97316;
    --green: #22d3a0;
    --red: #f43f5e;
    --accent: #7c5cfc;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background-color: var(--bg); }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NOISE GRAIN OVERLAY ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* ===== GRID BACKGROUND ===== */
.grid-bg {
    background-image:
        linear-gradient(rgba(124,92,252,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,92,252,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6,6,15,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

#header.scrolled { background: rgba(6,6,15,0.95); }

.logo-link { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo-link img { height: 36px; width: auto; }
.logo-text { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 1.1rem; color: #fff; letter-spacing: 0.02em; }

nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav.desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

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

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    background: var(--purple);
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s !important;
}

.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }

#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    z-index: 99;
}

#mobile-menu.open { display: block; }

#mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: #fff; }

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    background: rgba(124,92,252,0.1);
    border: 1px solid rgba(124,92,252,0.25);
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #7c5cfc;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    background: var(--purple);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.25s;
    box-shadow: 0 4px 24px rgba(124,92,252,0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124,92,252,0.5);
    background: #8b6dfd;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.25s;
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ===== SECTION SHARED ===== */
.section { padding: 6rem 2rem; position: relative; }
.section-sm { padding: 4rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 960px; margin: 0 auto; }

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.65;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== HIGHLIGHTS ===== */
.hl-purple {
    background: linear-gradient(135deg, #a78bfa, #7c5cfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hl-cyan {
    background: linear-gradient(135deg, var(--cyan), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hl-amber {
    background: linear-gradient(135deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.floating { animation: float 4s ease-in-out infinite; }

/* ===== AUTH TOGGLE ===== */
.auth-content { display: none; }
.auth-content.visible { display: inline-flex; }
.no-auth-content.hidden { display: none; }

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    background: var(--bg2);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo img { height: 32px; }
.footer-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}

.footer-brand-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

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

.footer-social-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.footer-social-btn:hover { border-color: var(--border-strong); color: #fff; background: var(--surface); }

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.75rem; }

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

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

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

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

/* ===== PAGE-CONTENT UTILITY CLASSES ===== */
/* These replace common Tailwind utility patterns across pages */

/* --- Page hero --- */
.page-hero {
    padding: 120px 2rem 60px;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* --- Cards --- */
.theme-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.theme-card:hover {
    border-color: rgba(124,92,252,0.3);
    transform: translateY(-3px);
}

.theme-card-featured {
    border: 1px solid rgba(245,158,11,0.3);
    background: linear-gradient(145deg, rgba(245,158,11,0.05), var(--surface));
}

.theme-card-featured:hover { border-color: rgba(245,158,11,0.5); }

/* --- Feature icon boxes --- */
.theme-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* --- Grid layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Flex utilities --- */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* --- Spacing --- */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-2 { padding-top: 1rem; }
.pb-4 { padding-bottom: 2rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }

/* --- Text --- */
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-purple { color: var(--purple); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-relaxed { line-height: 1.65; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

/* --- Visibility --- */
.hidden { display: none !important; }

/* --- FAQ card --- */
.faq-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.faq-card:hover {
    border-color: rgba(124,92,252,0.3);
    transform: translateY(-2px);
    background: var(--surface2);
}

.faq-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.faq-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Product card (products page) --- */
.product-card {
    display: block;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(124,92,252,0.4);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.product-card .product-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-card .product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-card .product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.product-card .product-features li i { color: var(--green); font-size: 0.75rem; }

.product-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.product-price-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.product-cta {
    display: block;
    width: 100%;
    padding: 0.85rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s;
    background: var(--purple);
    color: #fff;
    border: none;
    cursor: pointer;
}

.product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124,92,252,0.4);
}

/* --- Product badge --- */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
}

/* --- Review card (used by JS) --- */
.review-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.review-card:hover {
    border-color: rgba(124,92,252,0.3);
    transform: translateY(-2px);
}

/* --- Download card --- */
.download-card {
    border-radius: 20px;
    border: 1px solid rgba(124,92,252,0.2);
    background: var(--surface);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.download-card:hover { border-color: rgba(124,92,252,0.4); }

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(6,182,212,0.06));
    border: 1px solid rgba(124,92,252,0.2);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(124,92,252,0.2), transparent 70%);
    pointer-events: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #8b6dfd; }

/* --- Tag/pill --- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    white-space: nowrap;
}

.tag-purple {
    color: #a78bfa;
    background: rgba(124,92,252,0.08);
    border: 1px solid rgba(124,92,252,0.15);
}

/* --- Glass card (legacy compat) --- */
.glass-card-theme {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.3s;
}

.glass-card-theme:hover {
    border-color: rgba(124,92,252,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav.desktop-nav { display: none; }
    #menu-toggle { display: block; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding: 4rem 1.25rem; }
    .page-hero { padding: 100px 1.25rem 40px; }
    .cta-section { padding: 2.5rem 1.5rem; }
}
