/* 
   OfoNet Airport - Deep Space Aerospace Theme
*/
:root {
    --bg-color: #0A0E1C;
    --panel-color: #131A30;
    --text-primary: #E8ECF5;
    --text-muted: #7C86A0;
    --accent-teal: #45E0C0;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --divider-color: #1C243B;
    --hairline: 1px solid var(--divider-color);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo span {
    font-family: var(--font-head);
    font-weight: 500;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

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

.hairline {
    border: 0;
    border-top: var(--hairline);
    margin: 0;
}

.panel {
    background-color: var(--panel-color);
    border: var(--hairline);
    border-radius: 4px; /* precise, slight rounding */
}

/* Network Status Strip */
.network-strip {
    background-color: #050813;
    border-bottom: var(--hairline);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 6px 0;
}

.strip-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.status-indicator {
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-teal);
    animation: pulse 2s infinite;
}

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

@media (max-width: 768px) {
    .strip-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Header Navbar */
.navbar {
    background-color: rgba(10, 14, 28, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.navbar nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 2px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-teal);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #35c4a6;
    box-shadow: 0 0 15px rgba(69, 224, 192, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(255,255,255,0.05);
}

.btn-large {
    padding: 14px 32px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Dotted Route Line Layout */
.route-layout {
    display: flex;
    position: relative;
    padding-top: 40px;
}

.route-line {
    width: 2px;
    background-image: linear-gradient(to bottom, var(--divider-color) 50%, transparent 50%);
    background-size: 2px 10px;
    margin-right: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.route-content {
    flex-grow: 1;
    min-width: 0;
}

.node-marker {
    position: absolute;
    left: -46.5px;
    top: 110px;
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent-teal);
    background-color: var(--bg-color);
    border-radius: 50%;
}

/* Hero Section */
.hero {
    text-align: left;
    padding-top: 60px;
}
.hero .node-marker { top: 70px; }

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

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

.feature-card {
    padding: 30px;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-teal);
}

.feature-card .icon {
    font-family: var(--font-mono);
    color: var(--accent-teal);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pricing-card {
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.highlight {
    border-color: var(--accent-teal);
}

.badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--accent-teal);
    color: #000;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 30px;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-list li {
    padding: 12px 0;
    border-bottom: var(--hairline);
    font-size: 0.95rem;
}

.pricing-list li span {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-right: 10px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    padding: 25px 30px;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-teal);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    border-top: var(--hairline);
    padding: 50px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #4a546d;
}

/* Subpages Container */
.page-content {
    padding: 40px;
    margin: 40px 0;
}

.page-content h1, .page-content h2, .page-content h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 40px;
}

.page-content h1 {
    margin-top: 0;
    border-bottom: var(--hairline);
    padding-bottom: 20px;
    color: var(--accent-teal);
}

.page-content p, .page-content ul {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.page-content ul {
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .route-line { display: none; }
    .node-marker { display: none; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    
    .navbar nav {
        margin: 20px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        padding: 15px;
    }
}

/* Article List & Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
}

.article-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-teal);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-card p.excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 25px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: var(--hairline);
    padding-top: 15px;
}

.article-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.read-more-link {
    color: var(--accent-teal);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Article Page Specifics */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--accent-teal);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: var(--hairline);
    padding-bottom: 30px;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-header-meta {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--accent-teal);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: #E8ECF5;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.article-content a {
    color: var(--accent-teal);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-teal);
}

.article-content a:hover {
    color: #fff;
    border-bottom-style: solid;
}

.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: var(--hairline);
}

.related-articles h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-articles-list a {
    display: block;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.related-articles-list a:hover {
    background: rgba(255,255,255,0.08);
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--panel-color);
    color: var(--accent-teal);
    border: 1px solid var(--accent-teal);
    padding: 12px 20px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.floating-btn:hover {
    background-color: var(--accent-teal);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(69, 224, 192, 0.4);
}

@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* Article Flow Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: var(--hairline);
}

.article-nav a {
    display: block;
    width: 48%;
    padding: 20px;
    background: var(--panel-color);
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.article-nav a:hover {
    border-color: var(--accent-teal);
    background: rgba(69, 224, 192, 0.05);
}

.article-nav .nav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.article-nav .nav-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--accent-teal);
}

.nav-prev { text-align: left; }
.nav-next { text-align: right; }

/* Hero Image Integration */
.hero-visual {
    position: relative;
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    border: var(--hairline);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
    opacity: 0.8;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,14,28,0.1) 0%, var(--bg-color) 100%);
    pointer-events: none;
}
