/* Landing Page Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --bg-dark: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --dark: #0f172a;
    --dark-light: #e2e8f0;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --navbar-bg: rgba(255, 255, 255, 0.98);
    --navbar-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Dark Theme (default) - explicit for clarity */
[data-theme="dark"] {
    --bg-dark: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --navbar-bg: rgba(2, 6, 23, 0.98);
    --navbar-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

[data-theme="light"] .nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

[data-theme="light"] .logo,
[data-theme="light"] .nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #10b981;
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 42px;
    padding: 14px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #0f172a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-screen::-webkit-scrollbar {
    width: 4px;
}

.phone-screen::-webkit-scrollbar-track {
    background: transparent;
}

.phone-screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.app-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.app-preview.active {
    opacity: 1;
    pointer-events: auto;
}

.app-preview.static-preview {
    padding: 2rem 1.25rem 1.5rem;
}

.app-preview.demo-video {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 32px;
    overflow: hidden;
}

.demo-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 32px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.preview-info {
    flex: 1;
    min-width: 0;
}

.preview-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.preview-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 0.25rem 0.625rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.preview-stats {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-progress {
    margin-bottom: 1.25rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.progress-percent {
    font-weight: 600;
    color: var(--primary-light);
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.preview-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.875rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.action-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.preview-transactions {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
}

.transaction-header {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
}

.transaction-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transaction-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.transaction-time {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #22c55e;
    flex-shrink: 0;
}

.transaction-votes {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Mode Comparison Section */
.modes-section {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.mode-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.mode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mode-card.simple-mode {
    border-color: rgba(34, 197, 94, 0.3);
}

.mode-card.simple-mode:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
}

.mode-card.blockchain-mode {
    border-color: rgba(99, 102, 241, 0.3);
}

.mode-card.blockchain-mode:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.mode-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.simple-mode .mode-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.blockchain-mode .mode-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.mode-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mode-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.mode-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-check {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.mode-feature span:last-child {
    line-height: 1.5;
    color: var(--text);
}

.mode-ideal {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.mode-ideal strong {
    color: var(--primary-light);
}

.mode-comparison-note {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mode-comparison-note p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.mode-comparison-note strong {
    color: var(--text);
    font-weight: 600;
}

.workflow-mode {
    margin-bottom: 2rem;
}

.workflow-mode-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.steps {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
}

.step-reverse {
    grid-template-columns: 80px 1fr 1fr;
}

.step-reverse .step-content {
    order: 2;
}

.step-reverse .step-visual {
    order: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--text-secondary);
}

.visual-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.visual-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.visual-text {
    font-weight: 600;
}

/* Benefits Section */
.benefits {
    padding: 8rem 0;
    background: var(--dark);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    margin-bottom: 0.5rem;
}

.benefit-text p {
    color: var(--text-secondary);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    font-weight: 600;
    color: var(--primary-light);
}

.check {
    color: var(--success);
}

.cross {
    color: var(--danger);
}

/* Use Cases Section */
.use-cases {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.use-case-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    margin-bottom: 0.75rem;
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq {
    padding: 8rem 0;
    background: var(--dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h4 {
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    background: var(--bg-dark);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--dark-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a,
    .nav-links .btn {
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .app-preview {
        padding: 1.75rem 1rem 1.25rem;
    }
    
    .preview-stats {
        padding: 0.875rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
    }
    
    .mode-card {
        padding: 2rem;
    }
    
    .mode-title {
        font-size: 1.5rem;
    }
    
    .workflow-mode-title {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-reverse .step-content,
    .step-reverse .step-visual {
        order: initial;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SETTINGS MODAL & CONTROLS
   ============================================ */

/* Settings Button in Navigation */
.settings-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Settings Modal */
.settings-modal {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .settings-modal {
    transform: scale(1);
}

/* Settings Header */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    transform: rotate(90deg);
}

/* Settings Content */
.settings-content {
    padding: 2rem;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.setting-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
}

.setting-option:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(4px);
}

.setting-option.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Better contrast for inactive options */
.setting-option:not(.active) {
    opacity: 0.7;
}

.setting-option:not(.active):hover {
    opacity: 0.9;
}

.option-flag,
.option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.setting-option span:nth-child(2) {
    flex: 1;
}

.option-check {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.setting-option.active .option-check {
    opacity: 1;
}

/* Light Mode: ALL buttons MUST have dark text for contrast */
[data-theme="light"] .setting-option,
[data-theme="light"] .setting-option span,
[data-theme="light"] .setting-option.active,
[data-theme="light"] .setting-option.active span {
    color: #0f172a !important;
}

/* Active button backgrounds for better visibility */
[data-theme="dark"] .setting-option.active {
    background: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .setting-option.active {
    background: rgba(99, 102, 241, 0.2);
}

/* Light mode border improvements */
[data-theme="light"] .setting-option {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .setting-option:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .setting-option.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ============================================ */
/* LIGHT MODE ENHANCEMENTS */
/* ============================================ */

/* Hero Section Light Mode */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e9f0ff 50%, #fff5f8 100%);
}

[data-theme="light"] .hero-shape {
    opacity: 0.15;
}

[data-theme="light"] .shape-1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

[data-theme="light"] .shape-2 {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

[data-theme="light"] .shape-3 {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

/* Text Enhancements Light Mode */
[data-theme="light"] .hero-title {
    color: #0f172a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-subtitle {
    color: #475569;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats Light Mode */
[data-theme="light"] .stat-value {
    color: #6366f1;
    font-weight: 800;
}

[data-theme="light"] .stat-label {
    color: #64748b;
}

/* Buttons Light Mode */
[data-theme="light"] .btn-secondary {
    background: #ffffff;
    color: #6366f1;
    border: 2px solid #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    background: #f0f4ff;
    border-color: #4f46e5;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* Phone Mockup Light Mode */
[data-theme="light"] .phone-mockup {
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .phone-notch {
    background: #94a3b8;
}

[data-theme="light"] .phone-screen {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Feature Cards Light Mode */
[data-theme="light"] .feature-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .feature-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-8px);
}

[data-theme="light"] .feature-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .feature-title {
    color: #0f172a;
}

[data-theme="light"] .feature-description {
    color: #475569;
}

/* How It Works Light Mode */
[data-theme="light"] .how-it-works {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

[data-theme="light"] .step-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .step-title {
    color: #0f172a;
}

[data-theme="light"] .step-description {
    color: #475569;
}

/* Benefits Light Mode */
[data-theme="light"] .benefit-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .benefit-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .benefit-emoji {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

/* CTA Section Light Mode */
[data-theme="light"] .cta {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
}

[data-theme="light"] .cta h2,
[data-theme="light"] .cta p {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Light Mode */
[data-theme="light"] .footer {
    background: #0f172a;
}

/* Sections Light Mode */
[data-theme="light"] .features,
[data-theme="light"] .benefits {
    background: #ffffff;
}

[data-theme="light"] .modes-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

[data-theme="light"] .how-it-works {
    background: linear-gradient(135deg, #fef3f2 0%, #fff7ed 100%);
}

[data-theme="light"] .use-cases {
    background: linear-gradient(135deg, #f0fdf4 0%, #f0fdfa 100%);
}

[data-theme="light"] .faq {
    background: linear-gradient(135deg, #faf5ff 0%, #fef2f2 100%);
}

[data-theme="light"] .section-title {
    color: #0f172a;
}

[data-theme="light"] .section-subtitle {
    color: #475569;
}

/* Mode Cards Light Mode */
[data-theme="light"] .mode-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mode-card.simple-mode {
    border-color: #86efac;
}

[data-theme="light"] .mode-card.simple-mode:hover {
    border-color: #22c55e;
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

[data-theme="light"] .mode-card.blockchain-mode {
    border-color: #c7d2fe;
}

[data-theme="light"] .mode-card.blockchain-mode:hover {
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

/* Use Case Cards Light Mode */
[data-theme="light"] .use-case-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .use-case-card:hover {
    border-color: #6366f1;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .use-case-card h3 {
    color: #0f172a;
}

[data-theme="light"] .use-case-card p {
    color: #64748b;
}

/* How It Works Light Mode */
[data-theme="light"] .visual-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* FAQ Light Mode */
[data-theme="light"] .faq-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
}

[data-theme="light"] .faq-item.active {
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .faq-question {
    color: #0f172a;
}

[data-theme="light"] .faq-answer {
    color: #475569;
}

/* Preview Elements Light Mode */
[data-theme="light"] .preview-header {
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .preview-name {
    color: #0f172a;
}

[data-theme="light"] .preview-meta {
    color: #64748b;
}

[data-theme="light"] .preview-stats {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .stat-value {
    color: #6366f1;
}

[data-theme="light"] .stat-label {
    color: #64748b;
}

[data-theme="light"] .action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .action-card:hover {
    background: #f0f4ff;
    border-color: #c7d2fe;
}

[data-theme="light"] .action-label {
    color: #475569;
}

[data-theme="light"] .preview-transactions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .transaction-header {
    color: #64748b;
}

[data-theme="light"] .progress-bar {
    background: #e2e8f0;
}

/* Mobile Menu Light Mode */
[data-theme="light"] .mobile-menu-btn span {
    background: #0f172a;
}

[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Settings Button Light Mode */
[data-theme="light"] .settings-btn {
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid #6366f1;
    color: #4f46e5;
}

[data-theme="light"] .settings-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #4f46e5;
}

/* Launch App Button Light Mode */
[data-theme="light"] .nav-links .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
    font-weight: 700;
}

[data-theme="light"] .nav-links .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.7);
    transform: translateY(-2px);
}

/* Responsive Settings Modal */
@media (max-width: 640px) {
    .settings-modal {
        width: 95%;
        max-height: 85vh;
    }

    .settings-header,
    .settings-content {
        padding: 1.5rem;
    }

    .settings-header h2 {
        font-size: 1.25rem;
    }

    .setting-option {
        padding: 0.875rem 1rem;
    }
}

/* Features Redesigned Section - Theme Support */
.features-redesigned {
    padding: 5rem 0;
    background: var(--bg-dark);
}

[data-theme="light"] .features-redesigned {
    background: #f8f9fa;
}

[data-theme="dark"] .features-redesigned {
    background: var(--dark);
}
