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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-card: #1a1a24;
    --border: #2d2d3d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--primary);
}

.hero-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--glow);
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.issue-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.issue-option {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.issue-option:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.issue-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--glow);
}

.issue-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.issue-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.issue-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.trust-item svg {
    color: #fbbf24;
}

.stats-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.connect-main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.connect-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.progress-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 0.5rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.progress-item.active .progress-dot {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.progress-item span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-item.active span {
    color: var(--primary);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--border);
}

.step-panel h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.step-desc strong {
    color: var(--primary);
    font-weight: 600;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.network-item,
.wallet-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.network-item:hover,
.wallet-item:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.network-item.selected,
.wallet-item.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: var(--glow);
}

.network-icon,
.wallet-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-item img,
.wallet-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.network-name,
.wallet-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.network-symbol {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.primary-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--glow);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.primary-btn:disabled {
    background: var(--bg-secondary);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.hidden {
    display: none !important;
}

.connection-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.connection-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.manual-box {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.manual-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.manual-header svg {
    color: #f59e0b;
}

.manual-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.manual-box > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.success-box {
    text-align: center;
    padding: 2.5rem;
}

.success-icon {
    margin: 0 auto 1.5rem;
    width: 64px;
    height: 64px;
}

.success-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 0.5rem;
}

.success-box p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.live-activity {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.live-activity-text {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.live-activity-text strong {
    color: var(--primary);
    font-weight: 600;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.trust-badge:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.trust-badge svg {
    color: #10b981;
}

.signature-explanation {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: left;
}

.signature-explanation h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signature-explanation p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.signature-explanation ul {
    list-style: none;
    padding-left: 0;
}

.signature-explanation ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.signature-explanation ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

.testimonials {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.testimonials h2 {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .nav-brand {
        font-size: 0.9375rem;
    }

    .nav-brand svg {
        width: 24px;
        height: 24px;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 1.5rem 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
    }

    .issue-selector {
        grid-template-columns: 1fr;
        gap: 0.625rem;
        margin-bottom: 1.5rem;
    }

    .issue-option {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .issue-icon {
        width: 40px;
        height: 40px;
    }

    .issue-icon svg {
        width: 18px;
        height: 18px;
    }

    .issue-text h3 {
        font-size: 0.875rem;
    }

    .issue-text p {
        font-size: 0.75rem;
    }

    .cta-button {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .trust-indicators {
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .connect-main {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }

    .connect-container {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .progress-tracker {
        gap: 0.125rem;
        margin-bottom: 1.25rem;
        overflow-x: auto;
        padding: 0.375rem 0;
        -webkit-overflow-scrolling: touch;
    }

    .progress-line {
        width: 16px;
        flex-shrink: 0;
    }

    .progress-item {
        flex-shrink: 0;
    }

    .progress-item span {
        font-size: 0.5625rem;
        white-space: nowrap;
    }

    .progress-dot {
        width: 20px;
        height: 20px;
    }

    .step-panel h2 {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }

    .step-desc {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .selection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .network-item,
    .wallet-item {
        padding: 0.625rem 0.375rem;
        gap: 0.375rem;
    }

    .network-icon,
    .wallet-icon {
        width: 40px;
        height: 40px;
    }

    .network-item img,
    .wallet-item img {
        width: 32px;
        height: 32px;
    }

    .network-name,
    .wallet-name {
        font-size: 0.6875rem;
        line-height: 1.2;
    }

    .network-symbol {
        font-size: 0.625rem;
    }

    .primary-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .connection-box {
        padding: 1.5rem 1rem;
    }

    .loader {
        width: 36px;
        height: 36px;
        margin-bottom: 1rem;
    }

    .connection-text {
        font-size: 0.875rem;
    }

    .manual-box {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .manual-header h3 {
        font-size: 0.9375rem;
    }

    .manual-box > p {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.875rem;
    }

    .form-group label {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }

    .form-group small {
        font-size: 0.6875rem;
    }

    .success-box {
        padding: 1.75rem 1.25rem;
    }

    .success-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .success-box h3 {
        font-size: 1.125rem;
    }

    .success-box p {
        font-size: 0.875rem;
    }

    .live-activity {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }

    .testimonials {
        padding: 0 0.75rem;
        margin: 1.5rem auto;
    }

    .testimonials h2 {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }

    .testimonial-info h4 {
        font-size: 0.875rem;
    }

    .testimonial-info p {
        font-size: 0.6875rem;
    }

    .testimonial-text {
        font-size: 0.8125rem;
    }

    .signature-explanation {
        padding: 0.875rem;
        margin: 1rem 0;
    }

    .signature-explanation h4 {
        font-size: 0.875rem;
    }

    .signature-explanation p {
        font-size: 0.8125rem;
    }

    .trust-badges {
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .trust-badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .network-item,
    .wallet-item {
        padding: 0.625rem 0.375rem;
    }

    .network-name,
    .wallet-name {
        font-size: 0.6875rem;
    }
}
