/* ============================================
   TANIT - Styles v3.0
   All responsive + mobile-fix merged
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00D4FF;
    --secondary-color: #0091FF;
    --dark-bg: #0A0E27;
    --darker-bg: #050814;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --gradient-1: linear-gradient(135deg, #00D4FF 0%, #0091FF 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --focus-ring: 0 0 0 3px rgba(0, 212, 255, 0.4);
}

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

/* Fix: allow caret in inputs/textareas */
input, textarea, select {
    caret-color: var(--primary-color);
}

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

/* ============================================
   ACCESSIBILITY - Focus & Reduced Motion
   ============================================ */

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .gradient-orb {
        animation: none !important;
    }

    .logo-t-img,
    .logo-anit-img,
    .logo-anit-wrapper {
        animation: none !important;
        opacity: 1 !important;
        width: auto !important;
    }

    .logo-anit-wrapper {
        width: 400px !important;
        margin-left: -14px !important;
    }

    .wallet-badge {
        animation: none !important;
    }

    .scan-line {
        animation: none !important;
    }
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a,
.nav-links .nav-link {
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}


.nav-links a:hover,
.nav-links a.active,
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    color: white;
}

/* Navbar Toggler Custom Style */
.navbar-toggler {
    border: 2px solid rgba(0, 212, 255, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    margin-left: auto;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 212, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-3);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

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

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn {
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.scroll-indicator-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    min-height: 400px;
    height: auto;
    animation: fadeIn 1s ease-out 0.4s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   LOGO SHOWCASE - T appears, ANIT slides in
   ============================================ */
.logo-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 60px;
}

.logo-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

/* Container holding T + ANIT side by side */
.logo-assembly {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 2;
    animation: assemblyFloat 5s ease-in-out 3.5s infinite;
}

@keyframes assemblyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* T logo: appears centered, no movement needed since ANIT slides to it */
.logo-t-img {
    width: 126px;
    height: 126px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    opacity: 0;
    flex-shrink: 0;
    padding-bottom: 6px;
    animation: logoTAppear 0.8s ease-out 0.3s forwards;
}

@keyframes logoTAppear {
    0% { opacity: 0; transform: scale(0.3); }
    70% { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

/* ANIT wrapper: curtain-reveal container that expands width */
.logo-anit-wrapper {
    overflow: hidden;
    width: 0;
    flex-shrink: 0;
    margin-left: 0;
    opacity: 0;
    animation: anitCurtainOpen 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}

/* ANIT image: full size from start, revealed by wrapper */
.logo-anit-img {
    height: 116px;
    width: 400px;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

@keyframes anitCurtainOpen {
    0% { width: 0; margin-left: 0; opacity: 0; }
    5% { opacity: 1; }
    100% { width: 400px; margin-left: -14px; opacity: 1; }
}


/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 120px 0;
    position: relative;
}

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

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Fix: minmax 280px prevents overflow on tablet */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

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

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo-section {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.03) 0%, transparent 100%);
}

.demo-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    margin: 0 auto;
    min-height: 620px;
    display: flex;
    flex-direction: column;
}

