/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    /* Dark palette (hero) */
    --bg-deep:       #080B10;
    --yellow:        #FACC15;
    --cyan:          #22D3EE;
    --text-bright:   #FDF8E1;
    --text-muted:    #9CA3AF;
    --border-dark:   rgba(255,255,255,0.08);

    /* Light palette (article) */
    --white:         #FFFFFF;
    --off-white:     #F8F7F4;
    --article-text:  #1A1A2E;
    --article-muted: #6B7280;
    --article-rule:  #E5E7EB;
    --accent:        #0F2A4A;   /* deep navy — strong, authoritative */
    --accent-mid:    #1D4ED8;   /* blue for links / highlights */
    --accent-warm:   #D97706;   /* amber — matches radar heat map */

    /* Bands */
    --band-dark:     #0D1117;
    --band-mid:      #111827;
    --band-stats:    #0F2A4A;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Lora', Georgia, serif;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-bright);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('ireland_satellite.png');
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    animation: hero-pan 30s ease-in-out infinite alternate;
}

@keyframes hero-pan {
    0%   { background-position: 40% 45%; background-size: 120%; }
    50%  { background-position: 55% 50%; background-size: 125%; }
    100% { background-position: 48% 55%; background-size: 120%; }
}

#star-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(8,11,16,0.85) 0%,
            rgba(8,11,16,0.30) 40%,
            rgba(8,11,16,0.30) 60%,
            rgba(8,11,16,0.92) 100%),
        linear-gradient(to right,
            rgba(8,11,16,0.75) 0%,
            rgba(8,11,16,0.10) 50%,
            rgba(8,11,16,0.0)  100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    animation: hero-fade-in 1.8s ease forwards;
    opacity: 0;
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.telemetry-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.07em;
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.pulse { animation: pulse-ring 2.2s ease-out infinite; }

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0   rgba(34,211,238,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
    100% { box-shadow: 0 0 0 0   rgba(34,211,238,0); }
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-bright);
    text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.35);
    animation: bounce 2.5s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   BAND SYSTEM
   ============================================= */
.band { width: 100%; }
.band-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.text-center { text-align: center; }

/* ── ① INTRO BAND ── */
.band--intro {
    background: var(--band-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.2rem;
}
.eyebrow--light { color: var(--yellow); }

.band-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.band-body {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 620px;
}

.band--intro .band-inner { padding: 4.5rem 2rem; }

/* ── ② IMAGE BAND ── */
.band--image {
    background: #0A0D13;
    padding: 0;
}

.feature-figure {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    max-height: 520px;
    display: flex;
    flex-direction: column;
}

.feature-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.feature-figure:hover .feature-img { transform: scale(1.02); }
.feature-figure:focus { outline: 2px solid var(--cyan); outline-offset: -2px; }

.feature-caption {
    background: #0D1117;
    padding: 1rem 2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-caption strong { color: var(--text-bright); }

.zoom-hint {
    color: var(--cyan);
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.feature-figure:hover .zoom-hint { opacity: 1; }

.image-zoom-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 7px 9px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.feature-figure:hover .image-zoom-icon { opacity: 1; }

/* ── ③ ARTICLE BAND — WHITE ── */
.band--article {
    background: var(--white);
}

.article-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem 5rem;
    color: var(--article-text);
}

/* ---- Markdown typography on white ---- */
.article-inner h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--accent);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--article-rule);
}

/* Each h3 becomes a section divider */
.article-inner h3 {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-top: 3.5rem;
    margin-bottom: 0.9rem;
    padding-top: 3rem;
    border-top: 1px solid var(--article-rule);
}

/* First h3 gets no top border */
.article-inner h3:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-inner h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
}

.article-inner p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #2D3748;
    margin-bottom: 1.5rem;
}

.article-inner strong {
    color: var(--accent);
    font-weight: 600;
}

.article-inner em {
    color: #4A5568;
    font-style: italic;
}

.article-inner ul, .article-inner ol {
    margin: 0 0 1.5rem 1.5rem;
}
.article-inner li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

/* Pull quote / blockquote */
.article-inner blockquote {
    border-left: 4px solid var(--accent-warm);
    background: #FFFBEB;
    padding: 1.25rem 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: #78350F;
    line-height: 1.7;
}

/* ── ④ STATS BAND ── */
.band--stats {
    background: var(--band-stats);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 160px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

/* ── ⑤ CTA BAND ── */
.band--cta {
    background: var(--band-dark);
}

.band--cta .band-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.band--cta .band-body {
    text-align: center;
    max-width: 560px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-dark);
    background: #0D1117;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.lightbox.is-open { opacity: 1; pointer-events: all; }

.lightbox-img {
    max-width: 94vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
    transform: scale(0.92);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.is-open .lightbox-img { transform: scale(1); }

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* =============================================
   LOADING STATE
   ============================================= */
.loading {
    text-align: center;
    color: var(--article-muted);
    font-style: italic;
    padding: 3rem 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 680px) {
    .hero-title { font-size: 3.2rem; }
    .stat-divider { display: none; }
    .stats-inner { gap: 2rem; }
    .feature-caption { flex-direction: column; align-items: flex-start; }
    .band-inner { padding: 3rem 1.5rem; }
    .article-inner { padding: 3rem 1.5rem; }
}
