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

:root {
    --gold: #e0d1a7;
    --gold-dark: #bfb288;
    --gold-light: #f0e8d2;
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #999;
    --text-dim: #666;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 20px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 18px;
}

.nav-logo img {
    border-radius: 8px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(224, 209, 167, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(224, 209, 167, 0.1);
    border: 1px solid rgba(224, 209, 167, 0.2);
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(44px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(16px, 3vw, 18px);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    right: calc(50% - 640px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Phone mockup */
.hero-phone {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
    border-radius: 26px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-status {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.phone-balance {
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.balance-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.balance-fiat {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

.phone-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}

.phone-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-icon { background: rgba(224, 209, 167, 0.15); color: var(--gold); }
.receive-icon { background: rgba(120, 200, 120, 0.15); color: #78c878; }
.scan-icon { background: rgba(120, 160, 240, 0.15); color: #78a0f0; }

.phone-txs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-tx {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tx-received { background: #78c878; }
.tx-sent { background: var(--gold); }

.tx-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tx-label { font-size: 13px; font-weight: 500; }
.tx-time { font-size: 11px; color: var(--text-dim); }
.tx-amount { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tx-positive { color: #78c878; }
.tx-negative { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--gold);
    color: #1a1a00;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(224, 209, 167, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: 14px;
}

/* Sections */
.section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Features */
.features {
    padding: 120px 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(224, 209, 167, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Open source */
.opensource {
    padding: 0 0 120px;
}

.opensource-card {
    background: linear-gradient(135deg, rgba(224, 209, 167, 0.06) 0%, rgba(224, 209, 167, 0.02) 100%);
    border: 1px solid rgba(224, 209, 167, 0.12);
    border-radius: 24px;
    padding: 64px;
    text-align: center;
}

.opensource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    margin-bottom: 24px;
}

.opensource-card h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.opensource-card p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* Legal pages */
.legal {
    padding: 120px 0 80px;
}

.legal h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 48px;
}

.legal h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 720px;
}

.legal ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    max-width: 720px;
}

.legal ul li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 6px;
}

.legal ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.legal a {
    color: var(--gold);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

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

/* CTA */
.cta {
    padding: 80px 0 120px;
    text-align: center;
}

.cta h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 24px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.footer-brand img {
    border-radius: 6px;
    display: block;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 16px;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        display: none;
    }

    .opensource-card {
        padding: 40px 24px;
    }

    .features {
        padding: 80px 0;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .nav {
        padding: 12px 16px;
    }

    .nav-logo {
        font-size: 16px;
        gap: 8px;
    }

    .nav-logo img {
        width: 30px;
        height: 30px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
        min-height: auto;
    }

    .hero-badge {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 20px;
    }

    .hero h1 {
        margin-bottom: 16px;
    }

    .hero-sub {
        margin-bottom: 28px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 16px;
    }

    .section-inner {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card:hover {
        transform: none;
    }

    .opensource {
        padding: 0 0 60px;
    }

    .opensource-card {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .opensource-card p {
        font-size: 15px;
    }

    .cta {
        padding: 60px 0 80px;
    }

    .cta p {
        margin-bottom: 28px;
    }

    .footer {
        padding: 32px 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-copy {
        margin-top: 8px;
    }
}

/* Responsive - Very small screens */
@media (max-width: 380px) {
    .hero {
        padding: 90px 16px 48px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .feature-card {
        padding: 20px;
    }

    .opensource-card {
        padding: 28px 16px;
    }
}
