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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a0f0f 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 69, 0, 0.08) 0%, transparent 50%);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

.logo-text {
    margin-left: 8px;
    background: linear-gradient(135deg, #ff6b00, #ffae00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b00;
}

.hero-content {
    text-align: center;
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(135deg, #ff6b00, #ffae00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.8);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b00, #ffae00);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
}

/* Demo Section */
.demo-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
    color: white;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.demo-input, .demo-output {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-input h3, .demo-output h3 {
    margin-bottom: 20px;
    color: #ff6b00;
}

#demo-text {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 20px;
}

.btn-analyze {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b00, #ffae00);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-analyze:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.analysis-pending {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ff6b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.analysis-result {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff6b00;
}

.uncertainty-score {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 10px;
}

.risk-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.risk-critical { background: #dc3545; color: white; }
.risk-warning { background: #ffc107; color: black; }
.risk-safe { background: #28a745; color: white; }

.demo-examples {
    text-align: center;
}

.demo-examples h3 {
    margin-bottom: 20px;
    color: #ff6b00;
}

.example-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-example {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-example:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: #ff6b00;
}

/* Technology Section */
.tech-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tech-card h3 {
    color: #ff6b00;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.equation {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 107, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.risk-classification {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.risk-classification h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b00;
}

.risk-levels {
    display: grid;
    gap: 20px;
}

.risk-level {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid;
}

.risk-level.critical {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.risk-level.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.risk-level.safe {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.risk-icon {
    font-size: 1.5rem;
}

.risk-info strong {
    color: #ff6b00;
    display: block;
    margin-bottom: 5px;
}

/* Performance Section */
.performance-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    color: white;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.perf-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.perf-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
}

.perf-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 10px;
}

.perf-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.perf-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.scale-progression {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scale-progression h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b00;
}

.progression-chart {
    display: grid;
    gap: 20px;
}

.phase {
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    align-items: center;
    gap: 20px;
}

.phase-label {
    font-weight: 600;
    color: #ff6b00;
}

.phase-bar {
    height: 30px;
    border-radius: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
}

.phase-1 { background: linear-gradient(90deg, #ff6b00 0%, #ff6b00 20%, rgba(255, 255, 255, 0.1) 20%); }
.phase-2 { background: linear-gradient(90deg, #ff8800 0%, #ff8800 35%, rgba(255, 255, 255, 0.1) 35%); }
.phase-3 { background: linear-gradient(90deg, #ffae00 0%, #ffae00 100%); }

.phase-metric {
    font-weight: 600;
    color: white;
    text-align: right;
}

/* Blockchain Section */
.blockchain-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
}

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

.blockchain-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.blockchain-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
}

.blockchain-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blockchain-card h3 {
    color: #ff6b00;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    color: #ff6b00;
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.about-text strong {
    color: #ff6b00;
}

.demo-callout {
    background: rgba(255, 107, 0, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #ff6b00;
    text-align: center;
    position: sticky;
    top: 100px;
}

.demo-callout h3 {
    color: #ff6b00;
    margin-bottom: 15px;
}

.btn-github {
    display: inline-block;
    padding: 12px 25px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-github:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b00;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .phase {
        grid-template-columns: 80px 1fr 100px;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}