/* ============================================
   Rewrite Partners — Landing Page Styles
   Retro Sci-Fi Design Refresh
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #27272B;
    --color-bg-surface: #32323A;
    --color-bg-elevated: #3A3A43;
    --color-text-heading: #C8962E;
    --color-text-body: #D7D4CC;
    --color-text-light: #FFFFFF;
    --color-text-muted: #9A978F;
    --color-accent: #C8962E;
    --color-accent-hover: #D4A33A;
    --color-border: #3E3E47;
    --color-input-bg: #32323A;
    --color-input-border: #3E3E47;
    --color-focus-ring: rgba(200, 150, 46, 0.15);

    /* Stripe system colors (used only for the three-stripe motif) */
    --color-stripe-amber: #C8962E;
    --color-stripe-teal: #2A7B6F;
    --color-stripe-cream: #D7D4CC;

    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --max-width: 1080px;
    --max-width-narrow: 680px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-body);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* --- Background grain texture overlay --- */
body::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    mix-blend-mode: soft-light;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 1000;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    background: var(--color-bg-surface);
    color: var(--color-text-light);
}

.skip-link:focus-visible {
    top: 1rem;
}

/* --- Three-Stripe Motif --- */
.stripe-accent {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stripe-accent span {
    display: block;
    height: 5px;
    border-radius: 2px;
}

.stripe-accent span:nth-child(1) { background: var(--color-stripe-amber); }
.stripe-accent span:nth-child(2) { background: var(--color-stripe-teal); }
.stripe-accent span:nth-child(3) { background: var(--color-stripe-cream); }

/* Stripe placement variants */
.stripe-accent--hero {
    width: 33%;
    margin: 1.5rem 0;
}

.stripe-accent--divider {
    width: 80px;
    margin: 0 auto;
}

.stripe-accent--nav {
    width: 20px;
    flex-direction: column;
}

.stripe-accent--footer {
    width: 50px;
    margin: 0 auto 1.25rem;
}

/* --- Full-page background glow bars (Arc Raiders inspired) --- */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    background:
        linear-gradient(to right,
            transparent 0.5%,
            rgba(200, 150, 46, 0.08) 1.5%,
            rgba(200, 150, 46, 0.22) 3%,
            rgba(200, 150, 46, 0.08) 4.5%,
            transparent 5.5%,
            transparent 6%,
            rgba(42, 123, 111, 0.07) 7%,
            rgba(42, 123, 111, 0.18) 8.5%,
            rgba(42, 123, 111, 0.07) 10%,
            transparent 11%,
            transparent 11.5%,
            rgba(215, 212, 204, 0.06) 12.5%,
            rgba(215, 212, 204, 0.14) 14%,
            rgba(215, 212, 204, 0.06) 15.5%,
            transparent 16.5%
        );
    filter: blur(8px);
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.5rem);
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

main {
    position: relative;
    isolation: isolate;
}

main::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
    background:
        radial-gradient(120% 42% at 50% 3%, rgba(215, 212, 204, 0.08) 0%, rgba(215, 212, 204, 0) 72%),
        linear-gradient(180deg,
            rgba(39, 39, 43, 0) 0%,
            rgba(215, 212, 204, 0.038) 22%,
            rgba(39, 39, 43, 0.01) 39%,
            rgba(42, 123, 111, 0.05) 58%,
            rgba(39, 39, 43, 0.01) 74%,
            rgba(215, 212, 204, 0.03) 100%);
}

main > * {
    position: relative;
    z-index: 1;
}

.section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    background: transparent;
}

.section-light,
.section-alt,
.section-dark {
    background: transparent;
}

.section-dark {
    color: var(--color-text-light);
}

/* Section stripe dividers */
.section-divider {
    padding: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0;
    position: relative;
    z-index: 1;
}

.section-divider .stripe-accent--divider {
    position: relative;
    top: 0;
}

/* --- Typography --- */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--color-text-heading);
    text-align: center;
}

.section-dark .section-heading {
    color: var(--color-text-heading);
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-body);
}

p:last-child {
    margin-bottom: 0;
}

.section-dark p {
    color: var(--color-text-body);
}

.text-emphasis {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1.5;
}

.section-dark .text-emphasis {
    color: var(--color-text-light);
}

.text-note {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-accent);
}

.section-dark .text-note {
    color: var(--color-accent);
}

/* --- Button --- */
.btn {
    display: inline-block;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background: rgba(200, 150, 46, 0.08);
    border-color: var(--color-accent-hover);
    color: var(--color-accent-hover);
    box-shadow: 0 0 20px rgba(200, 150, 46, 0.15);
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

.cta-spaced {
    margin-top: 2rem;
}

.btn:focus-visible,
.nav-cta:focus-visible,
.nav-logo:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent-hover);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--color-focus-ring);
    border-radius: 6px;
}

/* --- Navigation --- */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    text-decoration: none;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    min-width: 0;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    border: 1px solid var(--color-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    background: rgba(200, 150, 46, 0.08);
    box-shadow: 0 0 12px rgba(200, 150, 46, 0.12);
    color: var(--color-accent-hover);
}

/* --- Hero --- */
.hero {
    background: transparent;
    color: var(--color-text-light);
    padding: clamp(8rem, 18vw, 12rem) 0 clamp(5rem, 12vw, 8rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial vignette behind hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(55, 55, 60, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(0.875rem, 1.8vw, 1.1rem);
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

/* Hero stripe: centered to match text-align center context */
.hero .stripe-accent--hero {
    margin: 0.75rem auto 1.25rem;
    max-width: 240px;
}

/* --- Timeline --- */
.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 2rem auto;
    max-width: 700px;
}

.timeline-phase {
    text-align: center;
    flex: 1;
    max-width: 200px;
    position: relative;
    padding-top: 1rem;
}

.timeline-marker {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 18px rgba(200, 150, 46, 0.25);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-light);
}

.timeline-duration {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

.timeline-connector {
    width: 60px;
    height: 0;
    border-top: 2px dashed var(--color-border);
    background: none;
    margin-top: 39px;
    flex-shrink: 0;
}

.timeline-body {
    margin-top: 3rem;
    text-align: center;
}

/* --- Founders / Who We Are --- */
.who-we-are-content {
    position: relative;
    padding: 2.5rem 0;
}


/* Founders blurb */
.founders-blurb {
    margin-top: 2rem;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-body);
}

/* Bottom marks wrapper */
.who-we-are-bottom-marks {
    position: relative;
    padding-bottom: 2.5rem;
}

/* --- Contact Form --- */
.contact-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-form {
    max-width: 540px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-body);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--color-text-light);
    background: var(--color-input-bg);
    border: 1px solid rgba(215, 212, 204, 0.18);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* --- Footer --- */
.footer {
    background: transparent;
    border-top: 1px solid rgba(215, 212, 204, 0.08);
    color: var(--color-text-muted);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .nav-logo-img {
        height: 38px;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .timeline-phase {
        max-width: none;
        width: 100%;
    }

    .timeline-connector {
        width: 2px;
        height: 32px;
        border-top: none;
        border-left: 2px dashed var(--color-border);
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 7rem 0 4rem;
    }

    .hero .stripe-accent--hero {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .nav-logo-img {
        height: 34px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}
