/* OpenAmbient Website Styles */
/* Norwegian Arctic Blue Theme with Strong Red Accents */

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

:root {
    /* Norwegian Arctic Deep Blues */
    --bg-dark: #0d1b2a;
    --bg-section: #1b3a4b;
    --bg-card: #2c5f7c;
    
    /* Text */
    --text-light: #e0e0e0;
    --text-dim: #8aa4b8;
    
    /* Strong Red Accents */
    --accent-red: #ff0033;
    --accent-red-glow: rgba(255, 0, 51, 0.3);
    
    /* Glacier Blue for subtle highlights */
    --glacier: #a8d8ea;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(13, 27, 42, 0.95);
    border-bottom: 2px solid var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav .logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-red);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

nav .nav-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

nav .nav-links a:hover {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

nav .status-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-red);
    text-decoration: none;
    border: 2px solid var(--accent-red);
    padding: 0.4rem 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav .status-badge:hover {
    background: var(--accent-red);
    color: var(--bg-dark);
}

nav .status-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

nav .status-badge:hover .pulse {
    background: var(--bg-dark);
}

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

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, 
        var(--bg-dark) 0%, 
        var(--bg-section) 50%, 
        var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, var(--accent-red-glow) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 0 0 60px var(--accent-red-glow);
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
    position: relative;
}

.hero h1 span {
    color: var(--accent-red);
}

.hero .subtitle {
    font-size: 1.4rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero .meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.hero .meta a {
    color: var(--accent-red);
    text-decoration: none;
}

.hero .meta a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 2px solid var(--accent-red);
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2::before {
    content: '●';
    font-size: 0.8rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 2rem 0 1rem;
    border-left: 3px solid var(--accent-red);
    padding-left: 1rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-red);
    margin: 1.5rem 0 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

blockquote {
    border-left: 4px solid var(--accent-red);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 0, 51, 0.1);
    font-style: italic;
    color: var(--text-light);
    font-size: 1.2rem;
}

blockquote .attribution {
    font-size: 0.9rem;
    color: var(--accent-red);
    font-style: normal;
    margin-top: 0.5rem;
}

/* Links */
a {
    color: var(--accent-red);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    text-decoration: underline;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

th {
    background: var(--accent-red);
    color: var(--bg-dark);
    text-align: left;
    padding: 0.8rem;
    font-weight: 700;
}

td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--bg-section);
    background: rgba(27, 58, 75, 0.3);
}

tr:hover td {
    background: rgba(255, 0, 51, 0.1);
}

/* Code blocks */
pre {
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-red);
}

code {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--glacier);
}

/* Diagram */
.diagram {
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--glacier);
    white-space: pre;
    overflow-x: auto;
    border: 2px solid var(--accent-red);
}

/* Lists */
ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin-bottom: 0.5rem;
}

li::marker {
    color: var(--accent-red);
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.partner-card {
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 4px;
    border: 2px solid transparent;
    text-align: center;
    transition: all 0.3s;
}

.partner-card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.partner-card.primary {
    border-color: var(--accent-red);
    background: rgba(255, 0, 51, 0.1);
}

.partner-card h4 {
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.partner-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.partner-card a {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-red);
}

/* Resource Cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.resource-card {
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--accent-red);
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateX(5px);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.resource-card.priority {
    background: rgba(255, 0, 51, 0.15);
    border-left-width: 6px;
}

.resource-card h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-card .cost {
    font-family: 'Space Mono', monospace;
    color: var(--accent-red);
    font-size: 1.1rem;
    font-weight: 700;
}

.resource-card .status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: var(--accent-red);
    color: var(--bg-dark);
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-red);
}

.timeline-item {
    padding-left: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--accent-red);
    border-radius: 50%;
}

.timeline-item.completed::before {
    background: var(--glacier);
}

.timeline-item h4 {
    margin-top: 0;
}

.timeline-item .date {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-red);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 2px solid var(--accent-red);
    background: var(--bg-section);
}

footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

footer a {
    color: var(--accent-red);
}

footer .footer-logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    nav .nav-links {
        display: none;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Red accent boxes */
.highlight-box {
    background: rgba(255, 0, 51, 0.1);
    border: 2px solid var(--accent-red);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    margin-top: 0;
    color: var(--accent-red);
}

/* Stream visualization */
.streams-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.stream-bar {
    background: var(--bg-section);
    border: 2px solid var(--accent-red);
    padding: 1rem;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
}

.stream-bar .bpm {
    font-size: 1.5rem;
    color: var(--accent-red);
    font-weight: 700;
}

.stream-bar .label {
    color: var(--text-dim);
}
