/*/assets/css/style.css*/

/* ═══════════════════════════════════
   CALinONE – Global Styles
   Liquid Glass Pro (matches app design)
   ═══════════════════════════════════ */

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

:root {
    /* Scaffold gradient (app: #1A0533 → #0D1B2A) */
    --bg-top: #1a0533;
    --bg-bottom: #0d1b2a;
    --bg-deep: #120428;
    --bg-base: #160a2e;
    --bg-surface: rgba(255, 255, 255, 0.06);
    --bg-elevated: rgba(255, 255, 255, 0.09);

    /* Glass card: cardGradient + low-opacity fill */
    --bg-card: linear-gradient(135deg, rgba(179, 136, 255, 0.10), rgba(6, 182, 212, 0.04));
    --glass-blur: 28px;

    /* Borders: glassBorder #8B5CF6 @ 0.18 */
    --border: rgba(139, 92, 246, 0.18);
    --border-glow: rgba(139, 92, 246, 0.4);

    --text-primary: #ffffff;
    --text-secondary: #c5c3d8;
    --text-muted: #9d9bb8;

    /* App accent palette (AppGradients) */
    --neon-purple: #8b5cf6;
    --neon-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --neon-pink: #d946ef;
    --neon-magenta: #d946ef;

    /* primary: purple → blue → cyan */
    --gradient-main: linear-gradient(135deg, var(--neon-purple), var(--neon-blue), var(--neon-cyan));
    /* accent: pink → purple → blue */
    --gradient-accent: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
    --gradient-soft: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(59,130,246,0.10), rgba(6,182,212,0.08));

    /* Glass shine: specular top edge */
    --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 40px rgba(179, 136, 255, 0.04);
    --glow-purple: 0 4px 16px rgba(139, 92, 246, 0.22);

    /* Corner radii (app: card 24, input 18, badge 10) */
    --radius: 24px;
    --radius-sm: 14px;
    --radius-xs: 10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-bottom);
    background-image: linear-gradient(180deg, var(--bg-top) 0%, #140a2e 45%, var(--bg-bottom) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Ambient background ───────────── */
.bg-ambient {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
}
.bg-ambient::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    animation: drift1 25s ease-in-out infinite;
}
.bg-ambient::after {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    bottom: -100px; right: -200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    animation: drift2 30s ease-in-out infinite;
}
@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(120px, 80px); }
}
@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, -60px); }
}

/* ── Navigation ───────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(32px) saturate(1.5);
    -webkit-backdrop-filter: blur(32px) saturate(1.5);
    background: rgba(26, 5, 51, 0.45);
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; color: var(--text-primary);
}
.nav-brand img {
    width: 38px; height: 38px; border-radius: 10px;
}
.nav-brand span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 1.3rem;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex; align-items: center; gap: 8px;
}
.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500; font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.3s;
    cursor: pointer;
    border: none; background: none;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.10);
}
.nav-link.active {
    background: rgba(139, 92, 246, 0.16);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Language toggle ──────────────── */
.lang-toggle {
    display: flex; align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    margin-left: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.lang-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600; font-size: 0.75rem;
    padding: 5px 14px;
    border-radius: 999px;
    border: none; cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lang-btn.active {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
}

/* ── Mobile menu ──────────────────── */
.mobile-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-secondary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Main content ─────────────────── */
main {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    padding: 120px 32px 80px;
}

.fade-in {
    animation: fadeUp 0.5s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero ──────────────────────────── */
.hero {
    text-align: center;
    padding: 60px 0 80px;
}
.hero-logo {
    width: 100px; height: 100px;
    border-radius: 24px;
    margin-bottom: 32px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3),
                0 0 80px rgba(217, 70, 239, 0.1);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* ── Section headings ─────────────── */
.section-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-accent);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 20px;
}

/* ── Glass surface base ───────────── */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    box-shadow: var(--glass-shine), var(--glow-purple);
}

/* ── Store badges (App Store / Google Play) ── */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 12px 26px 12px 20px;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    box-shadow: var(--glass-shine), var(--glow-purple);
    color: var(--text-primary);
    text-decoration: none;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.store-btn:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: var(--glass-shine), 0 10px 36px rgba(139, 92, 246, 0.35);
}
.store-btn svg {
    width: 30px; height: 30px;
    flex-shrink: 0;
}
.store-btn .store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.store-btn .store-btn-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.store-btn .store-btn-store {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}
.store-btn.soon {
    cursor: default;
    pointer-events: none;
}
.store-btn .store-soon-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gradient-accent);
    color: #fff;
    margin-left: 6px;
    align-self: center;
}

/* ── Footer ───────────────────────── */
footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    background: rgba(26, 5, 51, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 40px 32px;
    text-align: center;
}
footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}
footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover { color: var(--neon-cyan); }

/* ── Loading skeleton ─────────────── */
.skeleton {
    opacity: 0.4;
    text-align: center;
    padding: 60px 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
}

/* ── Responsive (global) ──────────── */
@media (max-width: 768px) {
    .nav-inner { padding: 0 20px; }
    main { padding: 100px 20px 60px; }
    .hero { padding: 30px 0 50px; }
    .hero-logo { width: 76px; height: 76px; border-radius: 18px; }

    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: rgba(26, 5, 51, 0.92);
        backdrop-filter: blur(32px) saturate(1.5);
        -webkit-backdrop-filter: blur(32px) saturate(1.5);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.35s, visibility 0.35s, opacity 0.35s;
        gap: 4px;
        z-index: 99;
    }
    .nav-links.open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
    .nav-link { width: 100%; text-align: center; padding: 12px; }
    .lang-toggle { margin: 8px auto 0; }

    .store-buttons { flex-direction: column; align-items: center; }
    .store-btn { width: 100%; max-width: 320px; justify-content: center; }
}
