/* eDev Connect landing · brand tokens taken from edevconnect.net */

:root {
    --primary: #2A7E9F;
    --primary-dark: #1C566D;
    --primary-light: #3d9ec4;
    --accent: #60a5fa;
    --ink-deep: #0d2530;

    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #596780;
    --bg-light: #f7fafc;
    --bg-lighter: #edf2f7;
    --white: #ffffff;
    --border: rgba(26, 32, 44, 0.08);

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.18);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    --header-height: 84px;
}

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(42, 126, 159, 0.22);
    color: var(--ink-deep);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Typography ---------- */

.display,
.h2,
.logo-text,
.feature-card h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.display {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.04;
    color: var(--white);
}

.h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
}

.accent-text {
    color: #7cc8e6;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 34rem;
    margin: 1.5rem 0 2.2rem;
}

.muted {
    color: var(--text-medium);
    max-width: 36rem;
}

/* Split word animation */
.split-word {
    display: inline-block;
    transform-origin: 50% 100%;
    opacity: 0;
    transform: translateY(60%) rotateX(-70deg);
    animation: wordIn 0.9s var(--ease) forwards;
    animation-delay: calc(var(--i) * var(--word-delay, 70ms) + 150ms);
}

@keyframes wordIn {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease;
    will-change: transform;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(42, 126, 159, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px rgba(42, 126, 159, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.partner-link {
    margin-top: 14px;
    margin-left: 0;
}

/* ---------- Navbar ---------- */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    background: var(--primary);
    box-shadow: var(--shadow);
    transition: background 0.2s ease;
}

.nav-close:hover,
.nav-close:focus-visible {
    background: var(--primary-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--white);
    transition: color 0.4s ease;
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: var(--text-medium);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav-links a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.navbar.scrolled .menu-toggle span {
    background: var(--primary);
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.mobile-menu a {
    display: block;
    padding: 12px 10px;
    margin: 0 -10px;
    font-weight: 600;
    color: var(--text-medium);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu a:focus-visible {
    color: var(--primary);
    background-color: var(--bg-light);
    padding-left: 16px;
}

.mobile-menu.open {
    display: flex;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 80% 20%, rgba(96, 165, 250, 0.22), transparent 60%),
        linear-gradient(160deg, var(--ink-deep) 0%, var(--primary-dark) 55%, #174a5d 100%);
    isolation: isolate;
}

.hero-scene {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-scene.ready {
    opacity: 1;
}

.hero-scene canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero-glow {
    position: absolute;
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    right: -10vw;
    top: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 158, 196, 0.45), transparent 65%);
    filter: blur(20px);
    z-index: -1;
    animation: floatSlow 12s ease-in-out infinite;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Phone mockup */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.phone {
    position: relative;
    width: min(300px, 70vw);
    aspect-ratio: 9 / 19.5;
    padding: 12px;
    border-radius: 44px;
    background: linear-gradient(145deg, #2b3a44, #0b1216);
    box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease);
}

.phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 90px;
    height: 26px;
    margin-left: -45px;
    border-radius: 20px;
    background: #050a0d;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
    background: var(--bg-light);
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

.float-card i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
}

.float-card span {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.float-card small {
    color: var(--text-light);
    font-size: 0.78rem;
}

.float-card-a {
    left: -4%;
    top: 18%;
    animation: floatSlow 7s ease-in-out infinite;
}

.float-card-b {
    right: -2%;
    bottom: 16%;
    animation: floatSlow 9s ease-in-out infinite reverse;
}

.float-card-c {
    right: -4%;
    top: 6%;
    animation: floatSlow 8s ease-in-out infinite;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
}

.scroll-cue span {
    display: block;
    width: 4px;
    height: 8px;
    margin: 8px auto 0;
    border-radius: 4px;
    background: var(--white);
    animation: scrollDot 1.8s var(--ease) infinite;
}

/* ---------- Sections ---------- */

.section {
    padding: 120px 0;
    background: var(--white);
}

.section-tint {
    background: var(--bg-light);
}

.section-head {
    text-align: center;
    margin: 0 auto 64px;
    max-width: 640px;
}

.section-head .h2 {
    margin-bottom: 16px;
}

.section-head .muted {
    margin: 0 auto;
}

/* ---------- Country marquee ---------- */

.marquee {
    overflow: hidden;
    padding: 22px 0;
    background: var(--ink-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 48px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.marquee-track span::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Product categories ---------- */

.category-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}

.category-tile i {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(61, 158, 196, 0.18), rgba(42, 126, 159, 0.08));
    color: var(--primary);
    font-size: 1.3rem;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(42, 126, 159, 0.25);
}

/* ---------- Scroll-driven 3D product showcase ---------- */

.showcase {
    position: relative;
    height: 250vh;
    background: var(--white);
}

.showcase-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.showcase-copy .h2 {
    margin: 18px 0 14px;
}

.product-list {
    list-style: none;
    margin-top: 32px;
    display: grid;
    gap: 14px;
}

.product-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--white);
    opacity: 0.45;
    transform: translateX(0);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease;
}

.product-item.is-active {
    opacity: 1;
    transform: translateX(10px);
    border-color: rgba(42, 126, 159, 0.35);
    box-shadow: var(--shadow-lg);
}

.product-item h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-text {
    min-width: 0;
}

.product-body p {
    color: var(--text-medium);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.product-body ul {
    list-style: none;
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.product-body li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.product-body li::before {
    content: '•';
    color: var(--primary);
    margin-right: 8px;
}

.product-body li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.showcase-sticky.is-enhanced .product-item:not(.is-active) .product-body {
    display: none;
}

.showcase-sticky.is-enhanced .product-item:not(.is-active) {
    padding-top: 16px;
    padding-bottom: 16px;
}

.showcase-stage {
    position: relative;
    height: min(520px, 70vh);
    perspective: 1400px;
}

.stack {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.stack-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(380px, 84%);
    aspect-ratio: 1.6;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 28px;
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
}

.stack-card-voucher {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}

.stack-card-game {
    background: linear-gradient(135deg, #1f6f8c, var(--ink-deep));
}

.stack-card-esim {
    background: linear-gradient(135deg, #3d9ec4, #174a5d);
}

.stack-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 600;
}

.stack-card strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.stack-code {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.stack-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- Feature flip cards ---------- */

.feature-flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    perspective: 1400px;
}

.flip-card {
    position: relative;
    height: var(--flip-height, auto);
    min-height: 380px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    outline: none;
    transition: transform 0.35s var(--ease);
}

.flip-card:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 4px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform 0.9s var(--ease);
}

.flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px 28px;
    border-radius: var(--radius-xl);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.flip-front {
    position: relative;
    height: auto;
    min-height: 100%;
    background: var(--white);
}

.flip-back {
    transform: rotateY(180deg);
    color: var(--white);
    background: linear-gradient(145deg, var(--primary-light), var(--primary-dark) 60%, var(--ink-deep));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-xl);
}

.flip-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(61, 158, 196, 0.2), rgba(42, 126, 159, 0.08));
    color: var(--primary);
    font-size: 1.4rem;
}

.flip-back .flip-icon {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.flip-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.flip-back .flip-kicker {
    color: #bfe9f7;
}

.flip-front h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
}

.flip-challenge {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.flip-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.flip-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 35px;
    background: rgba(42, 126, 159, 0.1);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.flip-hint i {
    animation: hintNudge 2.4s ease-in-out infinite;
}

.flip-hint-click i {
    animation-delay: 1.2s;
}

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

.flip-solution {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.flip-cta {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
}

/* ---------- Feature details dialog (Unified) ---------- */

.feature-dialog {
    margin: auto;
    position: fixed;
    inset: 0;
    width: min(680px, calc(100vw - 32px));
    height: fit-content;
    max-height: calc(100vh - 48px);
    padding: 0;
    border: none;
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--text-dark);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.feature-dialog::backdrop {
    background: rgba(13, 37, 48, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.feature-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: dialogIn 0.5s var(--ease);
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-medium);
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s ease;
}

.dialog-close:hover {
    transform: rotate(90deg);
    background: var(--bg-lighter);
}

.dialog-close:focus-visible,
.dialog-nav-btn:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

.dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 0;
    outline: none;
}

.dialog-body:focus-visible {
    outline: none;
}

.dialog-band {
    position: relative;
    padding: 40px 36px 28px;
    color: var(--white);
    background:
        radial-gradient(420px 220px at 90% 0%, rgba(96, 165, 250, 0.45), transparent 60%),
        linear-gradient(135deg, var(--primary-light), var(--primary-dark) 60%, var(--ink-deep));
    overflow: hidden;
}

.dialog-band::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.04), 0 0 0 72px rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.dialog-band-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-4deg); }
}

