/* ============================================
   eKYC-Onboarder Landing Page
   Aesthetic: Refined Dark Fintech + Electric Teal
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-bg: #0a0e17;
    --color-bg-elevated: #111827;
    --color-bg-card: #1a2234;
    --color-surface: rgba(255, 255, 255, 0.03);

    --color-text: #f0f4f8;
    --color-text-muted: #8492a6;
    --color-text-subtle: #5a6c7d;

    --color-accent: #00e5c7;
    --color-accent-glow: rgba(0, 229, 199, 0.4);
    --color-accent-subtle: rgba(0, 229, 199, 0.1);

    --color-success: #10b981;
    --color-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    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)'/%3E%3C/svg%3E");
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    transition: transform 0.3s ease-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.2) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation: float3 18s ease-in-out infinite;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    bottom: 10%;
    right: 30%;
    animation: float1 22s ease-in-out infinite reverse;
}

.shape-5 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
    top: 30%;
    left: 20%;
    animation: float2 28s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, -40px) rotate(10deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-30px, 30px); }
    75% { transform: translate(30px, -20px); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(to bottom, var(--color-bg) 0%, transparent 100%);
    backdrop-filter: blur(12px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text);
}

.logo-mark {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    color: var(--color-bg);
    background: var(--color-accent);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    color: var(--color-bg);
    background: #00ffdd;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-xl);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s var(--ease-out-expo) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--color-accent-subtle);
    border: 1px solid rgba(0, 229, 199, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--color-accent);
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 1.75rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out-expo);
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 40px var(--color-accent-glow);
}

.btn-primary:hover {
    background: #00ffdd;
    transform: translateY(-2px);
    box-shadow: 0 0 60px var(--color-accent-glow);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

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

.btn-ghost:hover {
    background: var(--color-surface);
    border-color: var(--color-text-subtle);
}

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

.btn-outline:hover {
    background: var(--color-accent-subtle);
}

.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

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

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    font-weight: 500;
}

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

/* Hero Visual - Verification Card */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards;
    opacity: 0;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 60%);
    filter: blur(60px);
    opacity: 0.5;
    z-index: -1;
}

.verification-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: var(--space-md);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.verification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent), #00b894);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-glow); }
    50% { box-shadow: 0 0 20px 5px var(--color-accent-glow); }
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-status {
    display: flex;
    flex-direction: column;
}

.status-text {
    font-weight: 600;
    color: var(--color-success);
}

.status-time {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
}

.card-body {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-md);
}

.id-preview {
    background: var(--color-bg-elevated);
    border-radius: 12px;
    padding: var(--space-sm);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.id-photo {
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, #374151, #4b5563);
    border-radius: 4px;
    margin-bottom: var(--space-xs);
}

.id-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.id-line {
    height: 8px;
    background: #374151;
    border-radius: 4px;
}

.id-line-1 { width: 80%; }
.id-line-2 { width: 100%; }
.id-line-3 { width: 60%; }

.verification-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.6rem 0.8rem;
    background: var(--color-bg-elevated);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateX(-10px);
    animation: stepReveal 0.5s var(--ease-out-expo) forwards;
}

@keyframes stepReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-complete {
    color: var(--color-text);
}

.step-icon {
    width: 20px;
    height: 20px;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.step-icon svg {
    width: 12px;
    height: 12px;
}

.card-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.risk-score {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.risk-label {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    flex-shrink: 0;
}

.risk-bar {
    flex: 1;
    height: 8px;
    background: var(--color-bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.risk-fill {
    width: 15%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-success), var(--color-accent));
    border-radius: 4px;
    animation: riskFill 1.5s var(--ease-out-expo) 2s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes riskFill {
    to { transform: scaleX(1); }
}

.risk-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-success);
}

/* Features Section */
.features {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    z-index: 1;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: var(--space-lg);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-accent-subtle) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 199, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.feature-large {
    grid-column: span 2;
}

.feature-highlight {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(0, 229, 199, 0.05) 100%);
    border-color: rgba(0, 229, 199, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--color-accent-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.feature-tags {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    position: relative;
    z-index: 1;
}

.feature-tags span {
    padding: 0.3rem 0.8rem;
    background: var(--color-bg-elevated);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* How It Works Section */
.how-it-works {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-bg-elevated);
    z-index: 1;
}

.how-container {
    max-width: 900px;
    margin: 0 auto;
}

.steps-timeline {
    position: relative;
    padding-left: 80px;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}

.step-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.step-item:last-child {
    padding-bottom: 0;
}

.step-number {
    position: absolute;
    left: -80px;
    width: 56px;
    height: 56px;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-accent);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.step-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.code-block {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md);
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    z-index: 1;
    overflow: hidden;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.decoration-ring {
    position: absolute;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}

.ring-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.ring-2 {
    width: 500px;
    height: 500px;
    top: -250px;
    left: -250px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 700px;
    height: 700px;
    top: -350px;
    left: -350px;
    animation-delay: 1s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
}

/* Footer */
.footer {
    position: relative;
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--color-border);
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
}

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

.footer-brand .nav-logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-subtle);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .feature-large {
        grid-column: span 2;
    }
}

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

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .stat-divider {
        display: none;
    }

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

    .feature-large {
        grid-column: span 1;
    }

    .card-body {
        grid-template-columns: 1fr;
    }

    .id-preview {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-links {
        gap: var(--space-xl);
    }

    .steps-timeline {
        padding-left: 60px;
    }

    .step-number {
        left: -60px;
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .timeline-line {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
