/* style.css */
:root {
    --bg-abyss: #07080F;
    --surface: #12172B;
    --border-hairline: rgba(233, 237, 245, 0.12);
    --text-moon: #E9EDF5;
    --text-sec: #8A93AD;
    --accent: #FF9E5E;
    --font-display: 'Fraunces', serif;
    --font-ui: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-abyss);
    color: var(--text-moon);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--text-moon);
    transition: color 0.5s ease-out;
}

a:hover {
    color: var(--accent);
}

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

/* Micro-labels */
.micro-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-sec);
    display: block;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-hairline);
    background: transparent;
    color: var(--text-moon);
    cursor: pointer;
    transition: all 0.5s ease-out;
    border-radius: 0; /* precise observatory feel */
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-abyss);
    border-color: var(--accent);
    font-weight: 600;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--text-moon);
    border: 1px solid var(--border-hairline);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--text-moon);
}

/* Header */
.header {
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(7, 8, 15, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.logo-svg {
    width: 24px;
    height: 24px;
}

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

.nav a {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0;
    text-align: center;
    overflow: hidden;
}

/* Subtle radial vignette suggesting depth */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vw;
    background: radial-gradient(circle, rgba(255, 158, 94, 0.04) 0%, rgba(7, 8, 15, 0) 50%);
    z-index: 1;
    pointer-events: none;
}

/* Slow star-drift parallax */
.hero-stars, .hero-stars-slow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    z-index: 0;
    pointer-events: none;
}

.hero-stars {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, var(--text-sec), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 70px, var(--text-sec), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 250px 160px, var(--text-moon), rgba(0,0,0,0));
    background-size: 300px 300px;
    animation: drift 120s linear infinite;
    opacity: 0.4;
}

.hero-stars-slow {
    background-image: 
        radial-gradient(1.5px 1.5px at 10px 10px, var(--text-moon), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 120px 250px, var(--text-moon), rgba(0,0,0,0));
    background-size: 400px 400px;
    animation: drift 180s linear infinite reverse;
    opacity: 0.2;
}

@keyframes drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-sec);
    max-width: 600px;
    margin: 0 auto 48px;
    font-weight: 300;
}

.resource-link {
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-sec);
    border-top: 1px solid var(--border-hairline);
    padding-top: 20px;
    display: inline-block;
}

.resource-link a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Sections */
section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-hairline);
}

section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 60px;
    text-align: center;
}

/* Feature Grid */
.feature-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px; /* Hairline dividers between items */
    background: var(--border-hairline);
    border: 1px solid var(--border-hairline);
}

.feature-card, .pricing-card {
    background: var(--bg-abyss);
    padding: 60px 40px;
    transition: background 0.5s ease-out;
}

.feature-card:hover {
    background: var(--surface);
}

.feature-icon {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 24px;
    font-style: italic;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

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

/* Pricing Grid */
.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-card.highlight {
    background: var(--surface);
    position: relative;
}

.pricing-card.highlight::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
}

.price {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    margin: 20px 0 30px;
    color: var(--text-moon);
}

.price span {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-sec);
}

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

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-hairline);
    color: var(--text-sec);
    font-size: 0.9rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-hairline);
}

.faq-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-hairline);
}

.faq-item h4 {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
}

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

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-sec);
}

.footer-nav a:hover {
    color: var(--text-moon);
}

.copyright {
    font-size: 0.75rem;
    color: var(--border-hairline);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .header .btn {
        width: auto;
    }
}


/* --- New Article & Blog Layout Styles --- */
.article-layout { padding: 40px 0 120px; }
.breadcrumb { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-sec); margin-bottom: 40px; }
.breadcrumb a { color: var(--text-sec); }
.breadcrumb a:hover { color: var(--accent); }
.article-header { margin-bottom: 60px; border-bottom: 1px solid var(--border-hairline); padding-bottom: 40px; }
.article-header h1 { font-family: var(--font-display); font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 300; }
.article-meta { font-family: var(--font-ui); font-size: 0.9rem; color: var(--text-sec); display: flex; gap: 20px; }
.article-content { font-family: var(--font-ui); font-size: 1.05rem; line-height: 1.8; color: var(--text-moon); max-width: 800px; margin: 0 auto; }
.article-content h2 { font-family: var(--font-display); font-size: 2rem; margin: 60px 0 20px; font-weight: 300; color: var(--accent); }
.article-content h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 40px 0 16px; font-weight: 300; }
.article-content p { margin-bottom: 24px; }
.article-content ul, .article-content ol { margin: 0 0 24px 24px; }
.article-content li { margin-bottom: 10px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.article-content a:hover { background: rgba(255,158,94,0.1); }
.article-content blockquote { border-left: 2px solid var(--accent); padding-left: 20px; color: var(--text-sec); font-style: italic; margin: 30px 0; }

/* News Cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: var(--border-hairline); border: 1px solid var(--border-hairline); }
.news-card { background: var(--bg-abyss); padding: 40px; transition: background 0.5s ease-out; display: flex; flex-direction: column; }
.news-card:hover { background: var(--surface); }
.news-category { font-family: var(--font-ui); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 16px; display: block; }
.news-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; margin-bottom: 16px; line-height: 1.3; }
.news-card p { color: var(--text-sec); font-size: 0.95rem; flex-grow: 1; margin-bottom: 24px; line-height: 1.6; }
.news-meta { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-sec); display: flex; justify-content: space-between; border-top: 1px solid var(--border-hairline); padding-top: 20px; }

/* Hero Image */
.hero-image-wrapper {
    margin: 60px auto 0;
    max-width: 1000px;
    border: 1px solid var(--border-hairline);
    padding: 12px;
    background: rgba(18, 23, 43, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 8px;
}
.hero-image-wrapper img {
    width: 100%;
    display: block;
    border: 1px solid var(--border-hairline);
    opacity: 0.85;
    transition: opacity 0.5s ease;
    border-radius: 4px;
}
.hero-image-wrapper:hover img {
    opacity: 1;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(18, 23, 43, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-hairline);
    color: var(--text-moon);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.floating-btn:hover {
    background: var(--accent);
    color: var(--bg-abyss);
    border-color: var(--accent);
}
@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-hairline);
}
.article-nav a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-sec);
    max-width: 45%;
}
.article-nav a:hover {
    color: var(--accent);
}
.article-nav .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: var(--text-sec);
}
.article-nav .nav-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-moon);
    line-height: 1.4;
    font-weight: 300;
}
.article-nav a:hover .nav-title, .article-nav a:hover .nav-label {
    color: var(--accent);
}
.article-nav .next-post {
    text-align: right;
    align-items: flex-end;
}
