/* =========================
   Ruri Deep Site Styles
   ========================= */

/* Reset-ish */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Theme */
:root {
    --bg: #060012;
    --bg-alt: #0d041f;
    --surface: #161329;
    --surface-soft: #1f1738;
    --surface-strong: #241b45;

    --accent: #7ee0ff;        /* minty / Ruri hair adjacent */
    --accent-soft: rgba(126, 224, 255, 0.15);
    --accent-2: #ff7fd5;      /* pink highlight */
    --accent-2-soft: rgba(255, 127, 213, 0.18);

    --border-subtle: 1px solid rgba(148, 163, 184, 0.35);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-soft: #6b7280;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
    --shadow-glow: 0 0 40px rgba(126, 224, 255, 0.35);
    --shadow-pink: 0 0 40px rgba(255, 127, 213, 0.3);

    --nav-height: 72px;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

body {
    background: radial-gradient(circle at top, #190a3c 0, var(--bg) 55%, #020008 100%);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Subtle star noise overlay (if you have stars.png, reuse it) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('stars.png');
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Layout */
.page-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 32px) 24px 48px;
}

/* =========================
   Navigation
   ========================= */

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    pointer-events: none;
}

.main-nav {
    pointer-events: auto;
    max-width: 1120px;
    width: 100%;
    margin: 0 16px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(10, 10, 26, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(126, 224, 255, 0.8);
    box-shadow: 0 0 16px rgba(126, 224, 255, 0.45);
}
.nav-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
}
.nav-brand-text span:first-child {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.98rem;
}
.nav-brand-text span:last-child {
    font-size: 0.76rem;
    color: var(--text-soft);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.18s ease-out;
}
.nav-link:hover {
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.65);
    background: rgba(15, 23, 42, 0.85);
}
.nav-link.is-active {
    color: var(--accent);
    border-color: rgba(126, 224, 255, 0.75);
    background: rgba(15, 23, 42, 0.85);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    width: 34px;
    height: 24px;
    position: relative;
    cursor: pointer;
}
.nav-toggle span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--text-main);
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 3px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 17px; }
.nav-toggle.is-open span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: calc(var(--nav-height) - 4px);
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 10px 16px 12px;
        margin: 0 16px;
        border-radius: 18px;
        background: rgba(10, 10, 26, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.4);
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
}

/* =========================
   Hero / Layout primitives
   ========================= */

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .page-shell {
        padding-top: calc(var(--nav-height) + 16px);
    }
    .page-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

/* Hero */
.hero-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 10px;
}
.hero-title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 2.6rem;
    line-height: 1.12;
    margin-bottom: 12px;
}
.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 34rem;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.hero-tag {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-soft);
}

/* Hero art */
.hero-art {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top, var(--accent-soft), transparent 60%),
                radial-gradient(circle at bottom, var(--accent-2-soft), transparent 55%),
                var(--surface);
    padding: 10px;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}
.hero-art img {
    width: 100%;
    border-radius: calc(var(--radius-lg) - 8px);
    display: block;
}

/* Quick links row */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #c4f1ff);
    color: #020617;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.85), var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.9), var(--shadow-glow);
}
.btn-secondary {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
    transform: translateY(-1px);
}

/* Section wrapper */
.section {
    margin-top: 40px;
}
.section-header {
    margin-bottom: 18px;
}
.section-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.section-title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 1.4rem;
}
.section-description {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.96rem;
}

/* Cards & grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .card-grid,
    .card-grid.two {
        grid-template-columns: minmax(0, 1fr);
    }
}

.card {
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--surface), var(--surface-soft));
    border: var(--border-subtle);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.8);
    padding: 16px 18px;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}
.card-body {
    font-size: 0.94rem;
    color: var(--text-muted);
}
.card-footer {
    margin-top: 10px;
    font-size: 0.85rem;
}

/* List chips */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.chip {
    font-size: 0.78rem;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-soft);
}

/* Timeline */
.timeline {
    border-left: 1px solid rgba(148, 163, 184, 0.4);
    margin-top: 18px;
    padding-left: 18px;
}
.timeline-item {
    position: relative;
    padding: 10px 0 6px;
}
.timeline-dot {
    position: absolute;
    left: -9px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent-2);
    box-shadow: var(--shadow-pink);
}
.timeline-heading {
    font-size: 0.9rem;
    font-weight: 600;
}
.timeline-sub {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 4px;
}
.timeline-body {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Split columns */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 16px;
}
@media (max-width: 900px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Structured text */
.text-block {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.text-block p + p {
    margin-top: 0.6rem;
}
.text-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-soft);
    margin-bottom: 4px;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.faq-item {
    border-radius: var(--radius-md);
    background: var(--surface);
    border: var(--border-subtle);
    padding: 14px 16px;
}
.faq-item h3 {
    font-size: 0.98rem;
    margin-bottom: 6px;
}
.faq-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    max-width: 1120px;
    margin: 12px auto 24px;
    padding: 10px 24px; /* more symmetric */
    border-radius: 18px;
    background: rgba(10, 10, 26, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-soft);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;    /* ⬅️ this is the key bit */
    gap: 8px;
}
.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}
.site-footer a:hover {
    color: var(--accent);
}

/* Utility */
.badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-soft);
}
.badge-inline-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-2);
}
