/* ==========================================================================
   NICOSMP SEASON 3 — "DEEPSLATE & ORE" THEME
   Dark stratified stone system with ore-coded accents.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    /* Stone */
    --bg: #14171a;
    --bg-alt: #1b1f23;
    --panel: #20262b;
    --panel-raised: #262d33;
    --border: #3a4248;
    --border-strong: #4d585f;

    /* Light */
    --text: #edf1ee;
    --muted: #93a09a;
    --muted-dim: #6c7a75;

    /* Ore */
    --emerald: #33d17a;
    --emerald-dim: #1d6b41;
    --copper: #e2853f;
    --gold: #e8c14a;
    --iron: #8fa3ad;

    --sp-8: 8px;
    --sp-12: 12px;
    --sp-16: 16px;
    --sp-24: 24px;
    --sp-32: 32px;
    --sp-48: 48px;
    --sp-64: 64px;

    --strata-h: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 3px;
}

/* Typography Hierarchy */
h1, h2, h3 {
    font-family: 'Big Shoulders Display', sans-serif;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}

h1 { font-size: 4rem; font-weight: 900; letter-spacing: -0.01em; line-height: 0.98; }
h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.005em; line-height: 1.02; margin-bottom: var(--sp-16); }
h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; margin-bottom: var(--sp-12); }
h4 { font-family: 'IBM Plex Sans', sans-serif; font-size: 1.05rem; font-weight: 700; margin: 0 0 var(--sp-8) 0; }
p { font-size: 1.02rem; font-weight: 400; line-height: 1.65; margin: 0; color: var(--muted); }

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

/* Global Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-24);
}

.section {
    position: relative;
    padding: var(--sp-64) 0;
    background-color: var(--bg);
}

.section.alt {
    background-color: var(--bg-alt);
}

.section-heading {
    max-width: 700px;
    margin-bottom: var(--sp-48);
}

.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-8);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-12);
    color: var(--emerald);
}

.section-heading span::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--emerald);
}

/* ------------------------------------------------------------------------
   Strata dividers — the signature element.
   A jagged rock-layer seam sits between adjacent sections, colored to
   transition from the section above into the section below.
   ------------------------------------------------------------------------ */
.strata {
    position: absolute;
    left: 0;
    right: 0;
    height: var(--strata-h);
    z-index: 2;
    pointer-events: none;
}

.strata-top {
    top: calc(var(--strata-h) * -1 + 1px);
    clip-path: polygon(
        0% 100%, 4% 40%, 8% 100%, 12% 30%, 16% 100%, 20% 45%, 24% 100%,
        28% 25%, 32% 100%, 36% 50%, 40% 100%, 44% 30%, 48% 100%, 52% 40%,
        56% 100%, 60% 20%, 64% 100%, 68% 45%, 72% 100%, 76% 30%, 80% 100%,
        84% 50%, 88% 100%, 92% 25%, 96% 100%, 100% 40%, 100% 100%, 0% 100%
    );
}

/* Buttons */
.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
    background-color: var(--emerald);
    color: #0d1210;
    border: none;
    padding: var(--sp-12) var(--sp-24);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    text-align: center;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.primary-button:hover, .secondary-button:hover {
    background-color: #45e08c;
    transform: translateY(-2px);
}

.primary-button:active, .secondary-button:active {
    transform: translateY(0);
}

.secondary-button {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.secondary-button:hover {
    background-color: var(--panel-raised);
    border-color: var(--emerald);
    color: var(--emerald);
}

.primary-button:disabled {
    background-color: var(--border);
    color: var(--muted-dim);
    cursor: not-allowed;
    transform: none;
}

/* Navigation Bar */
.site-header {
    background-color: rgba(20, 23, 26, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-8);
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--text);
    text-transform: uppercase;
}

.logo-mark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 20px;
    height: 20px;
    gap: 2px;
}

.logo-mark span {
    display: block;
}

.logo-mark span:nth-child(1) { background: var(--emerald); }
.logo-mark span:nth-child(2) { background: var(--copper); }
.logo-mark span:nth-child(3) { background: var(--gold); }
.logo-mark span:nth-child(4) { background: var(--iron); }

.logo-slash {
    display: none;
}

.logo-text {
    color: var(--muted);
    font-weight: 700;
}

.navigation {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.navigation a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: var(--sp-8) var(--sp-16);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.navigation a:hover {
    color: var(--text);
    border-color: var(--border);
}

.navigation a.active {
    background-color: var(--panel-raised);
    color: var(--emerald);
    border-color: var(--border);
}

/* Hero Section */
.hero {
    padding: var(--sp-64) 0 calc(var(--sp-64) + var(--sp-24)) 0;
    background-image:
        linear-gradient(var(--bg), var(--bg)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 32px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 32px);
    background-blend-mode: normal;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-48);
    align-items: start;
}

.hero-content .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-8);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: var(--sp-16);
}

.hero-content .eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--copper);
    box-shadow: 0 0 8px var(--copper);
}

