/* ========================================
   Rivo Landing Page Styles
   ======================================== */

:root {
    /* Brand Colors */
    --primary-color: #667eea;
    --primary-dark: #5a6fd6;
    --secondary-color: #764ba2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Semantic Colors */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    
    /* Neutrals */
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1a1a2e;
    --border-color: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Navigation
   ======================================== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    transition: all 0.3s ease;
}

.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.landing-nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav-logo {
    display: flex;
    align-items: center;
}

.landing-logo-img {
    height: 32px;
    width: auto;
}

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

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

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

.landing-nav-cta {
    background: var(--primary-gradient);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
}

.landing-nav-cta:hover {
    opacity: 0.9;
    color: white !important;
}

.landing-nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

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

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-cta {
    background: var(--primary-gradient);
    color: white !important;
    padding: 14px 20px !important;
    border-radius: 8px;
    text-align: center;
    border: none !important;
}

/* ========================================
   Hero Section
   ======================================== */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 24px 80px;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 60px;
}

.landing-hero-content {
    flex: 1;
    max-width: 560px;
}

.landing-hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.landing-hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Hero Form */
.hero-form {
    margin-bottom: 24px;
}

.hero-form-row {
    display: flex;
    gap: 12px;
}

.hero-form-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease;
}

.hero-form-input:focus {
    border-color: var(--primary-color);
}

.hero-form-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.hero-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-form-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Phone Visual */
.landing-hero-visual {
    flex: 0 0 auto;
}

.hero-phone {
    width: 300px;
    height: 600px;
    background: var(--text-primary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero-phone-notch {
    width: 120px;
    height: 28px;
    background: var(--text-primary);
    border-radius: 20px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-app-preview {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 32px;
    padding: 48px 16px 16px;
    overflow: hidden;
}

.preview-header {
    margin-bottom: 20px;
}

.preview-greeting {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.preview-date {
    font-size: 14px;
    color: var(--text-muted);
}

.preview-section {
    margin-bottom: 16px;
}

.preview-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.preview-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.preview-item-content {
    flex: 1;
    min-width: 0;
}

.preview-item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.preview-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.preview-item--waiting {
    border-left: 3px solid var(--warning-color);
}

/* ========================================
   Section Base Styles
   ======================================== */
.landing-section {
    padding: var(--section-padding) 24px;
}

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

.landing-section--dark {
    background: var(--bg-dark);
    color: white;
}

.landing-section--dark .landing-section-title,
.landing-section--dark .landing-section-subtitle {
    color: white;
}

.landing-section--dark .landing-section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.landing-section--cta {
    background: var(--primary-gradient);
    color: white;
}

.landing-section--cta .landing-section-title,
.landing-section--cta .landing-section-subtitle {
    color: white;
}

.landing-section--cta .landing-section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.landing-section-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.landing-section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.landing-section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ========================================
   Verticals / Who It's For
   ======================================== */
.verticals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vertical-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vertical-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vertical-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.vertical-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.vertical-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.vertical-example {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.vertical-example-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.vertical-example p {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* ========================================
   How It Works / Steps
   ======================================== */
.steps-container {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: white;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.step-connector {
    display: flex;
    justify-content: center;
    padding: 8px 0 8px 24px;
    color: var(--text-muted);
}

/* Step Visuals */
.step-visual {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
}

.step-visual-mic {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 16px;
}

.step-visual-waves {
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 32px;
    align-items: center;
}

.wave {
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.1s; height: 28px; }
.wave:nth-child(3) { animation-delay: 0.2s; height: 16px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Extract Visual */
.step-visual--extract {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extract-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.extract-icon {
    font-size: 16px;
}

/* Focus Visual */
.step-visual--focus {
    padding: 0;
    background: transparent;
}

.focus-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-md);
}

.focus-card-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.focus-card-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.focus-card-item:last-child {
    border-bottom: none;
}

.focus-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.focus-dot--urgent {
    background: var(--danger-color);
}

.focus-dot--warning {
    background: var(--warning-color);
}

/* ========================================
   Features
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card--highlight {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card--highlight .feature-icon {
    font-size: 48px;
    margin-bottom: 0;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.feature-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ========================================
   Roadmap
   ======================================== */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.roadmap-item:hover {
    transform: translateY(-2px);
}

.roadmap-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.roadmap-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.roadmap-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Beta Form / Early Access CTA
   ======================================== */
.beta-incentive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.beta-incentive-icon {
    font-size: 24px;
}

.beta-incentive-text {
    font-size: 15px;
    color: white;
}

.beta-form-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.beta-form {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary-color);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

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

.beta-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.beta-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.beta-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.beta-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Beta Success State */
.beta-success {
    text-align: center;
    padding: 48px 32px;
    background: white;
    border-radius: 16px;
}

.beta-success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-color);
    color: white;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.beta-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.beta-success p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Founder Note */
.founder-note {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.founder-note p {
    font-size: 18px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 12px;
}

.founder-attribution {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.landing-footer {
    background: var(--bg-dark);
    padding: 48px 24px;
    color: white;
}

.landing-footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.landing-footer-brand {
    text-align: center;
}

.landing-footer-logo {
    height: 28px;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
}

.landing-footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.landing-footer-links {
    display: flex;
    gap: 32px;
}

.landing-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.landing-footer-links a:hover {
    color: white;
}

.landing-footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card--highlight {
        grid-column: span 2;
    }

    .verticals-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .landing-nav-links {
        display: none;
    }

    .landing-nav-mobile-btn {
        display: block;
    }

    .landing-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        min-height: auto;
        gap: 40px;
    }

    .landing-hero-content {
        max-width: 100%;
    }

    .landing-hero-title {
        font-size: 36px;
    }

    .landing-hero-subtitle {
        font-size: 18px;
    }

    .hero-form-row {
        flex-direction: column;
    }

    .hero-form-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-phone {
        width: 280px;
        height: 560px;
    }

    .landing-section-title {
        font-size: 28px;
    }

    .landing-section-subtitle {
        font-size: 16px;
    }

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

    .feature-card--highlight {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .feature-card--highlight .feature-icon {
        margin-bottom: 16px;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .step-connector {
        padding-left: 0;
    }

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

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

    .beta-form {
        padding: 24px;
    }

    .beta-trust {
        flex-direction: column;
        gap: 8px;
    }

    .beta-incentive {
        flex-direction: column;
        text-align: center;
    }

    .landing-footer-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .landing-hero-title {
        font-size: 30px;
    }

    .hero-phone {
        width: 260px;
        height: 520px;
    }

    .preview-item-title {
        font-size: 13px;
    }

    .preview-item-meta {
        font-size: 11px;
    }
}
