/* MagicVault — Web promocional */
:root {
    --magia: #3A0C6C;
    --magia-mid: #5A1A9E;
    --magia-light: #7B2FBE;
    --magia-glow: #BA8AE8;
    --magia-soft: rgba(186, 138, 232, 0.15);
    --gold: #F5C842;
    --gold-dark: #D4A017;
    --black: #050010;
    --black-soft: #0D0018;
    --surface: rgba(58, 12, 108, 0.25);
    --surface-border: rgba(186, 138, 232, 0.2);
    --text: #F0E6FF;
    --text-muted: rgba(240, 230, 255, 0.65);
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 0 60px rgba(123, 47, 190, 0.4);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--magia-glow); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

/* Background effects */
.sparkle-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: sparkleFloat linear infinite;
    box-shadow: 0 0 6px var(--gold);
}

@keyframes sparkleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1.5); }
}

.aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(58, 12, 108, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(123, 47, 190, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 50% 100%, rgba(58, 12, 108, 0.4) 0%, transparent 50%);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
    background: rgba(5, 0, 16, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
}

.nav-logo {
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(123, 47, 190, 0.5);
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: var(--magia-soft);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

.btn-magia {
    background: linear-gradient(135deg, var(--magia-light), var(--magia));
    color: white;
    box-shadow: 0 4px 24px rgba(123, 47, 190, 0.4);
}

.btn-magia:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(123, 47, 190, 0.6);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 4px 20px rgba(245, 200, 66, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 200, 66, 0.5);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--surface-border);
}

.btn-outline:hover {
    border-color: var(--magia-glow);
    background: var(--magia-soft);
    color: var(--text);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-gold {
    background: rgba(245, 200, 66, 0.15);
    color: var(--gold);
    border: 1px solid rgba(245, 200, 66, 0.3);
}

.badge-magia {
    background: var(--magia-soft);
    color: var(--magia-glow);
    border: 1px solid var(--surface-border);
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem;
}

.site-header.has-lang-intro ~ main .hero,
.site-header.has-lang-intro ~ main .page-hero {
    padding-top: 9rem;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 1.25rem 0;
    letter-spacing: 0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--magia-glow), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
}

.hero-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--gold);
}

.hero-stats li {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.phone-frame {
    position: relative;
    width: 280px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    border: 2px solid rgba(186, 138, 232, 0.3);
    box-shadow: var(--shadow-glow), 0 40px 80px rgba(0, 0, 0, 0.6);
}

.phone-frame-sm { width: 240px; }

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #111;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-frame:has(.phone-screen) .phone-notch {
    display: none;
}

.phone-frame img,
.phone-screen {
    width: 100%;
    border-radius: 28px;
    display: block;
}

.phone-frame .app-screen {
    width: 100%;
    min-height: 520px;
    border-radius: 28px;
    display: block;
    overflow: hidden;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'DM Sans', sans-serif;
    color: #1c1c1e;
    text-align: left;
}

.showcase-phone .app-screen {
    min-height: 480px;
    border-radius: 24px;
}

