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

:root {
    --red: oklch(62.8% 0.2577 29.23);
    --blue: oklch(45.2% 0.3132 264.05);
    --red-rgb: 220, 60, 40;
    --blue-rgb: 30, 60, 200;
    --white: #ffffff;
    --surface: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.1);
    --text-primary: rgba(255,255,255,0.95);
    --text-secondary: rgba(255,255,255,0.5);
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: #050508;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* ── Noise texture overlay ── */
.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
    opacity: 0.4;
}

/* ── WebGL canvas ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ── Header ── */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    background: rgba(5,5,8,0.4);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--white);
}

.logo-mark {
    width: 36px;
    height: 36px;
}

.header-pill {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    background: var(--surface);
}

/* ── Main ── */
.main {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 3.5rem;
}

/* ── Hero text ── */
.hero-text {
    text-align: center;
    max-width: 600px;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--red) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtext {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Cards ── */
.cards-wrap {
    display: flex;
    gap: 1.5rem;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.card {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Dark glass base */
.card-bg {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 18, 0.85);
    backdrop-filter: blur(40px);
    border-radius: 24px;
}

/* Animated gradient border */
.card-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.03), rgba(255,255,255,0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 0.4s;
}

.card:hover .card-border {
    background: linear-gradient(135deg, var(--red), var(--blue));
    opacity: 0.8;
}

/* Shine sweep on hover */
.card-shine {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.06) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    background-position: 200% 0;
    transition: background-position 0.6s ease;
    z-index: 2;
}

.card:hover .card-shine {
    background-position: -200% 0;
}

/* Orbs */
.card-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.card-orb-1 {
    width: 200px;
    height: 200px;
    top: -60px;
    right: -60px;
}

.card-orb-2 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    left: -40px;
}

#card-india .card-orb-1 { background: var(--red); }
#card-india .card-orb-2 { background: var(--blue); }
#card-china .card-orb-1 { background: var(--blue); }
#card-china .card-orb-2 { background: var(--red); }

.card:hover .card-orb {
    opacity: 0.25;
}

/* Card body */
.card-body {
    position: relative;
    z-index: 5;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flag-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .flag-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.card-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    transition: all 0.3s;
}

.card:hover .card-badge {
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}

.card-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
}

.card-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.card-native {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.card-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

.card-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--blue));
    width: fit-content;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.card-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-cta svg {
    transform: translateX(4px);
}

/* ── Footer note ── */
.footer-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.05em;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 720px) {
    html, body { overflow: auto; }
    .header { padding: 1.25rem 1.5rem; }
    .main { padding: 2rem 1.25rem; gap: 2.5rem; justify-content: flex-start; padding-top: 3rem; }
    .cards-wrap { flex-direction: column; align-items: center; }
    .card { width: 100%; max-width: 360px; height: 360px; }
    .headline { font-size: 2.2rem; }
}