.dialog-band-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bfe9f7;
    margin-bottom: 6px;
}

.dialog-band .dialog-title {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
    padding-right: 48px;
    margin: 0;
}

.dialog-content {
    padding: 8px 36px 28px;
}

.dialog-media {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 0 0 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-lighter), var(--bg-light));
    box-shadow: var(--shadow);
}

.dialog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dialog-media img[hidden] {
    display: none;
}

.dialog-media[data-feature="partner"] img {
    object-fit: contain;
}

.media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    text-align: center;
    padding: 16px;
}

.media-placeholder i {
    font-size: 2rem;
    color: var(--primary);
}

.media-placeholder span {
    font-weight: 600;
    color: var(--text-medium);
}

.media-placeholder code {
    font-size: 0.78rem;
    color: var(--text-light);
}

.media-placeholder[hidden] {
    display: none;
}

.dialog-section {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.dialog-section:first-child {
    border-top: none;
}

.dialog-section h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.dialog-section p {
    color: var(--text-medium);
    line-height: 1.6;
}

.dialog-list {
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--text-medium);
}

.dialog-list li {
    padding-left: 22px;
    position: relative;
    animation: listIn 0.5s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 80ms + 120ms);
}

@keyframes listIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.dialog-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
    top: 0.3em;
}

.dialog-foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 36px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

