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

:root {
    --bg-primary: #0A0E27;
    --bg-secondary: #0F1335;
    --bg-card: #131740;
    --accent: #4FC3F7;
    --accent-glow: rgba(79, 195, 247, 0.3);
    --purple: #8247E5;
    --green: #00C853;
    --text: #FFFFFF;
    --text-dim: #8E8EA9;
    --border: #1A1F45;
    --eth: #627EEA;
    --polygon: #8247E5;
    --bsc: #F0B90B;
    --base: #0052FF;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- AMBIENT BACKGROUND --- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}
.ambient-orb:nth-child(1) {
    width: 600px; height: 600px;
    background: var(--accent);
    top: -200px; left: -100px;
    animation-delay: 0s;
}
.ambient-orb:nth-child(2) {
    width: 500px; height: 500px;
    background: var(--purple);
    bottom: -150px; right: -100px;
    animation-delay: -7s;
}
.ambient-orb:nth-child(3) {
    width: 400px; height: 400px;
    background: var(--green);
    top: 50%; left: 60%;
    animation-delay: -14s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* --- GRID OVERLAY --- */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(79, 195, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 195, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- NAV --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s ease;
}
.nav.scrolled {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* --- CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- HERO --- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}
.btn-store:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(79, 195, 247, 0.15);
}
.btn-store svg { flex-shrink: 0; }
.btn-store-text { text-align: left; }
.btn-store-text small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-store-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-trust-item svg { color: var(--green); }

/* --- PHONE MOCKUP --- */
.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.phone-wrapper {
    position: relative;
    width: 300px;
}
.phone-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: phoneGlow 4s ease-in-out infinite;
}
@keyframes phoneGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: var(--bg-secondary);
    border-radius: 40px;
    border: 3px solid var(--border);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 28px;
    background: var(--bg-primary);
    border-radius: 0 0 20px 20px;
    z-index: 2;
}
.phone-screen {
    padding: 44px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.phone-greeting { font-size: 0.75rem; color: var(--text-dim); }
.phone-greeting strong { display: block; font-size: 1rem; color: var(--text); }
.phone-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
.phone-balance {
    text-align: center;
    padding: 1.25rem 0;
}
.phone-balance-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.phone-balance-amount {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.phone-balance-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--green);
    margin-top: 4px;
}
.phone-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}
.phone-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.phone-action-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.phone-action-icon.send { background: rgba(79, 195, 247, 0.15); color: var(--accent); }
.phone-action-icon.receive { background: rgba(0, 200, 83, 0.15); color: var(--green); }
.phone-action-icon.swap { background: rgba(130, 71, 229, 0.15); color: var(--purple); }
.phone-action span { font-size: 0.65rem; color: var(--text-dim); }
.phone-tokens {
    flex: 1;
    margin-top: 0.75rem;
}
.phone-tokens-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.phone-token {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.phone-token-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.phone-token-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
}
.phone-token-name { font-size: 0.8rem; font-weight: 600; }
.phone-token-chain { font-size: 0.6rem; color: var(--text-dim); }
.phone-token-right { text-align: right; }
.phone-token-amount { font-size: 0.8rem; font-weight: 600; }
.phone-token-value { font-size: 0.6rem; color: var(--text-dim); }

/* --- SECTIONS SHARED --- */
section { position: relative; z-index: 1; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 1rem;
}
.section-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--accent);
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 560px;
    line-height: 1.7;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- STATS --- */
.stats {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat {
    text-align: center;
    padding: 2rem 1rem;
}
.stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* --- FEATURES --- */
.features { padding: 6rem 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover {
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.feature-icon.cyan { background: rgba(79, 195, 247, 0.12); }
.feature-icon.purple { background: rgba(130, 71, 229, 0.12); }
.feature-icon.green { background: rgba(0, 200, 83, 0.12); }
.feature-icon.eth { background: rgba(98, 126, 234, 0.12); }
.feature-icon.yellow { background: rgba(240, 185, 11, 0.12); }
.feature-icon.pink { background: rgba(255, 105, 135, 0.12); }
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* --- CHAINS --- */
.chains {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}
.chains-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.chains-visual {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.chain-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}
.chain-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}
.chain-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}
.chain-icon.ethereum { background: rgba(98, 126, 234, 0.15); color: var(--eth); }
.chain-icon.polygon { background: rgba(130, 71, 229, 0.15); color: var(--polygon); }
.chain-icon.bsc { background: rgba(240, 185, 11, 0.15); color: var(--bsc); }
.chain-icon.base { background: rgba(0, 82, 255, 0.15); color: var(--base); }
.chain-name { font-weight: 700; font-size: 0.95rem; }
.chain-desc { font-size: 0.75rem; color: var(--text-dim); }

.chains-info .check-list {
    list-style: none;
    margin-top: 2rem;
}
.chains-info .check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-dim);
}
.chains-info .check-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--green);
}

/* --- SECURITY --- */
.security {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 1.25rem;
    transition: all 0.3s;
}
.security-card:hover {
    border-color: rgba(0, 200, 83, 0.3);
    transform: translateY(-2px);
}
.security-card-icon {
    width: 48px; height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(0, 200, 83, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.security-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.security-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* --- CTA --- */
.cta {
    padding: 6rem 0;
    text-align: center;
}
.cta-box {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(130, 71, 229, 0.08));
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: 32px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top center, rgba(79, 195, 247, 0.1), transparent 60%);
    pointer-events: none;
}
.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.cta-box p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.cta-qr {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- FOOTER --- */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.footer-left a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}
.footer-left a span { color: var(--accent); }
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--text); }

/* --- LEGAL PAGE --- */
.legal-page {
    position: relative;
    z-index: 1;
    padding: 8rem 0 4rem;
    min-height: 80vh;
}
.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.legal-page .legal-date {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}
.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}
.legal-page p,
.legal-page li {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.legal-page ul {
    list-style: none;
    padding: 0;
}
.legal-page ul li {
    padding-left: 1.5rem;
    position: relative;
}
.legal-page ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.legal-page strong {
    color: var(--text);
}
.legal-page a {
    color: var(--accent);
    text-decoration: none;
}
.legal-page a:hover {
    text-decoration: underline;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* phone float */
.phone-float {
    animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .chains-grid { grid-template-columns: 1fr; text-align: center; }
    .chains-info .check-list li { justify-content: center; }
    .chains-visual { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-trust { flex-direction: column; gap: 0.75rem; }
    .cta-box { padding: 2.5rem 1.5rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-links { gap: 1rem; }
}
