:root {
    /* Official Monad Brand Colors */
    --monad-purple: #6E54FF;
    --monad-purple-light: #DDD7FE;
    --monad-cyan: #85E6FF;
    --monad-blue-light: #B9E3F9;
    --monad-pink: #FF8EE4;
    --monad-orange: #FFAE45;
    --monad-dark: #0E091C;
    --monad-darker: #000000;
    
    /* Light Theme (Default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAFC;
    --bg-tertiary: #EDF2F7;
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-bg-solid: rgba(255, 255, 255, 0.98);
    --card-border: rgba(110, 84, 255, 0.3);
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
    --input-bg: rgba(110, 84, 255, 0.05);
    --input-border: rgba(110, 84, 255, 0.3);
    --shadow-color: rgba(110, 84, 255, 0.15);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0E091C;
    --bg-tertiary: #1a1425;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;
    --card-bg: rgba(14, 9, 28, 0.6);
    --card-bg-solid: rgba(14, 9, 28, 0.95);
    --card-border: rgba(110, 84, 255, 0.2);
    --navbar-bg: rgba(14, 9, 28, 0.8);
    --navbar-bg-scrolled: rgba(14, 9, 28, 0.95);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(110, 84, 255, 0.3);
    --shadow-color: rgba(110, 84, 255, 0.2);
}

/* Light theme specific adjustments */
[data-theme="light"] .about-background {
    opacity: 0.5;
}

[data-theme="light"] .validator-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stat-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

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

/* Typography - Monad Brand Guidelines */
h1, h2, h3, .hero-title, .section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.btn, .nav-links a, .stat-label, .benefit-icon {
    font-family: 'Roboto Mono', monospace;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 32px;
    width: auto;
    transition: filter 0.3s ease;
}

[data-theme="light"] .logo-image {
    filter: brightness(0.8);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--monad-purple), var(--monad-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

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

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

.btn-partner {
    background: linear-gradient(135deg, var(--monad-purple), var(--monad-cyan));
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-partner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(110, 84, 255, 0.4);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s ease;
    margin-left: 20px;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-color);
    border-color: var(--monad-purple);
}

.theme-toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: hidden;
}

/* Hero as Secondary Section (below validators) */
.hero-secondary {
    min-height: 70vh;
    padding-top: 100px;
    padding-bottom: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(110, 84, 255, 0.2), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(133, 230, 255, 0.15), transparent 50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--monad-purple), var(--monad-cyan));
    color: white;
    border: none;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--card-border);
}

.btn-secondary:hover {
    border-color: var(--monad-purple);
    background: rgba(110, 84, 255, 0.1);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s, background-color 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--monad-purple);
    box-shadow: 0 10px 30px rgba(110, 84, 255, 0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--monad-purple), var(--monad-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

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

/* Sections */
.section {
    padding: 100px 0;
}

/* About Section with Hero */
.about-section {
    position: relative;
    padding-top: 120px;
    padding-bottom: 120px;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(110, 84, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(133, 230, 255, 0.1), transparent 50%);
    z-index: -1;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--monad-purple);
    box-shadow: 0 15px 40px rgba(110, 84, 255, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(180deg, transparent, rgba(110, 84, 255, 0.08), transparent);
}

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

.step-card {
    text-align: center;
    padding: 40px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--monad-purple), var(--monad-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Validators Section */
.validators-section {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    position: relative;
    transition: background-color 0.3s ease;
}

.validators-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--monad-purple), transparent);
}

/* Validators at Top of Page */
.validators-top {
    padding-top: 120px !important;
    padding-bottom: 100px !important;
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.validators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    min-height: 500px;
    max-width: 600px;
    margin: 0 auto;
}

/* Validator Cards */
.validator-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s, background-color 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.validator-card:hover {
    transform: translateY(-5px);
    border-color: var(--monad-purple);
    box-shadow: 0 15px 40px rgba(110, 84, 255, 0.3);
}

.validator-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.validator-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.validator-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.validator-logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--monad-purple), var(--monad-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.validator-info {
    flex: 1;
}

.validator-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.validator-tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

.validator-badge {
    flex-shrink: 0;
}

.badge-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.validator-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: background-color 0.3s ease;
}

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

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: 'Roboto Mono', monospace;
}

.stat-value-small {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--monad-purple), var(--monad-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.validator-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.validator-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.validator-btn {
    width: 100%;
    text-align: center;
}

.validator-link {
    color: var(--monad-purple);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
}

.validator-link:hover {
    color: var(--monad-cyan);
    transform: translateX(4px);
}

/* Placeholder Card */
.validator-placeholder-card {
    background: transparent;
    border: 2px dashed var(--card-border);
}

.validator-placeholder-card:hover {
    transform: none;
    border-color: var(--monad-purple);
    box-shadow: none;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    gap: 16px;
}

.validator-placeholder {
    background: var(--card-bg);
    border: 2px dashed var(--card-border);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.validator-placeholder h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.validator-placeholder p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Partner Section */
.partner-section {
    background: linear-gradient(135deg, rgba(110, 84, 255, 0.1), rgba(133, 230, 255, 0.1));
}

.partner-content {
    max-width: 800px;
    margin: 0 auto;
}

.partner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0 60px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.benefit-icon {
    color: var(--monad-purple);
    font-weight: 800;
    font-size: 20px;
}

/* Contact Form */
.contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, background-color 0.3s;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-message {
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-logo-container:hover {
    opacity: 0.8;
}

.footer-logo-image {
    height: 28px;
    width: auto;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--monad-purple), var(--monad-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--monad-purple);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        height: 28px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .btn-partner {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .theme-toggle {
        width: 42px;
        height: 42px;
        margin-left: 10px;
    }
    
    .theme-toggle-icon {
        font-size: 18px;
    }
    
    .validators-top {
        padding-top: 100px !important;
        padding-bottom: 80px !important;
    }
    
    .about-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .validators-grid {
        grid-template-columns: 1fr;
    }
    
    .validator-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .validator-card {
        padding: 24px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .nav-links a:not(.btn-partner) {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .validator-header {
        flex-wrap: wrap;
    }
    
    .validator-badge {
        width: 100%;
        margin-top: 12px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--monad-purple);
    color: white;
}