.dialog-count {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.dialog-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary-dark);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}

.dialog-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--white);
}

/* ---------- Quick Buy ---------- */

.quick-buy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.quick-buy-copy .h2 {
    margin-bottom: 16px;
}

.quick-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.quick-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--bg-light);
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-dark);
}

.quick-steps i {
    color: var(--primary);
}

.quick-buy-visual {
    display: grid;
    place-items: center;
}

.quick-buy-visual img {
    width: min(100%, 360px);
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ---------- Offers & Feature cards ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 36px 30px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow 0.4s var(--ease), border-color 0.4s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(42, 126, 159, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(42, 126, 159, 0.25);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(61, 158, 196, 0.18), rgba(42, 126, 159, 0.08));
    color: var(--primary);
    font-size: 1.5rem;
    transform: translateZ(30px);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
}

/* ---------- Commerce flow ---------- */

.flow {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.flow::before {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    transform-origin: left;
}

@keyframes draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.flow-step {
    position: relative;
    text-align: center;
    padding: 0 12px;
}

.flow-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid rgba(42, 126, 159, 0.25);
    color: var(--primary);
    font-size: 1.6rem;
    box-shadow: var(--shadow);
    transition: transform 0.5s var(--ease), background 0.4s ease, color 0.4s ease;
}

.flow-step:hover .flow-icon {
    transform: translateY(-6px) rotate(-6deg);
    background: var(--primary);
    color: var(--white);
}

.flow-step h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.flow-step p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.integrations {
    margin-top: 72px;
    text-align: center;
}

.integrations-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 18px;
}

.integration-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.integration-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 35px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.integration-chips i {
    color: var(--primary);
}

/* ---------- Wallet ---------- */

.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.wallet-grid .h2 {
    margin-bottom: 16px;
}

.wallet-grid .check-list {
    margin-top: 0;
}

.check-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.check-list i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
}

/* ---------- Partners ---------- */

.partner-checks {
    margin-top: 48px;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 32px;
}

.partner-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
}

.partner-cta .muted {
    margin: 0;
}

/* ---------- Coverage ---------- */

.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.coverage-grid .h2 {
    margin: 18px 0 16px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.region-card {
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.region-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-dark);
}