.demo-phase {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Demo mode badge */
.demo-mode-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.demo-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.demo-logo {
    max-width: 100px;
    margin-bottom: 16px;
}

.demo-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.demo-card-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.step.active {
    background: var(--gradient-1);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}

.alert-demo {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-demo strong { color: var(--primary-color); }

.form-group-demo { margin-bottom: 16px; }

.form-label-demo {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
}

.form-control-demo {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control-demo:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
    outline: none;
}

.form-control-demo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.security-info-demo {
    background: rgba(0, 255, 204, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.6;
}

.security-info-demo strong { color: var(--secondary-color); }

.btn-demo {
    width: 100%;
    padding: 14px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: not-allowed;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-demo-active {
    cursor: pointer;
    opacity: 1;
}

.btn-demo-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Phase animation handled above with flex layout */

/* QR Code Styles */
.qr-code-container {
    text-align: center;
    margin-bottom: 16px;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.qr-code-demo {
    width: 170px;
    height: 170px;
    display: block;
}

.scan-line {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanAnimation 2s linear infinite;
}

@keyframes scanAnimation {
    0% { top: 15px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 185px; opacity: 0; }
}

.qr-code-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.qr-code-instruction {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 16px;
}

/* Signature Pending - shown during scan wait */
.signature-pending {
    text-align: center;
    margin-bottom: 12px;
}

.signature-animation {
    margin: 8px auto 12px;
    width: 50px;
    height: 50px;
}

.signature-icon {
    width: 100%;
    height: 100%;
    animation: signaturePulse 2s infinite;
}

@keyframes signaturePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.signature-pending h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.signature-pending p {
    color: var(--text-secondary);
    font-size: 12px;
}

.demo-2fa-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
}

/* Success Animation */
.success-animation {
    text-align: center;
    margin-bottom: 24px;
}

.success-icon {
    width: 85px;
    height: 85px;
    margin: 16px auto 20px;
    animation: successScale 0.5s ease;
}

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

.success-animation h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #00ffcc;
}

.success-animation p {
    color: var(--text-secondary);
    font-size: 13px;
}

.session-info {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child { border-bottom: none; }

.detail-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

.signature-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

/* Wallet Connect Demo */
.wallet-connect-demo {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.wallet-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.wallet-option:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.05);
    color: var(--text-primary);
}

.wallet-option.selected {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.wallet-option-icon {
    width: 36px;
    height: 36px;
}

/* JWT Token Display */
.access-demo-container {
    margin-bottom: 20px;
}

.jwt-token-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.jwt-header {
    color: #00ffcc;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.jwt-preview {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary-color);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    margin-bottom: 12px;
    word-break: break-all;
}

.jwt-validity {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.demo-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.demo-footer p {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
}

.demo-info { padding: 0 20px; }

.demo-info-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.demo-info-number {
    min-width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.demo-info-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.demo-info-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.demo-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.demo-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demo-highlight-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.demo-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* ============================================
   WALLET SECTION
   ============================================ */
.wallet-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.wallet-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.wallet-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-header-left {
    text-align: left;
    margin-bottom: 30px;
}

.section-header-left .section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header-left .section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.wallet-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.wallet-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.wallet-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.wallet-feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.wallet-feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.wallet-cta {
    display: flex;
    gap: 16px;
}

.wallet-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px;
    /* Prevent badges from causing horizontal scroll */
    overflow: visible;
}

/* Orbital ring around phone */
.wallet-visual::before {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    border: 2px dashed rgba(0, 212, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: rotateOrbit 30s linear infinite;
}

@keyframes rotateOrbit {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.phone-mockup {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-screenshot {
    max-width: 450px;
    height: auto;
    border-radius: 40px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.6),
        0 20px 60px rgba(0, 212, 255, 0.2);
    filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.4));
    transition: all 0.5s ease;
}

.wallet-screenshot:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 60px rgba(0, 212, 255, 0.6));
}

.wallet-badge {
    position: absolute;
    background: linear-gradient(135deg, rgba(13, 17, 28, 0.95), rgba(20, 26, 42, 0.9));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: orbitFloat 8s ease-in-out infinite;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.wallet-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.5), rgba(0, 145, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wallet-badge:hover::before { opacity: 1; }

.wallet-badge:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 212, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
}

/* Connecting line from badge to phone */
.wallet-badge::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 212, 255, 0.4), transparent);
    top: 50%;
    left: 50%;
    transform-origin: top center;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.badge-1::after { transform: translate(-50%, -50%) rotate(-135deg); }
.badge-2::after { transform: translate(-50%, -50%) rotate(0deg); }
.badge-3::after { transform: translate(-50%, -50%) rotate(135deg); }

.wallet-badge:hover::after {
    opacity: 1;
    background: linear-gradient(to bottom, rgba(0, 212, 255, 0.7), transparent);
}

/* Fix: use safe positive values to prevent horizontal scroll */
.badge-1 { top: 5%; left: 2%; animation-delay: 0s; }
.badge-2 { top: 42%; right: -8%; animation-delay: 2.6s; }
.badge-3 { bottom: 8%; left: 5%; animation-delay: 5.2s; }

@keyframes orbitFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
    75% { transform: translateY(-25px) rotate(-2deg); }
}

.badge-icon {
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 145, 255, 0.15));
    padding: 14px;
    border-radius: 14px;
    position: relative;
    box-shadow:
        0 4px 20px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wallet-badge:hover .badge-icon::before { opacity: 1; }

.badge-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    transition: all 0.4s ease;
}

.wallet-badge:hover .badge-icon svg {
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.9));
    transform: scale(1.1);
}

.badge-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
}

.wallet-badge:hover .badge-text {
    color: var(--primary-color);
    text-shadow: 0 2px 15px rgba(0, 212, 255, 0.6);
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */
.technology {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.03) 100%);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-diagram {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-layer {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-layer:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.layer-1 { background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%); }
.layer-2 { background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%); }
.layer-3 { background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, transparent 100%); }

.layer-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.layer-tech { color: var(--text-secondary); font-size: 14px; }

.connection-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
    margin: 0 auto;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech-feature { display: flex; gap: 20px; }

.tech-feature-icon {
    font-size: 40px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-feature-icon svg { width: 40px; height: 40px; color: var(--primary-color); }
.tech-feature h4 { font-size: 20px; margin-bottom: 8px; }
.tech-feature p { color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   ROADMAP SECTION
   ============================================ */
.roadmap { padding: 120px 0; }

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 60px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.timeline-item.completed,
.timeline-item.active { opacity: 1; }
.timeline-item:hover { opacity: 1; }

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
    animation: timelinePulse 2s infinite;
}

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(0, 212, 255, 0); }
}