.hero-content h1 span {
    color: var(--emerald);
    display: inline-block;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--muted);
    margin-top: var(--sp-24);
    max-width: 560px;
}

/* IP Box Widget */
.ip-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    background: var(--panel);
    padding: var(--sp-8) var(--sp-8) var(--sp-8) var(--sp-24);
    margin-top: var(--sp-32);
    width: auto;
}

.ip-info {
    display: flex;
    flex-direction: column;
    margin-right: var(--sp-32);
}

.ip-info small {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted-dim);
    letter-spacing: 0.08em;
}

.ip-info strong {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.copy-message {
    color: var(--emerald);
    margin-top: var(--sp-16);
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
}

/* Hero Status / "Beacon" Card */
.hero-card {
    background-color: var(--panel);
    border: 1px solid var(--border);
    padding: var(--sp-32);
    position: relative;
}

.hero-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald), var(--copper), var(--gold), var(--iron));
}

.status-header {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--sp-16);
    margin-bottom: var(--sp-24);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(51, 209, 122, 0.18);
    animation: beacon-pulse 2.4s ease-in-out infinite;
}

@keyframes beacon-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(51, 209, 122, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(51, 209, 122, 0.08); }
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-24);
    margin-bottom: var(--sp-32);
}

.status-grid div {
    display: flex;
    flex-direction: column;
}

.status-grid small {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--muted-dim);
    font-weight: 600;
    margin-bottom: 3px;
}

.status-grid strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.hero-card .secondary-button {
    width: 100%;
}

/* Gallery / Screenshots Section */
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-24);
}

.gallery figure {
    margin: 0;
    border: 1px solid var(--border);
    background-color: var(--panel);
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.2s ease;
}

.gallery figure:hover {
    border-color: var(--emerald);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    color: var(--muted-dim);
    font-size: 0.9rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Features — ore-coded cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-24);
}

.feature {
    background-color: var(--panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--ore-color, var(--emerald));
    padding: var(--sp-24);
}

.feature p {
    font-size: 0.95rem;
}

.feature .ore-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ore-color, var(--emerald));
    margin-bottom: var(--sp-8);
}

.feature:nth-child(1) { --ore-color: var(--emerald); }
.feature:nth-child(2) { --ore-color: var(--gold); }
.feature:nth-child(3) { --ore-color: var(--copper); }
.feature:nth-child(4) { --ore-color: var(--iron); }

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--sp-64);
    align-items: center;
}

.mini-title {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-8);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--emerald);
    margin-bottom: var(--sp-12);
}

.mini-title::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--emerald);
}

.about-grid p {
    margin-top: var(--sp-16);
}

.about-panel {
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
}

.about-panel div {
    background-color: var(--panel);
    border: 1px solid var(--border);
    padding: var(--sp-24);
}

.about-panel h4 {
    color: var(--text);
}

.about-panel p {
    margin-top: var(--sp-8);
    font-size: 0.95rem;
}

/* Call To Action (CTA) Section */
.cta {
    position: relative;
    background-color: var(--emerald-dim);
    background-image: linear-gradient(180deg, rgba(51,209,122,0.12), rgba(51,209,122,0) 60%);
    padding: var(--sp-64) 0;
    text-align: center;
}

.cta h2 {
    color: var(--text);
    margin-bottom: var(--sp-16);
}

.cta p {
    color: #cfe9db;
    font-weight: 500;
    margin-bottom: var(--sp-32);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--sp-16);
}

.cta .secondary-button {
    border-color: rgba(255,255,255,0.3);
    color: var(--text);
}

.cta .secondary-button:hover {
    border-color: var(--text);
    background-color: rgba(255,255,255,0.08);
}

/* Footer */
footer {
    background-color: var(--bg);
    color: var(--text);
    padding: var(--sp-48) 0;
    border-top: 1px solid var(--border);
}

.container.footer {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--sp-32);
}

.container.footer strong {
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.container.footer p {
    color: var(--muted-dim);
    font-size: 0.9rem;
    margin-top: var(--sp-8);
}

.footer-links {
    display: flex;
    gap: var(--sp-24);
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.copyright {
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted-dim);
    border-top: 1px solid var(--border);
    padding-top: var(--sp-24);
    line-height: 1.6;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-48);
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 3rem; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.4rem; }
    .container.nav {
        flex-direction: column;
        height: auto;
        padding: var(--sp-16) var(--sp-24);
        gap: var(--sp-16);
    }
    .navigation { flex-wrap: wrap; justify-content: center; }
    .ip-box {
        flex-direction: column;
        width: 100%;
        padding: var(--sp-16);
        gap: var(--sp-16);
    }
    .ip-info { margin-right: 0; text-align: center; }
    .primary-button, .secondary-button { width: 100%; }
    .cta-buttons { flex-direction: column; gap: var(--sp-16); }
    .container.footer { flex-direction: column; gap: var(--sp-32); }
}