.region-card span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.coverage-visual {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

.globe-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.globe-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ---------- CTA / Download ---------- */

.section-cta {
    padding-top: 40px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.section-cta > .container {
    width: 100%;
}

.cta-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    padding: 64px;
    border-radius: 32px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(700px 360px at 90% 0%, rgba(96, 165, 250, 0.35), transparent 60%),
        linear-gradient(135deg, var(--primary-dark), var(--ink-deep));
    box-shadow: var(--shadow-xl);
}

.cta-copy .h2 {
    color: var(--white);
    margin-bottom: 14px;
}

.cta-copy p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.store-badge {
    display: inline-flex;
    border-radius: var(--radius-sm);
    animation: floatSlow 6s ease-in-out infinite;
    transition: transform 0.35s var(--ease);
}

.store-badge:nth-child(2) {
    animation-delay: -3s;
}

.store-badge:hover {
    transform: translateY(-3px);
}

.store-badge img {
    height: 56px;
    width: auto;
}

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

.cta-visual img {
    width: min(220px, 60vw);
    height: auto;
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    transform: rotate(4deg);
    transition: transform 0.6s var(--ease);
}

.cta-card:hover .cta-visual img {
    transform: rotate(0deg) translateY(-6px);
}

/* ---------- Legal / Privacy policy ---------- */

.legal {
    padding: 140px 0 80px;
}

.legal-inner {
    max-width: 820px;
}

.legal h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--text-dark);
    margin: 0 0 8px;
}

.legal-meta {
    color: var(--text-light);
    margin: 0 0 32px;
}

.legal-highlight {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin: 0 0 32px;
}

.legal h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 40px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.legal p,
.legal li {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0 0 12px;
}

.legal ul {
    padding-left: 22px;
}

.legal a {
    color: var(--primary);
}

.legal strong {
    color: var(--text-dark);
}

/* ---------- Footer ---------- */

.footer {
    background: #1a202c;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 380px;
}

.footer .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer .logo-text {
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-byline {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 22px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.footer-social a {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    transition: color 0.2s ease, transform 0.35s var(--ease);
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: var(--primary);
    transform: translateY(-3px);
}

.icon-x {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-contact h3 {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #ffffff;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-contact i {
    width: 20px;
    margin-top: 3px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-legal {
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-legal a {
    color: var(--primary);
}

/* ---------- Motion & Keyframes ---------- */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero .reveal {
    animation: rise 0.9s var(--ease) backwards;
    animation-delay: calc(var(--d, 0) * 120ms + 150ms);
}

.tilt {
    transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}

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

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* WebGL fallback */
.no-webgl .hero-scene,
.no-webgl .globe-wrap {
    display: none;
}

.no-webgl .hero-glow {
    opacity: 1;
}

/* ---------- Responsive & Media queries ---------- */

@media (hover: hover) and (pointer: fine) {
    .mobile-menu a:hover {
        color: var(--primary);
        background-color: var(--bg-light);
        padding-left: 16px;
    }

    .flip-card:hover .flip-inner,
    .flip-card:focus-visible .flip-inner {
        transform: rotateY(180deg);
    }

    .flip-card:hover {
        transform: translateY(-6px);
    }
}

@media (hover: none) {
    .flip-hint-hover {
        display: none;
    }
}

@supports (animation-timeline: view()) {
    .section .reveal {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }

    .flow::before {
        animation: draw linear both;
        animation-timeline: view();
        animation-range: entry 20% cover 45%;
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .coverage-grid,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
    }

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

    .cta-card {
        padding: 44px 28px;
        text-align: center;
    }

    .store-badges {
        justify-content: center;
    }

    .cta-visual {
        order: -1;
    }

    .showcase {
        height: auto;
    }

    .showcase-sticky {
        position: static;
        height: auto;
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .showcase-stage {
        height: 400px;
    }

    .showcase-sticky.is-enhanced .product-item:not(.is-active) .product-body {
        display: block;
    }

    .flow {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .flow::before {
        display: none;
    }

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

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-buy-grid,
    .wallet-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partner-checks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-links,
    .navbar > .container > .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 44px;
        padding-bottom: 32px;
    }
}

@media (max-width: 620px) {
    .feature-flip-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        min-height: 340px;
    }

    .dialog-band {
        padding: 36px 24px 24px;
    }

    .dialog-content {
        padding: 8px 24px 24px;
    }

    .dialog-title {
        font-size: 1.4rem;
    }

    .dialog-foot {
        padding: 14px 24px;
    }

    .dialog-count {
        display: none;
    }
}

@media (max-width: 560px) {
    .quick-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .section {
        padding: 88px 0;
    }

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

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

    .float-card {
        scale: 0.85;
    }
}

@media (max-width: 440px) {
    .float-card-a {
        left: -8px;
    }

    .float-card-b {
        right: -8px;
    }

    .float-card-c {
        right: -8px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .marquee-track {
        animation: none;
    }

    .split-word {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .flip-inner {
        transition: none;
    }

    .dialog-band-icon,
    .dialog-list li {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
