/* ═══════════════════════════════════════════════════════════════
   SCOPEWRIGHT LANDING PAGE — Elite Software Style
   Inspired by Linear, Column.co
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Base ── */
:root {
    --brand-navy: #0B1220;
    --text-body: #1F2937;
    --text-muted: #6B7280;
    --bg: #FAFBFC;
    --border: rgba(15, 23, 42, 0.10);
    --card-bg: #FFFFFF;
    --ghost: rgba(11, 18, 32, 0.04);

    /* Legacy aliases */
    --text: var(--text-body);
    --accent: var(--brand-navy);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Nav ── */
.nav {
    position: sticky;
    top: 0;
    background: rgba(250, 251, 252, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
    display: flex;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--brand-navy);
    padding: 0 4px;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 480;
    color: var(--text-body);
    text-decoration: none;
    opacity: 0.78;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.lang-toggle {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-active {
    font-weight: 600;
}

.lang-inactive {
    opacity: 0.4;
}

.lang-sep {
    opacity: 0.3;
}

.nav-login {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-weight: 500;
}

.nav-login:hover {
    opacity: 1;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--brand-navy);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #162033;
}

.btn-primary:active {
    background: #060C16;
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.18);
}

.btn-large {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-ghost {
    background: transparent;
    color: var(--brand-navy);
    opacity: 0.7;
    border: 1px solid rgba(11, 18, 32, 0.18);
    font-size: 13px;
    padding: 7px 16px;
    gap: 5px;
}

.btn-ghost:hover {
    opacity: 1;
    background: rgba(11, 18, 32, 0.04);
    border-color: rgba(11, 18, 32, 0.28);
}

.btn-block {
    width: 100%;
}

/* ── Hero ── */
.hero {
    padding: 120px 0 100px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-body);
    opacity: 0.85;
    margin-bottom: 20px;
}

.hero-small {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-helper {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Mockup Window ── */
.mockup-window {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.mockup-content {
    background: #FAFBFC;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.mockup-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
    display: block;
}

/* ── Sections ── */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--accent);
    margin-bottom: 48px;
    text-align: center;
}

/* ── Section subtitle ── */
.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    text-align: center;
    max-width: 520px;
    margin: -32px auto 48px;
    line-height: 1.6;
}

/* ── Roles ── */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

.role-lead {
    font-size: 15px;
    color: var(--text-body);
    opacity: 0.8;
    margin-bottom: 16px;
}

.role-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
}

.role-bullets li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.5;
}

.role-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.role-micro {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

.roles-closing {
    text-align: center;
}

.roles-closing p {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ── Value ── */
.value {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.value-body {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ── How it works (Timeline) ── */
.howitworks {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    padding-left: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -48px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
    z-index: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── AI Section (DARK) ── */
.ai-section {
    background: var(--brand-navy);
    padding: 100px 0;
}

.ai-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ai-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.ai-body p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ── Comparison ── */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.comparison-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--accent);
}

.comparison-col-highlight .comparison-heading {
    color: #16A34A;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-list li {
    font-size: 15px;
    padding-left: 24px;
    position: relative;
}

.comparison-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text);
    opacity: 0.3;
}

.comparison-col-highlight .comparison-list li::before {
    content: '✓';
    color: #16A34A;
    opacity: 1;
}

/* ── Waitlist ── */
.waitlist {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.waitlist-content {
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-body {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.waitlist-form input,
.waitlist-form select {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #FFFFFF;
    color: var(--text);
    transition: border-color 0.2s;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-feedback {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-feedback.visible {
    display: block;
}

.form-feedback.success {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

/* ── Footer ── */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 60px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.footer-logo {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ── Magic Overlay ── */
.magic-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.magic-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.magic-content {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 48px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.magic-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s;
}

.magic-close:hover {
    opacity: 1;
}

.magic-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
}

.magic-body {
    margin-bottom: 32px;
    line-height: 1.8;
}

.magic-body p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
}

.magic-actions {
    display: flex;
    gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 12px;
        height: auto;
        padding: 14px 20px;
    }

    .nav-left {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-title {
        font-size: 40px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 40px;
    }

    .step-number {
        left: -40px;
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .timeline::before {
        left: 15px;
    }

    .magic-content {
        padding: 32px;
    }

    .magic-actions {
        flex-direction: column;
    }
}
