/* Red Raine Labs - shared stylesheet for SEO landing pages.

   Deliberately EXTERNAL rather than an inline <style> block. The CSP in
   public/_headers whitelists inline styles by sha256, but it also allows
   style-src 'self'. Keeping landing-page CSS in this file means a new landing
   page never needs a new hash and never touches _headers - edit freely.

   Design tokens are copied from index.html so landing pages look native. */

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

:root {
    --red-raine: #D20000;
    --red-deep: #A30000;
    --red-glow: rgba(210, 0, 0, 0.28);
    --midnight-carbon: #121212;
    --gunmetal-zinc: #3F3F46;
    --concrete-steel: #A1A1AA;
    /* Muted text on light backgrounds. concrete-steel fails WCAG AA on white;
       this is the variant for those spots (5.1:1 on studio-white). */
    --concrete-deep: #6B6B73;
    --ghost-white: #F4F4F5;
    --studio-white: #FAFAFA;
    --border-soft: #E7E7EA;

    --maxw: 1200px;
    --readw: 780px;
    --radius: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--midnight-carbon);
    background-color: var(--studio-white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

::selection {
    background: var(--red-raine);
    color: #fff;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }

a {
    color: var(--red-raine);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--red-raine);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--red-raine);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--red-raine);
    color: #fff;
    box-shadow: 0 10px 24px -10px var(--red-glow);
}

.btn-primary:hover {
    background: var(--red-deep);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px var(--red-glow);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--midnight-carbon);
    border-color: var(--border-soft);
}

.btn-ghost:hover {
    border-color: var(--midnight-carbon);
    transform: translateY(-2px);
    color: var(--midnight-carbon);
}

/* Navigation - mirrors index.html so a landing page feels like the same site */
nav {
    position: relative;
    z-index: 1000;
    background: var(--red-raine);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

nav.scrolled {
    border-bottom-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 24px rgba(18, 18, 18, 0.18);
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo img {
    height: 112px;
    width: auto;
    display: block;
}

footer .logo img {
    height: 92px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a:not(.btn) {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    font-size: 1.12rem;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s var(--ease);
}

.nav-links a:not(.btn):hover {
    color: #fff;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links .btn {
    font-size: 0.98rem;
    padding: 0.8rem 1.5rem;
}

.nav-links .btn-primary {
    background: #fff;
    color: var(--red-raine);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
}

.nav-links .btn-primary:hover {
    background: var(--midnight-carbon);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero - copy left, art right, two layered circular gradient blobs behind */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    background: linear-gradient(180deg, #fff 0%, var(--studio-white) 100%);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 660px;
    height: 660px;
    top: -260px;
    right: -170px;
    background: radial-gradient(circle, rgba(210, 0, 0, 0.17) 0%, rgba(210, 0, 0, 0) 68%);
}

.hero::after {
    width: 560px;
    height: 560px;
    bottom: -290px;
    left: -200px;
    background: radial-gradient(circle, rgba(63, 63, 70, 0.20) 0%, rgba(63, 63, 70, 0) 70%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3.5rem;
}

.hero h1 {
    margin-bottom: 1.3rem;
}

.hero h1 .red-accent {
    color: var(--red-raine);
}

.hero p.lead {
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    color: var(--gunmetal-zinc);
    max-width: 46ch;
    margin-bottom: 2.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-art {
    display: block;
    width: 100%;
    height: auto;
    max-width: 520px;
    margin-left: auto;
    filter: drop-shadow(0 24px 50px rgba(18, 18, 18, 0.14));
}

/* About page - circular portrait that occupies the hero visual slot. */
.hero-portrait {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1;
    margin-left: auto;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid var(--red-raine);
    box-shadow: 0 0 0 10px rgba(210, 0, 0, 0.08), 0 24px 50px rgba(18, 18, 18, 0.16);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Credential chips. Deliberately placed in the hero rather than .page-body,
   so the .page-body ul li::before bullet never applies to them. */
.creds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.creds li {
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--midnight-carbon);
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.36rem 0.82rem;
}

/* Content sections - centred reading column, hairline separators */
.page-body {
    padding-bottom: 1rem;
}

.page-body .block {
    max-width: var(--readw);
    margin: 0 auto;
    padding: 3rem 0;
    border-top: 1px solid var(--border-soft);
}

.page-body .block:first-child {
    border-top: 0;
    padding-top: 4rem;
}

.page-body h2 {
    margin-bottom: 1.1rem;
}

.page-body p {
    font-size: 1.03rem;
    color: var(--gunmetal-zinc);
}

.page-body p + p {
    margin-top: 1.1rem;
}

.page-body ul {
    list-style: none;
    margin: 1.5rem 0;
    display: grid;
    gap: 1rem;
}

.page-body ul li {
    position: relative;
    padding-left: 1.9rem;
    font-size: 1.03rem;
    color: var(--gunmetal-zinc);
}

.page-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red-raine);
}

.page-body ul li strong {
    color: var(--midnight-carbon);
    font-weight: 600;
}

/* CTA band - sits between the content and the footer */
.cta-band {
    background: var(--ghost-white);
    border-top: 1px solid var(--border-soft);
    padding: 5rem 0;
    text-align: center;
}

.cta-band h2 {
    margin-bottom: 1rem;
}

.cta-band p {
    font-size: 1.06rem;
    color: var(--gunmetal-zinc);
    max-width: 56ch;
    margin: 0 auto 2rem;
}

/* Footer */
footer {
    background: var(--midnight-carbon);
    color: var(--concrete-steel);
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--gunmetal-zinc);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--concrete-steel);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 2rem;
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 720px;
}

/* GTM noscript fallback iframe */
noscript iframe {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.6rem;
    }
    .hero p.lead { max-width: none; }
    .hero-art { margin: 0 auto; }
    .hero-portrait { margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80vw, 320px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1.8rem;
        padding: 2rem 2.2rem;
        background: var(--red-deep);
        border-left: 1px solid rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links .btn { width: 100%; }

    .hero { padding: 3rem 0 3.2rem; }
    .page-body .block { padding: 2.4rem 0; }
    .page-body .block:first-child { padding-top: 3rem; }
    .cta-band { padding: 3.8rem 0; }
}

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