/* ============================================
   HexaLien — Landing Page
   Palette: Twitch Purple (#9146FF)
   ============================================ */

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

:root {
    --primary: #9146ff;
    --primary-dark: #7b2fff;
    --primary-light: #c3a0ff;
    --primary-pale: #f0e8ff;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --rose: #f43f5e;
    --cyan: #06b6d4;
    --gray-50: #f8fafc; --gray-100: #f1f5f9; --gray-200: #e2e8f0;
    --gray-300: #cbd5e1; --gray-400: #94a3b8; --gray-500: #64748b;
    --gray-600: #475569; --gray-700: #334155; --gray-800: #1e293b;
    --gray-900: #0f172a; --gray-950: #020617;
    --radius-sm: 6px; --radius: 10px; --radius-lg: 16px;
    --radius-xl: 24px; --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
}

.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: .8rem 1.5rem; border-radius: 0 0 12px 12px; font-weight: 600; z-index: 10000; transition: top .2s; text-decoration: none; }
.skip-link:focus { top: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--gray-700); background: #fff; line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
code { font-family: 'Courier New', monospace; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; color: var(--primary-dark); }

/* === Navigation === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all .3s; background: transparent; }
.navbar.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--gray-200); padding: 10px 0; box-shadow: var(--shadow-sm); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; color: #fff; transition: color .3s; }
.navbar.scrolled .nav-logo { color: var(--gray-800); }
.nav-logo-img { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { text-decoration: none; font-size: .88rem; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-full); transition: all .2s; color: rgba(255,255,255,.85); min-height: 44px; display: inline-flex; align-items: center; }
.navbar.scrolled .nav-links a { color: var(--gray-600); }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.15); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); background: var(--primary-pale); }
.nav-cta { background: rgba(255,255,255,.2) !important; border: 1px solid rgba(255,255,255,.3) !important; }
.navbar.scrolled .nav-cta { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; min-height: 44px; min-width: 44px; justify-content: center; align-items: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.navbar.scrolled .nav-toggle span { background: var(--gray-700); }

/* === Hero === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 60px; padding: 100px 24px 60px; overflow: hidden; max-width: 1200px; margin: 0 auto; }
.hero-bg { position: fixed; top: 0; left: 0; right: 0; height: 100vh; z-index: -1; overflow: hidden; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(135deg, #9146ff 0%, #7b2fff 40%, #c3a0ff 80%, #f0e8ff 100%); }
.hero-particles { position: absolute; inset: 0; }
.particle { position: absolute; bottom: -10px; border-radius: 50%; opacity: .4; animation: float-particle linear infinite; }
@keyframes float-particle { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .4; } 90% { opacity: .4; } 100% { transform: translateY(-100vh) translateX(40px); opacity: 0; } }
.hero-content { flex: 1; max-width: 560px; z-index: 1; }
.hero-logo-wrapper { margin-bottom: 20px; }
.hero-logo { width: 80px; height: 80px; border-radius: var(--radius-lg); object-fit: cover; box-shadow: 0 4px 20px rgba(0,0,0,.15); border: 3px solid rgba(255,255,255,.5); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-full); font-size: .82rem; font-weight: 500; color: #fff; margin-bottom: 20px; backdrop-filter: blur(8px); }
.badge-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.3); } }
.hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.gradient-text { background: linear-gradient(270deg, #fff 0%, #c3a0ff 35%, #fff 65%, #e8d5ff 100%); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradient-shift 5s ease infinite; }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.9); line-height: 1.7; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; align-items: center; gap: 20px; }
.stat-number { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.8); }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; border-radius: var(--radius); padding: 10px 20px; transition: all .25s; cursor: pointer; border: none; min-height: 44px; }
.btn-lg { padding: 12px 24px; font-size: .95rem; }
.btn-primary { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--gray-50); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.btn-white:hover { background: var(--gray-50); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-dark { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--gray-300); border-radius: var(--radius); font-weight: 600; font-size: .9rem; color: var(--gray-700); text-decoration: none; transition: all .2s; min-height: 44px; }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.btn-download { font-size: 1rem; padding: 16px 32px; }
.btn-donate { background: var(--primary); color: #fff; font-size: 1rem; padding: 16px 32px; display: inline-flex; align-items: center; gap: 10px; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: all .2s; }
.btn-donate:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(145,70,255,.4); }

/* Hero Mockup */
.hero-mockup { flex: 1; max-width: 420px; z-index: 1; }
.mockup-window { background: var(--gray-900); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 100px rgba(145,70,255,.2); overflow: hidden; border: 1px solid var(--gray-700); }
.window-header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--gray-800); border-bottom: 1px solid var(--gray-700); }
.window-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #f59e0b; } .dot.green { background: #10b981; }
.window-title { font-size: .75rem; color: var(--gray-400); font-weight: 500; }
.window-content { padding: 0; }
.app-tabs { display: flex; border-bottom: 1px solid var(--gray-700); }
.app-tab { padding: 10px 20px; font-size: .82rem; font-weight: 500; color: var(--gray-400); cursor: default; transition: all .2s; }
.app-tab.active { color: var(--primary-light); border-bottom: 2px solid var(--primary); margin-bottom: -1px; }
.app-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.app-status { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); font-size: .8rem; font-weight: 500; }
.app-status.success { background: rgba(16,185,129,.15); color: #10b981; border: 1px solid rgba(16,185,129,.3); }
.token-display { background: var(--gray-800); border: 1px solid var(--gray-600); border-radius: var(--radius); padding: 12px; }
.token-label { font-size: .72rem; color: var(--gray-400); margin-bottom: 6px; }
.token-value { font-family: 'Courier New', monospace; font-size: .78rem; color: var(--primary-light); margin-bottom: 8px; }
.token-copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--primary); color: #fff; border: none; border-radius: 4px; font-size: .72rem; font-weight: 600; cursor: pointer; }
.app-info { display: flex; flex-direction: column; gap: 6px; }
.info-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--gray-400); }
.info-dot { width: 6px; height: 6px; border-radius: 50%; }
.info-dot.green { background: #10b981; }
.app-btn-main { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.app-btn-main:hover { background: var(--primary-dark); }

/* === Sections === */
.section { padding: 70px 0; }
.section:nth-child(odd) { background: #fff; }
.section:nth-child(even) { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge { display: inline-block; padding: 4px 14px; background: var(--primary-pale); color: var(--primary); font-size: .78rem; font-weight: 600; border-radius: var(--radius-full); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.red-badge { background: #fef2f2; color: var(--danger); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--gray-800); line-height: 1.2; margin-bottom: 12px; }
.section-title.left-align { text-align: left; }
.section-subtitle { font-size: 1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* Pain points */
.pain-points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.pain-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); transition: transform .3s, box-shadow .3s; }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pain-icon { margin-bottom: 16px; }
.pain-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; font-style: italic; }
.pain-card p { font-size: .88rem; color: var(--gray-500); line-height: 1.6; }
.solution-bridge { text-align: center; }
.bridge-arrow { margin-bottom: 12px; animation: bounce-arrow 2s ease-in-out infinite; }
@keyframes bounce-arrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.bridge-text { font-size: 1.05rem; font-weight: 600; color: var(--primary); }

/* How it works */
.value-grid { display: flex; align-items: center; justify-content: center; gap: 16px; }
.value-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); flex: 1; max-width: 300px; text-align: center; transition: transform .3s; }
.value-card:hover { transform: translateY(-4px); }
.value-number { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin: 0 auto 16px; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.value-card p { font-size: .85rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }
.value-time { font-size: .78rem; font-weight: 600; color: var(--primary); background: var(--primary-pale); padding: 4px 10px; border-radius: var(--radius-full); }
.value-connector { color: var(--gray-300); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); transition: transform .3s, box-shadow .3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon.purple { background: var(--primary-pale); color: var(--primary); }
.feature-icon.green { background: #ecfdf5; color: var(--success); }
.feature-icon.blue { background: #eff6ff; color: #3b82f6; }
.feature-icon.twitch { background: var(--primary-pale); color: var(--primary); }
.feature-icon.cyan { background: #ecfeff; color: var(--cyan); }
.feature-icon.amber { background: #fffbeb; color: var(--accent); }
.feature-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.feature-desc { font-size: .85rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }
.feature-benefit { font-size: .78rem; font-weight: 600; color: var(--primary); background: var(--primary-pale); padding: 4px 10px; border-radius: var(--radius-full); }

/* Security */
.security-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.security-desc { font-size: .95rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }
.security-items { display: flex; flex-direction: column; gap: 16px; }
.security-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); transition: transform .2s; }
.security-item:hover { transform: translateX(4px); }
.security-item-icon { flex-shrink: 0; width: 40px; height: 40px; background: var(--primary-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.security-item h4 { font-size: .9rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.security-item p { font-size: .82rem; color: var(--gray-500); line-height: 1.5; }
.security-visual { display: flex; justify-content: center; }
.shield-container { text-align: center; }
.shield { position: relative; display: inline-flex; margin-bottom: 24px; }
.shield-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 180px; height: 180px; background: radial-gradient(circle, rgba(145,70,255,.2) 0%, transparent 70%); border-radius: 50%; animation: shield-pulse 3s ease-in-out infinite; }
@keyframes shield-pulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: .6; } 50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } }
.shield-check { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.security-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sec-badge { padding: 4px 12px; background: var(--primary-pale); color: var(--primary); font-size: .72rem; font-weight: 600; border-radius: var(--radius-full); }

/* Download CTA */
.download-section { background: var(--gray-50); }
.cta-card { position: relative; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius-xl); padding: 60px 40px; text-align: center; overflow: hidden; }
.cta-bg-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(255,255,255,.06) 0%, transparent 40%); }
.cta-content { position: relative; z-index: 1; }
.download-icon { margin-bottom: 20px; }
.download-app-icon { width: 72px; height: 72px; border-radius: var(--radius-lg); border: 3px solid rgba(255,255,255,.4); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.cta-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-desc { font-size: 1rem; color: rgba(255,255,255,.9); margin-bottom: 28px; }
.cta-buttons-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.cta-version { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.cta-guarantees { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.cta-guarantees span { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: rgba(255,255,255,.85); }
.cta-hint { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 16px; }
.store-link { color: rgba(255,255,255,.9); text-decoration: underline; }
.store-link:hover { color: #fff; }
.iarc-trust { margin-top: 20px; }
.iarc-badge-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 16px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-full); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.9); backdrop-filter: blur(8px); }

/* Revoke */
.revoke-card { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow); flex-wrap: wrap; }
.revoke-icon { flex-shrink: 0; width: 56px; height: 56px; background: var(--primary-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.revoke-text { flex: 1; min-width: 200px; }
.revoke-text h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
.revoke-text p { font-size: .88rem; color: var(--gray-500); line-height: 1.6; }

/* About */
.about-content-simple { max-width: 750px; margin: 0 auto; background: #fff; padding: 36px 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; }
.about-content-simple p { margin-bottom: 16px; line-height: 1.8; color: var(--gray-600); font-size: .95rem; }
.about-content-simple p:last-child { margin-bottom: 0; }
.developer-links { display: flex; gap: 16px; margin-top: 24px; justify-content: center; flex-wrap: wrap; }
.dev-link { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: .85rem; font-weight: 500; color: var(--gray-700); text-decoration: none; transition: all .2s; min-height: 44px; }
.dev-link:hover { background: var(--primary-pale); border-color: var(--primary-light); color: var(--primary); }

/* Footer */
.footer { background: var(--gray-950); padding: 40px 0 24px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.footer-name { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-info p { font-size: .82rem; color: var(--gray-400); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: var(--gray-400); text-decoration: none; transition: color .2s; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid var(--gray-800); padding-top: 20px; }
.footer-bottom p { font-size: .78rem; color: var(--gray-600); }
.footer-portfolio-link { color: var(--primary-light); text-decoration: none; }
.footer-portfolio-link:hover { color: #fff; }

/* Legal Modal */
.legal-link, #openLegalModal { color: var(--gray-400); text-decoration: none; cursor: pointer; }
.legal-link:hover, #openLegalModal:hover { color: var(--primary-light); }
.legal-modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.legal-modal-overlay.active { opacity: 1; visibility: visible; }
.legal-modal { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); max-width: 560px; width: 90%; max-height: 80vh; overflow-y: auto; transform: scale(.95) translateY(10px); transition: transform .3s; box-shadow: 0 25px 50px rgba(0,0,0,.15); }
.legal-modal-overlay.active .legal-modal { transform: scale(1) translateY(0); }
.legal-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.legal-modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }
.legal-modal-close { background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 4px; border-radius: 6px; transition: color .2s, background .2s; min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }
.legal-modal-close:hover { color: var(--gray-800); background: var(--gray-100); }
.legal-modal-body { padding: 24px; }
.legal-modal-body p { font-size: .88rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 12px; }
.legal-modal-body strong { color: var(--primary-dark); font-weight: 600; display: block; margin-top: 8px; margin-bottom: 4px; font-size: .9rem; }

/* Floating CTA */
.floating-cta { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.floating-button { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: 50%; text-decoration: none; box-shadow: 0 4px 15px rgba(145,70,255,.4); transition: all .3s; animation: pulse-float 2s infinite; }
.floating-button:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(145,70,255,.6); }
@keyframes pulse-float { 0%, 100% { box-shadow: 0 4px 15px rgba(145,70,255,.4); } 50% { box-shadow: 0 4px 25px rgba(145,70,255,.7); } }

/* === Scroll-reveal animations === */
.feature-card, .pain-card, .value-card, .security-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s;
}
.feature-card.animate-in, .pain-card.animate-in, .value-card.animate-in, .security-item.animate-in { opacity: 1; transform: translateY(0); }
.features-grid .feature-card:nth-child(2) { transition-delay: .09s; }
.features-grid .feature-card:nth-child(3) { transition-delay: .18s; }
.features-grid .feature-card:nth-child(4) { transition-delay: .09s; }
.features-grid .feature-card:nth-child(5) { transition-delay: .18s; }
.features-grid .feature-card:nth-child(6) { transition-delay: .27s; }
.pain-points-grid .pain-card:nth-child(2) { transition-delay: .1s; }
.pain-points-grid .pain-card:nth-child(3) { transition-delay: .2s; }
.security-items .security-item:nth-child(2) { transition-delay: .1s; }
.security-items .security-item:nth-child(3) { transition-delay: .2s; }
.security-items .security-item:nth-child(4) { transition-delay: .3s; }

/* === Card hover — glow border === */
.feature-card:hover { border-color: var(--primary-light); box-shadow: 0 8px 30px rgba(145,70,255,.13); }
.pain-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); }

/* === Hero primary CTA — pulsing glow === */
.hero-actions .btn-primary { animation: btn-glow 2.8s ease-in-out infinite; }
@keyframes btn-glow { 0%, 100% { box-shadow: 0 4px 16px rgba(255,255,255,.15); } 50% { box-shadow: 0 4px 32px rgba(255,255,255,.5), 0 0 0 5px rgba(255,255,255,.07); } }

/* === Compatible avec === */
.hero-compat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.compat-label { font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
.compat-list { display: flex; gap: 7px; flex-wrap: wrap; }
.compat-chip { font-size: .73rem; font-weight: 500; color: rgba(255,255,255,.8); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 3px 10px; border-radius: var(--radius-full); backdrop-filter: blur(4px); transition: background .2s, color .2s; }
.compat-chip:hover { background: rgba(255,255,255,.2); color: #fff; }

/* === Floating CTA — show after hero === */
.floating-cta { transition: opacity .35s ease, transform .35s ease; }
.floating-cta.hidden { opacity: 0; pointer-events: none; transform: scale(.7) translateY(12px); }

/* Focus & Accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(145,70,255,.5); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    html { scroll-behavior: auto; }
    .particle { display: none; }
    .floating-button { animation: none; }
    .badge-dot { animation: none; }
    .bridge-arrow { animation: none; }
    .shield-glow { animation: none; }
    .gradient-text { animation: none; background-position: 0% 50%; }
    .hero-actions .btn-primary { animation: none; }
    .feature-card, .pain-card, .value-card, .security-item { opacity: 1 !important; transform: none !important; transition: box-shadow .2s, border-color .2s !important; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; gap: 40px; padding-top: 120px; }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-mockup { max-width: 400px; }
    .security-grid { grid-template-columns: 1fr; }
    .security-visual { order: -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links a { color: var(--gray-700) !important; padding: 12px 16px; }
    .nav-toggle { display: flex; }
    .pain-points-grid, .features-grid { grid-template-columns: 1fr; }
    .value-grid { flex-direction: column; }
    .value-connector { transform: rotate(90deg); }
    .value-card { max-width: 100%; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .cta-buttons-row { flex-direction: column; align-items: center; }
    .hero-mockup { max-width: 100%; }
    .revoke-card { flex-direction: column; text-align: center; }
    .about-content-simple { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-divider { width: 40px; height: 1px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.4rem; }
    .hero-logo { width: 60px; height: 60px; }
}
