/* Chaotic Revelations - main stylesheet */

/* =========================================
   1. BRANDING VARIABLES
   ========================================= */
:root {
    --bg-void: #0b2e35;
    --bg-card: #11424b;
    --bg-deep: #0a0f12;
    --brand-mint: #a3f7d1;
    --brand-cyan: #00e5ff;
    --text-main: #ffffff;
    --text-muted: #b4d4d9;
    --border-soft: rgba(163, 247, 209, 0.2);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-void);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-heading); color: var(--brand-mint); line-height: 1.2; }
a { color: var(--brand-cyan); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-mint); }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand-cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* =========================================
   3. HEADER & HERO
   ========================================= */
header {
    display: flex;
    justify-content: center;
    padding: 2rem 1.25rem;
}
.logo {
    width: 250px;
    height: auto;
    border: 2px solid var(--brand-cyan);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.hero {
    text-align: center;
    padding: 2rem 0 4rem;
}
.hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(163, 247, 209, 0.3);
}
.hero-pitch {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.btn-primary {
    display: inline-block;
    background: var(--brand-mint);
    color: var(--bg-void);
    padding: 1.1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    border: 2px solid var(--brand-mint);
    box-shadow: 0 0 20px rgba(163, 247, 209, 0.4);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background: transparent;
    color: var(--brand-mint);
    box-shadow: 0 0 30px rgba(163, 247, 209, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: none;
    color: var(--brand-cyan);
    text-decoration: underline;
    text-underline-offset: 4px;
    font: 600 1rem var(--font-body);
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.5rem; /* bigger tap target */
    transition: color 0.2s ease;
}
.btn-secondary:hover { color: var(--brand-mint); }

/* =========================================
   4. CARDS (Facebook + Stream)
   ========================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.social-section { margin-bottom: 2rem; text-align: center; }
.social-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.stream-section { margin-bottom: 4rem; }

.fb-post {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    background: var(--bg-void);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    overflow: hidden;
}
.fb-post-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}
.fb-post-body { padding: 1.25rem; }
.fb-post-date {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 0.5rem;
}
.fb-post-date:empty { display: none; }
.fb-post-text {
    color: var(--text-main);
    white-space: pre-line;
    margin-bottom: 1rem;
}
.fb-post-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.fb-post.is-loading .fb-post-text { color: var(--text-muted); }

.embed-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}
.embed-wrapper iframe { width: 100%; height: 100%; border: none; }

/* =========================================
   5. ABOUT & TOOLS SPLIT
   ========================================= */
.split-section {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.split-section.reverse { flex-direction: row-reverse; }
.split-text { flex: 1 1 320px; }
.split-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.split-text p { margin-bottom: 1rem; color: var(--text-muted); }
.split-text strong { color: var(--text-main); }

.split-image { flex: 1 1 280px; display: flex; justify-content: center; }
.profile-pic {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--brand-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    object-fit: cover;
}
.tools-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(163, 247, 209, 0.3);
    box-shadow: 0 10px 30px rgba(11, 46, 53, 0.8), 0 0 20px rgba(0, 229, 255, 0.15);
}

/* =========================================
   6. DISCLAIMER & FOOTER
   ========================================= */
.disclaimer {
    background: var(--bg-deep);
    border-left: 4px solid var(--brand-cyan);
    padding: 2rem;
    margin-bottom: 4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.disclaimer h3 { color: var(--text-main); margin-bottom: 1rem; font-size: 1.1rem; }
.disclaimer p { margin-bottom: 0.8rem; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--brand-mint); }

footer {
    text-align: center;
    padding: 2rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.social-links {
    list-style: none;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.social-links a { display: inline-block; padding: 0.25rem; }

/* =========================================
   7. MOBILE + MOTION
   ========================================= */
@media (max-width: 600px) {
    .btn-primary { padding: 1rem 2rem; font-size: 1.05rem; }
    .split-section, .split-section.reverse { flex-direction: column; gap: 1.5rem; }
    .split-text { flex-basis: auto; }
    .disclaimer { padding: 1.5rem; }
    .card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .btn-primary:hover { transform: none; }
}