:root {
    --bg: #081329;
    --bg-2: #0d1d3a;
    --bg-3: #13294e;
    --gold: #f2bd45;
    --gold-light: #ffdf8a;
    --gold-grad: linear-gradient(135deg, #ffe18a 0%, #f2bd45 55%, #d79b27 100%);
    --accent: #203e70;
    --cyan: #f2bd45;
    --accent-grad: linear-gradient(135deg, #294b7e 0%, #152b4e 100%);
    --emerald: #10b981;
    --text: #e8edf6;
    --muted: #a6b3c8;
    --border: rgba(255, 255, 255, .12);
    --glass: rgba(255, 255, 255, .05);
    --radius: 20px;
    --shadow: 0 20px 50px rgba(0, 0, 0, .3);
    --nav-h: 82px;
    --heading: #fff;
    --gold-text: var(--gold-grad);
    --surface: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
    --surface-strong: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
    --nav-bg: rgba(8, 19, 41, .94);
    --nav-bg-mobile: rgba(8, 19, 41, .98);
    --nav-link: #e8edf6;
    --grid-line: rgba(255, 255, 255, .045);
    --chip-bg: rgba(255, 255, 255, .06);
    --input-bg: #0d1d3a;
    --icon-color: #ffdf8a;
    --tag-color: #ffdf8a;
    --float-card-bg: rgba(19, 41, 78, .94);
    --footer-bg: #050d1c;
    --portal-hero-bg: radial-gradient(ellipse 42% 58% at 88% 35%, rgba(51, 84, 133, .32), transparent 72%), linear-gradient(112deg, #081329 0%, #0d1d3a 54%, #172f55 100%);
    --portal-hero-text: #fff;
    --portal-subtitle: rgba(255, 255, 255, .86);
    --portal-ribbon-bg: #0d1d3a;
    --portal-ribbon-text: #fff;
    --portal-ribbon-muted: #c1ccdc;
    --portal-grid: rgba(255, 255, 255, .04);
    --portal-highlight: #ffdf8a;
    --portal-secondary-border: rgba(255, 255, 255, .58);
    --portal-secondary-hover: #fff;
    --portal-secondary-hover-text: #172f55;
    color-scheme: dark;
}

/* Light theme */
[data-theme="light"] {
    --bg: #fff;
    --bg-2: #f5f7fb;
    --bg-3: #fff;
    --gold: #bd8420;
    --gold-grad: linear-gradient(135deg, #ffe18a 0%, #f2bd45 55%, #d79b27 100%);
    --gold-text: linear-gradient(135deg, #bd8420 0%, #d79b27 55%, #986714 100%);
    --text: #34445f;
    --muted: #697a94;
    --heading: #172f55;
    --border: rgba(23, 47, 85, .14);
    --glass: rgba(255, 255, 255, .82);
    --shadow: 0 20px 45px rgba(23, 47, 85, .12);
    --surface: linear-gradient(180deg, #fff, #f8faff);
    --surface-strong: linear-gradient(180deg, #fff, #f4f7fc);
    --nav-bg: rgba(255, 255, 255, .96);
    --nav-bg-mobile: rgba(255, 255, 255, .99);
    --nav-link: #243d63;
    --grid-line: rgba(23, 47, 85, .055);
    --chip-bg: rgba(255, 255, 255, .88);
    --input-bg: #fff;
    --icon-color: #bd8420;
    --tag-color: #243d63;
    --float-card-bg: rgba(255, 255, 255, .96);
    --footer-bg: #f1f4f9;
    --portal-hero-bg: radial-gradient(ellipse 42% 58% at 88% 35%, rgba(246, 195, 73, .16), transparent 72%), linear-gradient(112deg, #fff 0%, #f8faff 58%, #eef3fa 100%);
    --portal-hero-text: #172f55;
    --portal-subtitle: #53647e;
    --portal-ribbon-bg: #f1f4f9;
    --portal-ribbon-text: #172f55;
    --portal-ribbon-muted: #53647e;
    --portal-grid: rgba(23, 47, 85, .045);
    --portal-highlight: #bd8420;
    --portal-secondary-border: rgba(23, 47, 85, .35);
    --portal-secondary-hover: #172f55;
    --portal-secondary-hover-text: #fff;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: "Plus Jakarta Sans", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; transition: background-color .4s, color .4s; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); letter-spacing: -.02em; }
a { text-decoration: none; }
::selection { background: var(--gold); color: #1a1205; }
section { padding: 110px 0; position: relative; }
.bg-light-blue { background: var(--bg-2); }
.text-muted { color: var(--muted) !important; }

.section-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 50px; background: rgba(226, 182, 89, .08); border: 1px solid rgba(226, 182, 89, .3); color: var(--tag-color); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.section-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.section-title { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 auto 60px; font-size: 1.05rem; }
.text-gold { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { transition: transform .3s, box-shadow .3s, background .3s, color .3s; }
.btn-brand { background: var(--gold-grad); color: #172f55; border: 0; border-radius: 50px; padding: 13px 30px; font-weight: 700; box-shadow: 0 8px 24px rgba(226, 182, 89, .25); }
.btn-brand:hover, .btn-brand:focus { color: #172f55; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(226, 182, 89, .45); }
.btn-green { background: var(--accent-grad); color: #fff; border: 0; border-radius: 50px; padding: 13px 30px; font-weight: 700; box-shadow: 0 8px 24px rgba(14, 33, 62, .25); }
.btn-green:hover, .btn-green:focus { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 33, 62, .4); }
.btn-ghost { border: 1px solid var(--border); color: var(--heading); border-radius: 50px; padding: 10px 24px; font-weight: 600; background: var(--chip-bg); }
.btn-ghost:hover { border-color: var(--gold); color: var(--tag-color); background: rgba(226, 182, 89, .1); }
.btn-light { background: #fff; color: #0b1226; border: 0; }
.btn-light:hover { background: var(--gold-light); color: #1a1205; transform: translateY(-3px); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; color: var(--heading); letter-spacing: -.02em; }
.logo img { width: 40px; height: 40px; transition: transform .6s; }
.logo:hover img { transform: rotate(360deg); }
.logo .hr { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: -4px; }

/* Navbar */
.navbar { height: var(--nav-h); transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.navbar .navbar-brand { color: var(--heading); padding: 0; }
.navbar .nav-link { color: var(--nav-link); font-weight: 500; margin: 0 8px; position: relative; font-size: .95rem; }
.navbar .nav-link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; border-radius: 2px; background: var(--gold-grad); transition: all .3s; transform: translateX(-50%); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 60%; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--heading); }
.navbar.scrolled { background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.navbar-toggler { border: 0; color: var(--heading); font-size: 1.7rem; }
.navbar-toggler:focus { box-shadow: none; }

/* Theme toggle */
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(226, 182, 89, .45); background: var(--chip-bg); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: transform .4s, background .3s, box-shadow .3s; flex-shrink: 0; }
.theme-toggle:hover { transform: rotate(25deg); background: var(--gold-grad); color: #1a1205; box-shadow: 0 6px 18px rgba(226, 182, 89, .4); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
@media (max-width: 991.98px) {
    .navbar { height: auto; background: var(--nav-bg-mobile); backdrop-filter: blur(16px); }
    .navbar-collapse { padding: 12px 0 18px; }
    .navbar .nav-link::after { display: none; }
}

/* Hero (full viewport) */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 20px) 0 60px; color: var(--text); overflow: hidden; display: flex; align-items: center;
    background:
        radial-gradient(ellipse 60% 50% at 80% 45%, rgba(99, 102, 241, .28), transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 90%, rgba(34, 211, 238, .12), transparent 70%),
        radial-gradient(ellipse 35% 30% at 20% 10%, rgba(226, 182, 89, .1), transparent 70%),
        var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: 1; }
.hero .container { position: relative; z-index: 3; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.1; }
.hero h1 .accent { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); max-width: 540px; font-size: 1.15rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--chip-bg); border: 1px solid var(--border); padding: 7px 18px 7px 8px; border-radius: 50px; font-size: .85rem; margin-bottom: 24px; color: var(--text); }
.hero-badge .dot { display: inline-block; padding: 3px 10px; border-radius: 50px; background: var(--gold-grad); color: #1a1205; font-weight: 700; font-size: .72rem; width: auto; height: auto; }
.hero-badge .dot::after { content: "NEW"; }
.hero-trust { font-size: .9rem; color: var(--muted); }
.hero-trust i { color: var(--gold); }

.data-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.data-line { position: absolute; top: 0; width: 1px; background: linear-gradient(to bottom, transparent, rgba(226, 182, 89, .7), transparent); animation: fall linear infinite; opacity: .35; }
@keyframes fall { 0% { transform: translateY(-100%); opacity: 0; } 10% { opacity: .5; } 100% { transform: translateY(100vh); opacity: 0; } }

.globe-area { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
.globe-wrap { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.globe-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, .45) 0%, rgba(34, 211, 238, .12) 50%, transparent 75%); animation: pulse-glow 3s ease-in-out infinite; }
.globe-svg { position: relative; z-index: 2; filter: drop-shadow(0 0 24px rgba(99, 102, 241, .6)); animation: float 5s ease-in-out infinite; }
.orbit { position: absolute; width: 340px; height: 74px; border: 1.5px solid rgba(226, 182, 89, .55); border-radius: 50%; top: 50%; left: 50%; box-shadow: 0 0 14px rgba(226, 182, 89, .25); animation: orbit-spin 10s linear infinite; }
.orbit::before { content: ""; position: absolute; width: 9px; height: 9px; top: -5px; left: 50%; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 12px 4px rgba(226, 182, 89, .8); }
.platform { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 1; }
.float-card { position: absolute; z-index: 3; background: var(--float-card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); color: var(--heading); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: float 4s ease-in-out infinite; }
.float-card i { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; background: var(--accent-grad); color: #fff; }
.float-card.c1 { top: 10%; left: 0; }
.float-card.c2 { top: 24%; right: -10px; animation-delay: 1s; }
.float-card.c2 i { background: var(--gold-grad); color: #1a1205; }
.float-card.c3 { bottom: 20%; left: 0; animation-delay: 2s; }
.float-card.c3 i { background: linear-gradient(135deg, #34d399, #059669); }

@keyframes pulse-glow { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes orbit-spin { from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0); } to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); } }

/* Counters */
.stats { margin-top: -70px; z-index: 5; padding: 0; }
.stats-box { background: var(--surface-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 36px 20px; }
.stat h3 { font-weight: 800; font-size: 2.4rem; margin: 0; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); margin: 0; font-size: .9rem; }
@media (min-width: 768px) { .stat + .stat { border-left: 1px solid var(--border); } }

/* Cards */
.feature-card, .module-card, .support-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; height: 100%; overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s; }
.feature-card::before, .module-card::before, .support-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(226, 182, 89, .7), transparent 40%, transparent 60%, rgba(99, 102, 241, .7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.feature-card:hover, .module-card:hover, .support-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(99, 102, 241, .12); border-color: transparent; }
.feature-card:hover::before, .module-card:hover::before, .support-card:hover::before { opacity: 1; }
.icon-box { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--icon-color); background: linear-gradient(135deg, rgba(226, 182, 89, .18), rgba(99, 102, 241, .18)); border: 1px solid rgba(226, 182, 89, .3); margin-bottom: 20px; transition: transform .35s, background .35s, color .35s; }
.feature-card:hover .icon-box, .module-card:hover .icon-box, .support-card:hover .icon-box { transform: rotate(-8deg) scale(1.08); background: var(--gold-grad); color: #1a1205; }
.icon-box.wa { color: #25d366; border-color: rgba(37, 211, 102, .4); background: rgba(37, 211, 102, .12); }
.feature-card h5, .module-card h5, .support-card h5 { font-weight: 700; }
.feature-card p, .module-card p, .support-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.module-card ul { padding-left: 0; list-style: none; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--border); font-size: .88rem; color: var(--muted); }
.module-card ul li { margin-bottom: 6px; }
.module-card ul li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--gold); margin-right: 8px; }

/* Mobile app */
.app-section { background: radial-gradient(ellipse 50% 60% at 20% 50%, rgba(99, 102, 241, .22), transparent 70%), radial-gradient(ellipse 40% 50% at 90% 50%, rgba(226, 182, 89, .1), transparent 70%), var(--bg); color: var(--text); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.app-section p { color: var(--muted); }
.app-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 30px; }
.app-meta span { background: var(--chip-bg); border: 1px solid var(--border); padding: 8px 14px; border-radius: 12px; font-size: .88rem; }
.app-meta i { color: var(--gold); }
.qr-card { background: var(--chip-bg); border: 1px solid rgba(226, 182, 89, .35); color: var(--heading); border-radius: 24px; padding: 24px; display: inline-block; text-align: center; box-shadow: var(--shadow), 0 0 40px rgba(226, 182, 89, .1); backdrop-filter: blur(12px); }
#qrcode { width: 196px; height: 196px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 8px; }
#qrcode img, #qrcode canvas { width: 180px !important; height: 180px !important; }
.phone { width: 240px; height: 480px; border-radius: 40px; background: #05080f; border: 8px solid #1b2440; margin: 0 auto; position: relative; box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(226, 182, 89, .3), 0 0 60px rgba(99, 102, 241, .25); overflow: hidden; animation: float 5s ease-in-out infinite; }
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 18px; border-radius: 10px; background: #05080f; z-index: 2; }
.phone-screen { position: absolute; inset: 0; background: linear-gradient(180deg, #0b1226, #101a36); padding: 40px 14px 14px; color: #e6e9f2; }
.phone-screen .ph-head { background: var(--gold-grad); color: #1a1205; border-radius: 14px; padding: 14px 12px; font-size: .75rem; margin-bottom: 12px; }
.phone-screen .ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone-screen .ph-grid div { background: rgba(255, 255, 255, .05); border: 1px solid var(--border); border-radius: 12px; padding: 12px 4px; text-align: center; font-size: .62rem; }
.phone-screen .ph-grid i { display: block; font-size: 1.15rem; margin-bottom: 2px; color: var(--cyan); }

/* Contact */
.contact-info { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--glass); transition: border-color .3s, transform .3s; }
.contact-info:hover { border-color: rgba(226, 182, 89, .4); transform: translateX(6px); }
.contact-info .icon-box { width: 48px; height: 48px; font-size: 1.2rem; margin: 0; flex-shrink: 0; }
.contact-info a.text-muted:hover { color: var(--tag-color) !important; }
.contact-form { background: var(--surface-strong); border: 1px solid var(--border); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.form-label { color: var(--text); font-size: .9rem; font-weight: 500; }
.form-control, .form-select { background-color: var(--input-bg); border: 1px solid var(--border); color: var(--heading); border-radius: 12px; padding: 12px 14px; }
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus { background-color: var(--input-bg); color: var(--heading); border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(226, 182, 89, .15); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e2b659' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: var(--bg-3); color: var(--heading); }

/* CTA */
.cta { position: relative; overflow: hidden; background: radial-gradient(ellipse at top right, rgba(226, 182, 89, .25), transparent 60%), linear-gradient(135deg, #1e1b4b, #312e81 50%, #0b1226); border: 1px solid rgba(226, 182, 89, .3); color: #fff; border-radius: 28px; padding: 60px 30px; box-shadow: var(--shadow); }
.cta h3 { color: #fff; }

/* Footer */
footer { background: var(--footer-bg); color: var(--muted); padding: 80px 0 24px; border-top: 1px solid var(--border); position: relative; transition: background-color .4s; }
footer::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
footer h6 { color: var(--heading); font-weight: 700; margin-bottom: 20px; font-size: .95rem; letter-spacing: .04em; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 11px; }
footer a { color: var(--muted); transition: color .2s, padding .2s; }
footer a:hover { color: var(--tag-color); padding-left: 4px; }
.social a { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--chip-bg); border: 1px solid var(--border); align-items: center; justify-content: center; margin-right: 8px; color: var(--heading); }
.social a:hover { background: var(--gold-grad); color: #1a1205; padding: 0; border-color: transparent; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 50px; padding-top: 22px; font-size: .88rem; }

/* Floating buttons */
.float-btn { position: fixed; right: 22px; z-index: 1050; width: 58px; height: 58px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 10px 25px rgba(0, 0, 0, .4); transition: transform .25s; }
.float-btn:hover { color: #fff; transform: scale(1.1); }
.float-whatsapp { bottom: 22px; background: #25d366; }
.float-whatsapp::before, .float-whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: wa-pulse 2s ease-out infinite; }
.float-whatsapp::after { animation-delay: 1s; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.float-support { bottom: 92px; background: var(--gold-grad); color: #1a1205; font-size: 1.5rem; }
.float-support:hover { color: #1a1205; }
.float-btn .tip { position: absolute; right: 70px; white-space: nowrap; background: var(--bg-3); border: 1px solid var(--border); color: #fff; font-size: .8rem; padding: 6px 12px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.float-btn:hover .tip { opacity: 1; }
.back-top { position: fixed; left: 22px; bottom: 22px; z-index: 1050; width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(226, 182, 89, .4); background: rgba(16, 26, 54, .85); color: var(--gold-light); opacity: 0; visibility: hidden; transition: all .3s; }
.back-top:hover { background: var(--gold-grad); color: #1a1205; }
.back-top.show { opacity: 1; visibility: visible; }

/* Light theme: warm gold backdrops */
[data-theme="light"] .hero {
    background:
        radial-gradient(ellipse 60% 55% at 80% 45%, rgba(226, 182, 89, .35), transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 90%, rgba(99, 102, 241, .08), transparent 70%),
        radial-gradient(ellipse 35% 30% at 20% 10%, rgba(226, 182, 89, .2), transparent 70%),
        var(--bg);
}
[data-theme="light"] .app-section { background: radial-gradient(ellipse 50% 60% at 20% 50%, rgba(226, 182, 89, .28), transparent 70%), radial-gradient(ellipse 40% 50% at 90% 50%, rgba(99, 102, 241, .08), transparent 70%), var(--bg); }
[data-theme="light"] .data-line { opacity: .55; }
[data-theme="light"] .feature-card:hover, [data-theme="light"] .module-card:hover, [data-theme="light"] .support-card:hover { box-shadow: 0 24px 50px rgba(140, 100, 30, .2); }
[data-theme="light"] .stat + .stat { border-color: var(--border); }
[data-theme="light"] .back-top { background: #fff; color: var(--gold); }
[data-theme="light"] footer::before { background: linear-gradient(90deg, transparent, #c08a2c, transparent); }

/* Scroll reveal */
.reveal { opacity: 0; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.fade-up { transform: translateY(40px); }
.reveal.fade-left { transform: translateX(-40px); }
.reveal.fade-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
    section { padding: 80px 0; }
    .hero { text-align: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .globe-area { height: 360px; margin-top: 20px; }
    .float-card { display: none; }
}
@media (max-width: 575.98px) {
    .globe-area { height: 300px; transform: scale(.85); }
    .hero .btn { width: 100%; }
    .float-btn { width: 52px; height: 52px; right: 16px; }
    .float-support { bottom: 84px; }
    .contact-form { padding: 22px; }
    .logo { font-size: 1.3rem; }
    .logo img { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* Portal-style sign-in landing */
.portal-nav,
.portal-nav.scrolled {
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 18px rgba(10, 24, 47, .08);
}
.portal-nav .navbar-brand,
.portal-nav .nav-link,
.portal-nav .navbar-toggler { color: var(--heading); }
.portal-nav .logo img,
footer .logo img {
    width: 100px;
    height: 78px;
    object-fit: contain;
}
.portal-nav .logo:hover img,
footer .logo:hover img { transform: none; }
.portal-nav .navbar-toggler {
    width: 44px;
    height: 44px;
    background:
        linear-gradient(var(--heading), var(--heading)) center 13px / 20px 2px no-repeat,
        linear-gradient(var(--heading), var(--heading)) center 20px / 20px 2px no-repeat,
        linear-gradient(var(--heading), var(--heading)) center 27px / 20px 2px no-repeat;
}
.portal-nav .navbar-toggler i { visibility: hidden; }
.portal-nav .nav-link:hover,
.portal-nav .nav-link.active { color: var(--heading); }
.portal-nav .nav-link::after { background: var(--gold-grad); }
.portal-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 44px) 20px 50px;
    color: #1d2433;
    background: #fff;
    overflow: visible;
}
.portal-hero > .container { display: none; }
.portal-card {
    width: min(100%, 625px);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: #203b67;
    text-align: left;
}
.portal-brand img { width: 56px; height: 56px; }
.portal-brand strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.06em;
}
.portal-brand small {
    display: block;
    margin-top: 4px;
    color: #536074;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.portal-card h1 {
    margin: 0;
    color: #203b67;
    font-size: clamp(1.8rem, 3.3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.03em;
}
.portal-subtitle { margin: 8px 0 30px; color: #737b89; }
.portal-fields { display: grid; gap: 18px; }
.portal-input-wrap { position: relative; }
.portal-input-wrap input {
    width: 100%;
    height: 64px;
    padding: 0 56px 0 22px;
    border: 1px solid #cbd0d8;
    border-radius: 9px;
    outline: none;
    background: #f7f8fb;
    color: #252d3a;
    font: inherit;
    font-size: 1.25rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.portal-input-wrap input::placeholder { color: #9ca3af; opacity: 1; }
.portal-input-wrap input:focus {
    border-color: #254878;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 72, 120, .12);
}
.portal-input-wrap > i,
.portal-password-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #8d95a3;
    font-size: 1.35rem;
}
.portal-password-toggle {
    width: 34px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
}
.portal-password-toggle:focus-visible {
    outline: 2px solid #254878;
    outline-offset: 2px;
    border-radius: 5px;
}
.portal-login {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #203b67;
    color: var(--portal-hero-text);
    font-size: 1.15rem;
    font-weight: 700;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.portal-login:hover,
.portal-login:focus-visible {
    color: #fff;
    background: #162f56;
    box-shadow: 0 8px 18px rgba(32, 59, 103, .18);
    transform: translateY(-1px);
}
.portal-otp-link {
    display: flex;
    position: relative;
    align-items: center;
    gap: 12px;
    margin: 24px 0 42px;
    color: #203b67;
    font-size: 1.05rem;
}
.portal-otp-link::before {
    content: "";
    flex: 1;
    height: 1px;
    background: #d9dce2;
}
.portal-otp-link::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d9dce2;
}
.portal-otp-link:hover { color: #142c50; text-decoration: underline; }
.portal-regions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    color: #222;
    font-size: 1rem;
}
.portal-regions span { white-space: nowrap; }
.portal-regions span + span::before {
    content: "|";
    margin: 0 14px;
    color: #8d929b;
}
.portal-notice {
    max-width: 480px;
    margin: 48px auto 0;
    color: #687181;
    font-size: .9rem;
    line-height: 1.6;
}
.portal-hero + .stats { margin-top: 0; }
.portal-at-top .float-btn { display: none; }
@media (max-width: 575.98px) {
    .portal-hero { padding: calc(var(--nav-h) + 30px) 20px 36px; }
    .portal-brand { margin-bottom: 28px; }
    .portal-input-wrap input { height: 58px; font-size: 1.05rem; }
    .portal-login { min-height: 58px; }
    .portal-otp-link { margin: 22px 0 34px; font-size: .95rem; }
    .portal-regions { row-gap: 8px; font-size: .9rem; }
    .portal-regions span + span::before { margin: 0 9px; }
    .portal-notice { margin-top: 38px; }
}

/* Corporate-style landing page */
.portal-hero {
    display: block;
    min-height: 720px;
    min-height: max(720px, 100svh);
    padding: var(--nav-h) 0 90px;
    color: #fff;
    overflow: hidden;
    background: var(--portal-hero-bg);
}
[data-theme="light"] .portal-hero { background: var(--portal-hero-bg); }
.portal-hero::before {
    display: block;
    z-index: 0;
    background-image: linear-gradient(var(--portal-grid) 1px, transparent 1px), linear-gradient(90deg, var(--portal-grid) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 86%);
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.portal-hero::after {
    display: block;
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: -120px;
    bottom: -220px;
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: 0 0 0 40px var(--glass), 0 0 0 80px var(--glass);
}
.portal-ribbon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px clamp(24px, 7vw, 100px);
    background: var(--portal-ribbon-bg);
    color: var(--portal-ribbon-text);
    font-size: .96rem;
    font-weight: 650;
}
.portal-ribbon span + span { color: var(--portal-ribbon-muted); font-weight: 500; }
.portal-ribbon b { padding: 0 8px; color: var(--gold); }
.portal-card {
    width: min(100% - 48px, 1030px);
    margin: 0 auto;
    padding: clamp(70px, 10vh, 106px) 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.portal-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 27px;
    margin-bottom: 36px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--portal-hero-text);
    font-weight: 650;
    font-size: .98rem;
}
.portal-card h1 {
    max-width: 1030px;
    margin: 0 auto;
    color: var(--portal-hero-text);
    font-size: clamp(2.35rem, 5.7vw, 4rem);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.04em;
}
.portal-card h1 span { color: var(--portal-highlight); }
.portal-subtitle {
    max-width: 940px;
    margin: 32px auto 34px;
    color: var(--portal-subtitle);
    font-size: clamp(1.05rem, 2.2vw, 1.38rem);
    line-height: 1.65;
}
.portal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.portal-login {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 26px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    background: var(--gold-grad);
    color: #1e3b6d;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(13, 32, 66, .18);
    transition: background .2s, transform .2s, box-shadow .2s, color .2s;
}
.portal-login:hover,
.portal-login:focus-visible {
    color: #17345f;
    background: #ffd45d;
    box-shadow: 0 11px 25px rgba(13, 32, 66, .25);
    transform: translateY(-2px);
}
.portal-secondary {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    border: 1px solid var(--portal-secondary-border);
    border-radius: 50px;
    color: var(--portal-hero-text);
    font-weight: 650;
    transition: background .2s, color .2s;
}
.portal-secondary:hover,
.portal-secondary:focus-visible {
    background: var(--portal-secondary-hover);
    color: var(--portal-secondary-hover-text);
}
.portal-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 56px;
    color: var(--portal-subtitle);
    font-size: .94rem;
}
.portal-highlights span { display: inline-flex; align-items: center; gap: 8px; }
.portal-highlights i { color: var(--gold); }
.portal-hero > .container { display: none; }
.portal-hero + .stats { margin-top: 0; }
.portal-at-top .float-btn { display: none; }
@media (max-width: 767.98px) {
    .portal-hero { min-height: 700px; min-height: max(700px, 100svh); padding-bottom: 64px; }
    .portal-ribbon { flex-direction: column; gap: 4px; text-align: center; font-size: .86rem; }
    .portal-ribbon b { padding: 0 4px; }
    .portal-card { padding-top: clamp(58px, 9vh, 86px); }
    .portal-eyebrow { margin-bottom: 28px; }
    .portal-subtitle { margin: 23px auto 28px; }
    .portal-highlights { margin-top: 42px; gap: 12px 20px; }
}
@media (max-width: 575.98px) {
    .portal-hero { min-height: 720px; min-height: max(720px, 100svh); }
    .portal-ribbon { padding: 12px 18px; font-size: .78rem; }
    .portal-card { width: min(100% - 36px, 1030px); padding-top: 56px; }
    .portal-eyebrow { min-height: 42px; padding: 0 20px; margin-bottom: 26px; font-size: .9rem; }
    .portal-card h1 { font-size: clamp(1.85rem, 8vw, 2.65rem); }
    .portal-subtitle { font-size: 1rem; line-height: 1.6; }
    .portal-actions { flex-direction: column; }
    .portal-login, .portal-secondary { width: min(100%, 300px); }
    .portal-highlights { flex-direction: column; align-items: center; margin-top: 36px; font-size: .88rem; }
}