/* App screen mockups (English UI) */
.app-screen-list { padding: 0.75rem 0.65rem 1rem; font-size: 0.62rem; }
.app-segment { display: flex; background: #eceaf3; border-radius: 999px; padding: 3px; margin-bottom: 0.55rem; }
.app-segment span { flex: 1; text-align: center; padding: 0.35rem 0.4rem; border-radius: 999px; color: #666; font-weight: 600; }
.app-segment .is-active { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.app-search { background: #f2f0f8; border-radius: 10px; padding: 0.45rem 0.55rem; color: #888; margin-bottom: 0.55rem; }
.app-rows { list-style: none; display: grid; gap: 0.55rem; }
.app-rows li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.45rem; align-items: start; padding-bottom: 0.45rem; border-bottom: 1px solid #eee; }
.app-rows strong { display: block; font-size: 0.72rem; line-height: 1.2; }
.app-rows em { display: block; color: #7b2fbe; font-style: normal; font-size: 0.58rem; margin-top: 0.1rem; }
.app-rows small { display: block; color: #888; font-size: 0.55rem; margin-top: 0.15rem; line-height: 1.3; }
.app-badge { width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.62rem; }
.app-badge.orange { background: #f59e0b; }
.app-badge.green { background: #22c55e; }
.app-meta { color: #aaa; font-size: 0.55rem; white-space: nowrap; }
.app-meta .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #333; margin-right: 2px; vertical-align: middle; }
.app-meta .dot.red { background: #ef4444; }

.app-screen-detail { padding: 0.55rem 0.65rem; font-size: 0.58rem; background: #faf8ff; }
.app-fields { list-style: none; display: grid; gap: 0.35rem; }
.app-fields li { display: grid; grid-template-columns: 1.1rem 1fr auto; gap: 0.35rem; align-items: center; background: rgba(255,255,255,.85); border-radius: 8px; padding: 0.35rem 0.4rem; }
.app-fields b { font-weight: 600; color: #444; }
.app-fields span.muted { color: #bbb; }
.app-fields .meter { font-weight: 700; }
.app-fields .meter.green { color: #16a34a; }
.app-fields .meter.red { color: #dc2626; }
.app-section-title { margin-top: 0.65rem; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; color: #666; }

.app-screen-sets { font-size: 0.62rem; }
.app-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0.55rem 0.65rem; border-bottom: 1px solid #eee; }
.app-toolbar strong { text-align: center; font-size: 0.85rem; }
.app-btn.ghost { color: #7b2fbe; font-weight: 600; }
.app-btn.round { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #f3eefb; color: #7b2fbe; display: grid; place-items: center; font-size: 1rem; line-height: 1; }
.app-set-card { padding: 0.75rem 0.65rem; border-bottom: 1px solid #eee; }
.app-set-card strong { display: block; font-size: 0.78rem; margin-bottom: 0.25rem; }
.app-set-card p { display: flex; gap: 0.55rem; color: #888; font-size: 0.58rem; flex-wrap: wrap; }

.app-screen-ia { background: #fff; }
.app-ia-header { height: 2.2rem; background: linear-gradient(135deg, #3a0c6c, #5a1a9e); border-radius: 0 0 12px 12px; }
.app-ia-body { padding: 0.85rem 0.65rem; text-align: center; }
.app-ia-icon { font-size: 1.4rem; margin-bottom: 0.25rem; }
.app-ia-body h3 { font-size: 0.85rem; margin-bottom: 0.15rem; }
.app-ia-lead { color: #888; font-size: 0.58rem; margin-bottom: 0.65rem; }
.app-ia-card { display: grid; grid-template-columns: auto 1fr auto; gap: 0.45rem; align-items: center; text-align: left; background: #faf8ff; border-radius: 12px; padding: 0.55rem; margin-bottom: 0.45rem; border: 1px solid #ece6f8; }
.app-ia-card strong { display: block; font-size: 0.68rem; }
.app-ia-card small { display: block; color: #888; font-size: 0.52rem; line-height: 1.25; margin-top: 0.1rem; }
.app-ia-ico { width: 1.6rem; height: 1.6rem; border-radius: 8px; background: #efe6fb; display: grid; place-items: center; font-size: 0.85rem; }
.app-ia-card .chev { color: #bbb; font-size: 1rem; }

.app-screen-config { font-size: 0.58rem; }
.app-config-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0.55rem 0.65rem; background: linear-gradient(135deg, #3a0c6c, #5a1a9e); color: #fff; }
.app-config-header strong { text-align: center; font-size: 0.75rem; }
.app-config-body { padding: 0.55rem 0.65rem; background: #fff; }
.app-config-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.06em; color: #888; margin: 0.35rem 0 0.25rem; text-transform: uppercase; }
.app-config-item { display: grid; grid-template-columns: auto 1fr auto; gap: 0.45rem; align-items: start; padding: 0.45rem 0; border-bottom: 1px solid #f0f0f0; }
.app-config-item strong { display: block; font-size: 0.65rem; }
.app-config-item small { display: block; color: #888; font-size: 0.52rem; line-height: 1.3; margin-top: 0.1rem; }
.app-config-item .swatch { width: 1.2rem; height: 1.2rem; border-radius: 4px; background: #7b2fbe; margin-top: 0.1rem; }
.app-config-item .swatch.outline { background: transparent; border: 2px solid #7b2fbe; }
.app-config-item .ico { font-size: 0.9rem; }
.app-config-item .check { color: #22c55e; font-weight: 700; }

.phone-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(123, 47, 190, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(13, 0, 24, 0.9);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    font-size: 0.85rem;
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.floating-card-1 { top: 10%; right: -10%; animation-delay: 0s; }
.floating-card-2 { bottom: 15%; left: -15%; animation-delay: -3s; }

.fc-icon { font-size: 1.5rem; }
.floating-card strong { display: block; color: var(--text); }
.floating-card small { color: var(--text-muted); }

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--magia-glow), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 30px; }
    50% { opacity: 1; height: 50px; }
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
}

.section-dark {
    background: linear-gradient(180deg, transparent, rgba(58, 12, 108, 0.15) 50%, transparent);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.feature-card {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--magia-glow);
    box-shadow: 0 12px 40px rgba(58, 12, 108, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Showcase carousel */
.section-showcase {
    overflow: hidden;
}

.showcase-carousel {
    position: relative;
}

.showcase-viewport {
    overflow: hidden;
    width: 100%;
    --showcase-pad: calc((100% - min(320px, 80vw)) / 2);
}

.showcase-track {
    display: flex;
    gap: 3rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding-inline: var(--showcase-pad);
}

.showcase-slide {
    flex: 0 0 min(320px, 80vw);
    text-align: center;
}

.showcase-phone {
    background: #111;
    border-radius: 32px;
    padding: 10px;
    border: 2px solid var(--surface-border);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.showcase-phone img {
    border-radius: 24px;
    width: 100%;
}

.showcase-slide figcaption h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.showcase-slide figcaption p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.showcase-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.showcase-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
}

.showcase-btn:hover {
    border-color: var(--magia-glow);
    background: var(--magia-soft);
}

.showcase-dots {
    display: flex;
    gap: 0.5rem;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface-border);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.showcase-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* CTA box */
.section-cta { padding-bottom: 8rem; }

.cta-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(58, 12, 108, 0.6), rgba(13, 0, 24, 0.9));
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cta-icon {
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 40px rgba(123, 47, 190, 0.5);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.cta-sparkles {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
    letter-spacing: 1rem;
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    z-index: 1;
    padding: 10rem 0 4rem;
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 1rem 0;
}

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

/* Function blocks */
.func-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}

.func-block-reverse .func-text { order: 2; }
.func-block-reverse .func-visual { order: 1; }

.func-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.func-text h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.func-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.func-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.func-list li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.func-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.75rem;
}

.func-visual {
    display: flex;
    justify-content: center;
}

.func-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--surface-border), transparent);
    margin: 1rem 0;
}

/* Extras grid */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.extra-item span { font-size: 1.25rem; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card-featured {
    background: linear-gradient(180deg, rgba(58, 12, 108, 0.5), rgba(13, 0, 24, 0.8));
    border-color: var(--magia-glow);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}

.pricing-card-featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--black);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.pricing-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.pricing-limit {
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 600;
    margin: 0.5rem 0;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-border);
}

.pricing-features {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.pricing-features li.no { color: var(--text-muted); opacity: 0.5; }

.pf-check {
    width: 20px;
    text-align: center;
    font-weight: 700;
}

.pricing-features li.ok .pf-check { color: #4ADE80; }
.pricing-features li.no .pf-check { color: var(--text-muted); }

/* Compare table */
.compare-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--surface-border);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
}

.compare-table thead th {
    background: rgba(58, 12, 108, 0.4);
    font-family: var(--font-display);
    font-weight: 600;
}

.compare-table .col-premium {
    background: rgba(123, 47, 190, 0.15);
    color: var(--gold);
    font-weight: 600;
}

.compare-table tbody tr:hover {
    background: var(--magia-soft);
}

/* Trial box */
.trial-box {
    position: relative;
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.trial-box h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.trial-box p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.trial-note {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 2rem !important;
}

.trial-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 47, 190, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--surface-border);
    background: rgba(5, 0, 16, 0.8);
}

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

.footer-logo {
    border-radius: 14px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.footer-links a,
.footer-links li {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--text); }

.footer-cta h4 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
}

.footer-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.footer-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(186, 138, 232, 0.25);
    background: rgba(58, 12, 108, 0.22);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-platform-icon {
    display: block;
    opacity: 0.92;
    filter: brightness(1.15);
}

.footer-cta p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--surface-border);
    background: rgba(13, 0, 24, 0.8);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--magia-glow);
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(58, 12, 108, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Reveal animations — only hide when JS is available */
.reveal {
    opacity: 1;
    transform: none;
}

html.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid,
    .func-block,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual { order: -1; }
    .hero-grid { gap: 2rem; }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .func-block-reverse .func-text,
    .func-block-reverse .func-visual { order: unset; }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-sparkles { display: none; }

    .floating-card { display: none; }

    .pricing-card-featured { transform: none; }
    .pricing-card-featured:hover { transform: translateY(-4px); }
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        background: rgba(5, 0, 16, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--surface-border);
        transition: right var(--transition);
    }

    .nav-links.open { right: 0; }

    .nav-link { padding: 0.875rem 1rem; }

    .lang-intro-bar {
        padding: 0 0 0.5rem;
    }

    .lang-intro-inner {
        justify-content: flex-start;
    }

    .lang-intro-flags {
        justify-content: flex-start;
        gap: 0.25rem;
        padding: 0.3rem 0.4rem;
    }

    .hero-stats { gap: 1.5rem; }

    .extras-grid { grid-template-columns: 1fr; }

    .newsletter-form { flex-direction: column; }
}

/* Language picker — matches app settings UI */
.site-header.has-lang-intro {
    padding-bottom: 0.25rem;
}

.lang-intro-bar {
    padding: 0 0 0.6rem;
}

.lang-intro-inner {
    display: flex;
    justify-content: flex-start;
}

.lang-intro-flags {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: linear-gradient(135deg, rgba(58, 12, 108, 0.92), rgba(90, 26, 158, 0.88));
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(58, 12, 108, 0.35);
    overflow-x: auto;
    scrollbar-width: none;
}

.lang-intro-flags::-webkit-scrollbar {
    display: none;
}

.lang-intro-flag {
    display: flex;
    flex: 0 0 auto;
    padding: 1px;
    border-radius: 5px;
    border: 1.5px solid transparent;
    transition: border-color var(--transition), transform var(--transition);
    line-height: 0;
}

.lang-intro-flag:hover {
    transform: translateY(-1px);
}

.lang-intro-flag.is-active {
    border-color: #34c759;
}

.lang-intro-flag img {
    width: 18px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    background: rgba(13, 0, 24, 0.6);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-lang-btn:hover {
    color: var(--text);
    border-color: var(--magia-glow);
    background: var(--magia-soft);
}

.nav-lang-flag {
    border-radius: 3px;
    object-fit: cover;
}

.lang-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(5, 0, 16, 0.75);
    backdrop-filter: blur(8px);
}

.lang-picker-overlay[hidden] {
    display: none;
}

.lang-picker-modal {
    position: relative;
    width: min(420px, 100%);
    padding: 2rem 1.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(58, 12, 108, 0.97), rgba(90, 26, 158, 0.95));
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), var(--shadow-glow);
    color: var(--text);
}

.lang-picker-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
}

.lang-picker-close:hover {
    background: var(--magia-soft);
    color: var(--text);
}

.lang-picker-title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1.5rem;
}

.lang-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 0.75rem;
    margin-bottom: 1.25rem;
}

.lang-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: color var(--transition);
}

.lang-picker-item:hover {
    color: var(--text);
}

.lang-picker-flag-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.lang-picker-flag {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-picker-item.is-active .lang-picker-flag-wrap {
    border-color: #34c759;
}

.lang-picker-item.is-active .lang-picker-name {
    color: var(--text);
    font-weight: 700;
}

.lang-picker-name {
    text-align: center;
    line-height: 1.2;
}

.lang-picker-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.footer-lang-list a.is-active-lang {
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 640px) {
    .nav-lang-btn span { display: none; }
    .lang-picker-grid { gap: 1rem 0.5rem; }
    .lang-picker-flag { width: 40px; height: 30px; }
}

main { position: relative; z-index: 1; }
