/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-card: #1a1a24;
    --color-bg-card-hover: #22222e;
    --color-text: #ffffff;
    --color-text-secondary: #a0a0b0;
    --color-text-muted: #6b6b7b;
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-accent: #22d3ee;
    --color-gradient-start: #6366f1;
    --color-gradient-end: #22d3ee;
    --color-success: #10b981;
    --color-border: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-text);
}

.btn-white {
    background: white;
    color: var(--color-bg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

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

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    display: flex;
    gap: 12px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 160px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    bottom: 0;
    left: -100px;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-primary-light);
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin: 24px 0 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* ===== Phone Mockup ===== */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: var(--color-bg-card);
    border-radius: 40px;
    padding: 12px;
    border: 1px solid var(--color-border);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        var(--shadow-glow);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a24 0%, #12121a 100%);
    border-radius: 32px;
    padding: 24px 20px;
    overflow: hidden;
}

.app-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.greeting {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.user-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.balance-card {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 4px 0;
}

.balance-change {
    font-size: 0.875rem;
}

.balance-change.positive {
    color: #a7f3d0;
}

.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.75rem;
    cursor: pointer;
}

.action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
}

.action-icon.send {
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-primary-light);
}

.action-icon.receive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.action-icon.buy {
    background: rgba(34, 211, 238, 0.2);
    color: var(--color-accent);
}

.recent-activity {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
}

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
}

.activity-icon.incoming {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.activity-icon.outgoing {
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-primary-light);
}

.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.activity-amount {
    font-size: 0.875rem;
    font-weight: 600;
}

.activity-amount.positive {
    color: var(--color-success);
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-primary-light);
    font-weight: 500;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-top: 16px;
}

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

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

.feature-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.2));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon svg {
    stroke: var(--color-primary-light);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 32px;
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--color-text-secondary);
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    margin-left: 60px;
}

/* ===== Use Cases Section ===== */
.use-cases {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.use-case-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.use-case-card h3 {
    margin-bottom: 12px;
    color: var(--color-primary-light);
}

.use-case-card p {
    color: var(--color-text-secondary);
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 120px 0;
}

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

.testimonial-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.testimonial-name {
    color: var(--color-primary-light);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 120px 0;
}

.cta-card {
    position: relative;
    padding: 80px;
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -150px;
    left: -100px;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    bottom: -100px;
    right: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-text-muted);
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

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

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

@media (max-width: 768px) {
    .navbar .nav-links,
    .navbar .nav-cta {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

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

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        display: none;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

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