/* ============================================
   RepRival Landing Page - Dark Modern Style
   Inspired by: Linear, Raycast, DomoAI
   No gradients, no purple. Clean dark + warm accent.
   ============================================ */

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

:root {
    --bg: #0a0a0a;
    --bg-raised: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --border: #222222;
    --border-hover: #333333;
    --text: #e8e8e8;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #d4a04a;
    --accent-dim: rgba(212, 160, 74, 0.12);
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 56px;
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--white) !important;
    color: var(--bg) !important;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 500 !important;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85;
    color: var(--bg) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.2s;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.85) 100%),
        radial-gradient(ellipse at center bottom, rgba(212, 160, 74, 0.06) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 740px;
}

.hero-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--bg);
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-primary.large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-raised);
}

.apple-icon {
    width: 18px;
    height: 18px;
}

/* ---- Stats Bar ---- */
.stats-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-raised);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 24px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ---- Section Headings ---- */
.section-heading {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subheading {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.6;
}

/* ---- Audience Section ---- */
.audience-section {
    padding: 100px 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.audience-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.audience-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.audience-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

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

.audience-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---- Feature Sections ---- */
.feature-section {
    padding: 100px 0;
}

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

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-text h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1.5px solid var(--accent);
}

.check-list li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 4px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
}

/* Phone Frame */
.phone-frame {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 36px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: #000;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.phone-frame img,
.phone-frame video {
    width: 100%;
    height: auto;
    display: block;
}

.feature-media {
    display: flex;
    justify-content: center;
}

/* ---- How It Works ---- */
.how-section {
    padding: 100px 0;
    background: var(--bg-raised);
}

.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid var(--accent);
}

.step h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    flex-shrink: 0;
}

.step-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

/* ---- Privacy ---- */
.privacy-section {
    padding: 80px 0;
}

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

.privacy-icon {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.privacy-block h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.privacy-block p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.text-link:hover {
    opacity: 0.8;
}

/* ---- Vision ---- */
.vision-section {
    padding: 100px 0;
    background: var(--bg-raised);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vision-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: border-color 0.2s;
}

.vision-card:hover {
    border-color: var(--border-hover);
}

.vision-card.coming-soon {
    opacity: 0.7;
}

.vision-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.vision-card.coming-soon .vision-label {
    color: var(--text-muted);
}

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

.vision-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    display: none;
}

.cta-section h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    position: relative;
}

.cta-section > .container > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

.cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ---- Scroll Animations ---- */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.vision-card.coming-soon.animate-in.visible {
    opacity: 0.7;
}

/* ---- Mobile Nav Overlay ---- */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: 40px 24px;
    gap: 24px;
    z-index: 99;
    border-top: 1px solid var(--border);
}

.nav-links.mobile-open a {
    font-size: 18px;
    color: var(--text);
}

.nav-links.mobile-open .nav-cta {
    text-align: center;
    padding: 14px 28px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .audience-grid,
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 48px;
        direction: ltr;
    }

    .feature-row.reverse > * {
        direction: ltr;
    }

    .feature-media {
        order: -1;
    }

    .steps-row {
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

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

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .phone-frame {
        max-width: 260px;
    }

    .section-heading {
        font-size: 28px;
    }

    .feature-text h2 {
        font-size: 24px;
    }
}
