/* ============================================
   Rewrite Partners — Landing Page Styles
   ============================================ */

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

:root {
    --color-bg-dark: #0B0F19;
    --color-bg-light: #FFFFFF;
    --color-bg-alt: #F7F8FA;
    --color-text-primary: #0B0F19;
    --color-text-secondary: #4B5563;
    --color-text-light: #FFFFFF;
    --color-text-muted: #9CA3AF;
    --color-accent: #3B6CF5;
    --color-accent-hover: #2952D4;
    --color-border: #E5E7EB;
    --color-input-bg: #F9FAFB;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --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-primary);
    background: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- 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;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

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

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

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

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

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

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

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

.section-dark p {
    color: #B0B8C8;
}

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

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

.text-note {
    font-style: italic;
    color: var(--color-text-muted);
}

.section-dark .text-note {
    color: #8891A4;
}

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

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

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

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

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

/* --- 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;
}

.nav-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-cta:hover {
    color: var(--color-text-light);
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #8891A4;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* --- 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;
}

.timeline-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 auto 1rem;
}

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

.timeline-duration {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

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

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

/* --- 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-primary);
    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-primary);
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 108, 245, 0.1);
}

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

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

/* --- Footer --- */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-muted);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

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

    .founders {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    .timeline-connector {
        width: 2px;
        height: 32px;
        margin: 0 auto;
    }

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

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

@media (max-width: 480px) {
    .founder-card {
        padding: 1.5rem;
    }

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