.timeline-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.timeline-content h3 { font-size: 24px; margin-bottom: 16px; }
.timeline-content ul { list-style: none; }

.timeline-content li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.timeline-content li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--darker-bg);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo { height: 40px; margin-bottom: 20px; }
.footer-description { color: var(--text-secondary); margin-bottom: 24px; }

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-section h4 { margin-bottom: 20px; font-size: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--primary-color); }

/* ============================================
   RESPONSIVE - 968px (Tablet)
   ============================================ */
@media (max-width: 968px) {
    /* Logo plus petit sur mobile */
    .logo-img {
        height: 28px;
    }

    /* Réduire le padding vertical de la barre */
    .nav-content {
        padding: 14px 0;
    }

    /* Masquer le bouton Get Started sur mobile */
    .nav-content .cta-btn {
        display: none;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title { font-size: 48px; }

    /* Hide hero visual entirely on tablet/mobile since floating cards are hidden */
    .hero-visual {
        display: none;
    }

    .scroll-indicator { display: none; }

    .wallet-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Navbar collapse - mobile styling */
    .navbar-collapse {
        background: rgba(10, 14, 39, 0.98);
        padding: 12px 16px 16px;
        border-radius: 12px;
        margin-top: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Masquer les liens secondaires sur mobile */
    .nav-mobile-hidden { display: none; }

    .nav-links {
        flex-direction: column;
        gap: 4px !important;
        margin-bottom: 0 !important;
    }

    .nav-links a,
    .nav-links .nav-link {
        font-size: 17px;
        padding: 14px 16px;
        display: block;
        border-radius: 10px;
        transition: background 0.2s ease, color 0.3s ease;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: rgba(0, 212, 255, 0.08);
    }

    .nav-content {
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        margin-top: 15px;
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 10px;
    }

    .logo { flex: 0 0 auto; }

    /* Hide stats on mobile - below Documentation button */
    .stats {
        display: none;
    }

    .demo-info {
        padding: 0;
        margin-top: 40px;
    }

    .demo-highlights { justify-content: center; }

    .wallet-visual { display: none; }

    .wallet-badge { padding: 14px 20px; }
    .wallet-badge::after { height: 45px; }
    .badge-1 { top: 8%; left: 0%; }
    .badge-2 { top: 45%; right: 0%; }
    .badge-3 { bottom: 10%; left: 2%; }
    .badge-icon { padding: 10px; }
    .badge-icon svg { width: 28px; height: 28px; }
    .badge-text { font-size: 13px; }

    .tech-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }

    .cta-content h2 { font-size: 36px; }
    .cta-content p { font-size: 16px; }
}

/* ============================================
   RESPONSIVE - 768px
   ============================================ */
@media (max-width: 768px) {
    .wallet-visual { height: 480px; }
    .wallet-visual::before { width: 420px; height: 420px; }
    .wallet-screenshot { max-width: 300px; }
    .badge-1 { top: 6%; left: 3%; }
    .badge-2 { top: 46%; right: 3%; }
    .badge-3 { bottom: 9%; left: 5%; }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE - 640px (Mobile)
   ============================================ */
@media (max-width: 640px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 32px; }

    .hero-buttons { flex-direction: column; }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
        text-align: center;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 12px;
    }

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

    .feature-title {
        font-size: 15px;
        margin-bottom: 0;
    }

    .feature-description {
        display: none;
    }

    .demo-card { padding: 20px; }
    .demo-info-title { font-size: 24px; }

    .demo-info-item {
        flex-direction: column;
        gap: 12px;
    }

    .demo-info-number { min-width: 40px; height: 40px; font-size: 18px; }

    .step { width: 38px; height: 38px; font-size: 14px; }

    .demo-highlight-item {
        flex: 1 1 100%;
        justify-content: center;
    }

    .wallet-visual {
        display: none;
    }

    .wallet-visual::before { display: none; }

    .phone-mockup { width: 100%; }

    .wallet-screenshot {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .wallet-badge { display: none; }
    .wallet-cta { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; }

    .cta-content h2 { font-size: 28px; }
    .cta-content p { font-size: 15px; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE - 480px (Small Mobile)
   ============================================ */
@media (max-width: 480px) {
    .wallet-visual { display: none; }
    .section-header-left .section-title { font-size: 28px; }
    .section-header-left .section-subtitle { font-size: 14px; }
    .wallet-description { font-size: 15px; }
    .wallet-feature-item h4 { font-size: 16px; }
    .wallet-feature-item p { font-size: 13px; }
    .hero-title { font-size: 30px; }
    .cta-content h2 { font-size: 24px; }
}
