:root {
    /* Palette - Sophisticated Light Mode */
    --color-primary: #0a0e27;
    --color-accent: #4f46e5;
    --color-accent-light: #818cf8;
    --color-accent-glow: rgba(79, 70, 229, 0.15);

    --color-bg: #fafbfc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-light: #64748b;
    --color-border: rgba(15, 23, 42, 0.06);
    --color-playful-bg: #fdf9ff;
    --color-playful-line: #cfc3ff;
    --color-success-soft: #d1f5e4;
    --color-danger-soft: #fee4e2;
    --color-muted-purple: #a78bfa;

    /* Typography */
    --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-rounded: var(--font-body);
    --font-playful: var(--font-display);

    /* Spacing - Generous */
    --space-unit: 8px;
    --container-width: 1280px;

    /* Effects */
    --blur: 40px;
    --radius: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --transition-fast: transform 150ms var(--ease-out), opacity 150ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
    --transition-normal: transform 250ms var(--ease-out), opacity 250ms var(--ease-out), background-color 250ms var(--ease-out), border-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--space-unit) * 4);
}

/* Header - Floating Glassmorphism */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: var(--container-width);

    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.02),
        0 20px 25px -5px rgba(0, 0, 0, 0.04),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);

    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


.logo {
    display: flex;
}

.logo img {
    max-width: 220px;
    margin: 0;
}

.nav {
    display: flex;
    gap: calc(var(--space-unit) * 4);
    align-items: center;
}

.nav a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 15px;
    transition: color 150ms var(--ease-out);
    position: relative;
}

.nav a:hover {
    color: var(--color-accent);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 200ms var(--ease-out);
}

.nav a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    box-shadow:
        0 0 0 1px rgba(79, 70, 229, 0.1),
        0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(79, 70, 229, 0.1),
        0 20px 25px -5px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.97) translateY(0);
    transition: transform 100ms var(--ease-out);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* Hero - Premium Typography */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, -50px);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 32px;
    animation: fadeIn 0.8s ease 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6.5vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    margin: 0 auto;
    max-width: 16ch;
    padding-bottom: .5em;

    color: var(--color-primary);

    animation: fadeIn 0.8s ease 0.4s both;
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 48px;
    font-weight: 400;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    animation: fadeIn 0.8s ease 0.8s both;
}

.hero-visual {
    margin-top: 80px;
    position: relative;
    animation: fadeIn 1s ease 1s both;
}

.dashboard-preview {
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f3f9 100%);
    border-radius: var(--radius);
    height: 500px;
    border: 1px solid var(--color-border);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 50px 100px -20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}

/* Hero grid: place text left and phone visual right on desktop */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 580px;
    gap: 48px;
    align-items: flex-start;
}

.hero-content {
    text-align: left;
    max-width: 680px;
    margin: 0 auto;
}

.hero-glow {
    position: absolute;
    right: 20px;
    top: -40px;
    width: 520px;
    height: 520px;
    background-image: url('cover.png');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-visual {
    position: relative;
    min-height: 220px;
}

.hero-cover {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    object-fit: contain;
    position: absolute;
    right: -20px;
    top: -40px;
    z-index: 0;
    pointer-events: none;
}

.phone-mock {
    position: relative;
    width: 100%;
    max-width: 620px;
    /* increased size for more presence */
    margin: 0 auto;
    z-index: 1;
    transform: scale(1.35);
    /* boost visual size (≈35%) */
    transform-origin: center right;
}

.phone-frame {
    /* Device frame: outer bezel + inner screen area */
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 36px;
    padding: 18px;
    border: 10px solid #f1f5f9;
    /* bezel */
    box-shadow: 0 60px 120px -40px rgba(79, 70, 229, 0.22), 0 18px 40px rgba(2, 6, 23, 0.06);
    position: relative;
}

.phone-frame::before {
    /* speaker */
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 6px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
    border-radius: 6px;
}

.phone-frame::after {
    /* camera dot */
    content: '';
    position: absolute;
    top: 12px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: rgba(15, 23, 42, 0.12);
    border-radius: 50%;
}

.phone-notch {
    height: 6px;
    width: 64px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 8px;
    margin: 6px auto 12px;
}

.phone-screen {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border-radius: 18px;
    padding: 22px;
    min-height: 540px;
    /* taller to match increased scale */
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #0f172a;
    /* give inner screen slight inset to emphasize frame */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chat-line.from-bot {
    color: var(--color-text-light);
    font-size: 13px;
    background: transparent;
}

.chat-bubble.action {
    background: #eef2ff;
    color: #3730a3;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-block;
    max-width: 160px;
}

.chat-bubble.user {
    background: #4f46e5;
    color: white;
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 220px;
    align-self: flex-end;
}

.chat-bubble.system {
    background: #e3f2fd;
    color: #0369a1;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 200px;
}

.chat-bubble.note {
    background: #dcf8c6;
    color: #064e3b;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 180px;
}

.overlay-cards {
    position: absolute;
    right: 18px;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 3;
    transform: translateZ(0);
}

.approval-card {
    width: 380px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.18);
    padding: 18px 22px;
    transform: rotate(-2deg);
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.approval-title {
    font-weight: 700;
}

.stamp {
    background: #ffefc7;
    color: #a65b00;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
}

.approval-body .approval-line {
    margin-bottom: 6px;
}

.approval-body .muted {
    color: var(--color-text-light);
    font-size: 13px;
}

.approval-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-approve {
    background: #16a34a;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-reject {
    background: #ef4444;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.history-card {
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.12);
    transform: rotate(2deg);
}

.history-title {
    font-weight: 700;
    margin-bottom: 6px;
}

/* Responsive: stack on small screens and hide complex overlays */
@media (max-width: 991px) {
    .hero-grid {
        display: block;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 32px;
    }

    .hero-visual {
        display: none;
    }

    .phone-mock {
        transform: none;
    }

    .hero-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Grid - Asymmetric */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, var(--color-accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 0 1px rgba(79, 70, 229, 0.1),
        0 40px 60px -15px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-card:nth-child(1) {
    grid-column: span 5;
}

.feature-card:nth-child(2) {
    grid-column: span 7;
}

.feature-card:nth-child(3) {
    grid-column: span 12;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--color-text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.feature-metrics {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-metrics li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
}

.metric-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-accent);
    min-width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
}

/* How It Works Section */
.how-it-works-section {
    background: var(--color-playful-bg);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before,
.how-it-works-section::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 65%);
    z-index: 0;
}

.how-it-works-section::before {
    top: -80px;
    left: -120px;
}

.how-it-works-section::after {
    bottom: -120px;
    right: -160px;
}

.storytelling-flow {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 96px;
    margin-top: 80px;
    z-index: 1;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px 0;
    position: relative;
    overflow: visible;
}

.journey-step::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.journey-step:hover::before {
    opacity: 1;
}

.journey-step.is-right {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1;
    font-family: var(--font-body);
}

.step-text h3 {
    font-family: var(--font-body);
    font-size: clamp(34px, 4.6vw, 48px);
    color: var(--color-primary);
    margin: 24px 0 12px;
    letter-spacing: -0.01em;
}

.step-text p {
    color: var(--color-text-light);
    font-size: 18px;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(124, 58, 237, 0.12);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #6d28d9;
    letter-spacing: 0.04em;
}

.step-label {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: var(--color-success-soft);
    color: #047857;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

.step-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: var(--color-text);
}

.step-points li::before {
    content: '✦';
    color: var(--color-accent);
    font-size: 14px;
    margin-top: 3px;
}

.step-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-visual .phone-shell {
    width: clamp(260px, 32vw, 360px);
    height: 560px;
    border-radius: 40px;
    background: #0f172a;
    padding: 20px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 60px 80px -50px rgba(15, 23, 42, 0.8);
    position: relative;
    transform: rotate(-3deg) scale(1.05);
}

.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 18px;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, 0.08);
}

.chat-window {
    margin-top: 30px;
    background: #f1f5f9;
    height: calc(100% - 60px);
    border-radius: 28px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-row {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    max-width: 90%;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
}

.chat-row.resident {
    align-self: flex-start;
    background: #e2e8f0;
    color: #0f172a;
}

.chat-row.manager {
    align-self: flex-end;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.bot-visual {
    flex-direction: column;
    gap: 24px;
    position: relative;
    transform: rotate(2deg) scale(1.05);
}

.bot-body {
    width: 180px;
    height: 200px;
    background: linear-gradient(180deg, #4f46e5, #7c3aed);
    border-radius: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 40px 60px -30px rgba(79, 70, 229, 0.7);
    animation: floaty 4s ease-in-out infinite;
}

.bot-face {
    width: 130px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.bot-eye {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    box-shadow: inset -2px -2px 6px rgba(79, 70, 229, 0.4);
}

.bot-mouth {
    width: 36px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.bot-antena {
    position: absolute;
    top: -28px;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    border-radius: 999px;
}

.request-card {
    background: white;
    border-radius: 28px;
    padding: 24px;
    width: clamp(260px, 28vw, 320px);
    border: 1px dashed rgba(79, 70, 229, 0.25);
    box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.4);
    font-family: var(--font-body);
}

.card-id {
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.card-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.card-tags .tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
}

.card-tags .tag.success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.approval-visual {
    transform: rotate(-2deg) scale(1.05);
}

.approval-visual .approval-card {
    width: clamp(320px, 35vw, 380px);
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 35px 70px -35px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(15, 23, 42, 0.07);
    font-family: var(--font-rounded);
}

.approval-card .card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
}

.approval-card p {
    color: var(--color-text-light);
    margin: 12px 0 24px;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.card-actions .action {
    padding: 14px 18px;
    border-radius: 18px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-actions .action.approve {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    box-shadow: 0 15px 30px -15px rgba(16, 185, 129, 0.7);
}

.card-actions .action.reject {
    background: linear-gradient(135deg, #fda4af, #fb7185);
    color: white;
    box-shadow: 0 15px 30px -15px rgba(239, 68, 68, 0.6);
}

.card-actions .action:hover {
    transform: translateY(-4px);
}

.card-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--color-text-light);
}

.card-hint::before {
    content: 'ⓘ';
    font-size: 12px;
    color: var(--color-accent);
}

.journey-connector {
    height: 180px;
    pointer-events: none;
}

.journey-connector svg {
    width: 100%;
    height: 100%;
}

.journey-connector path {
    fill: none;
    stroke: var(--color-playful-line);
    stroke-width: 6;
    stroke-dasharray: 14 14;
    stroke-linecap: round;
}

.curve-right svg {
    transform: translateX(-40px);
}

.curve-left svg {
    transform: translateX(40px);
}

.reinforcement-line {
    text-align: center;
    margin-top: 72px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-muted-purple);
}

.cta-secondary {
    text-align: center;
    margin-top: 32px;
}

.btn-outline {
    background: transparent;
    border: 2px dashed rgba(124, 58, 237, 0.5);
    color: var(--color-accent);
    padding: 14px 28px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-rounded);
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(79, 70, 229, 0.08);
    transform: translateY(-4px);
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 1024px) {

    .journey-step,
    .journey-step.is-right {
        flex-direction: column;
        padding: 40px;
    }

    .storytelling-flow {
        gap: 72px;
    }
}

@media (max-width: 640px) {
    .journey-step {
        padding: 32px 24px;
    }

    .step-text h3 {
        font-size: 28px;
    }

    .phone-visual .phone-shell {
        height: 420px;
    }

    .reinforcement-line {
        font-size: 16px;
    }
}

/* Pricing - Modern Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
    align-items: start;
}

.pricing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    transform: scale(1.05);
    border-color: transparent;
    box-shadow:
        0 0 0 1px rgba(79, 70, 229, 0.1),
        0 40px 60px -15px rgba(79, 70, 229, 0.4);
}

/* Only set color: white for main text elements in featured pricing cards */
.pricing-card.featured h1,
.pricing-card.featured h2,
.pricing-card.featured h3,
.pricing-card.featured h4,
.pricing-card.featured h5,
.pricing-card.featured h6,
.pricing-card.featured p,
.pricing-card.featured li,
.pricing-card.featured span,
.pricing-card.featured a {
    color: white;
}

.pricing-card:not(.featured):hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 0 1px var(--color-border),
        0 40px 60px -15px rgba(0, 0, 0, 0.1);
}

.tier-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.pricing-card:not(.featured) .tier-badge {
    background: var(--color-accent-glow);
    color: var(--color-accent);
}

.pricing-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin: 24px 0;
    letter-spacing: -0.03em;
}

.price span {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin: 32px 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}

.check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check::before {
    content: '\2713';
    /* Unicode checkmark */
    color: #4f46e5;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

/* Make check icon white for featured (Pro) plan for contrast */
.pricing-card.featured .check::before {
    color: #fff;
}

.pricing-card.featured .check {
    background: rgba(124, 58, 237, 0.15);
    /* Invert: use primary color background for featured */
}

/* Invert Pro Plan button color */
.pricing-card.featured a.btn.btn-secondary {
    background: #7c3aed !important;
    color: #fff !important;
    border: none;
}

.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    color: white;
    padding: 120px 0 48px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    -webkit-text-fill-color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    opacity: 0.6;
}

.footer-col .footer-logo {
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Section Utilities */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: var(--color-text-light);
}


/* Dashboard Preview Components */
.preview-content {
    padding: 48px;
    text-align: center;
}

.preview-card {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.preview-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.preview-value {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.preview-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.preview-action-btn {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.preview-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.12);
}

.preview-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.preview-btn-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

/* Mobile Responsive for How It Works */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-card {
        padding: 32px;
    }

    .reinforcement-line p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Mobile: simplify hero (remove image) and center content */
    .hero {
        padding-top: 80px;
        padding-bottom: 60px;
        align-items: center;
    }

    .hero-grid {
        display: block;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        max-width: 680px;
        padding: 0 16px;
    }

    /* Ensure visual assets are hidden on small screens */
    .hero-visual,
    .hero-glow,
    .hero-cover,
    .phone-mock {
        display: none !important;
    }

    .hero h1 {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Social Proof Section */
.social-proof-section {
    background: linear-gradient(180deg, #fafbfc 0%, #f8f9fc 100%);
}

.social-proof-content {
    text-align: center;
    margin-bottom: 64px;
}

.social-proof-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.social-proof-quote {
    max-width: 720px;
    margin: 0 auto;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.social-proof-author {
    margin-top: 24px;
    color: var(--color-text-light);
    font-size: 16px;
}

/* Final CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    border-radius: 32px;
    padding: 80px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    filter: blur(60px);
    opacity: 0.5;
}

.cta-blob-1 {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
}

.cta-blob-2 {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: white;
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 40px;
}

.btn-cta-final {
    background: white;
    color: var(--color-primary);
    font-size: 17px;
    padding: 16px 40px;
}

.btn-cta-final:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .feature-card:nth-child(1),
    .feature-card:nth-child(2) {
        grid-column: span 12;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Ordem no mobile: Pro, Starter, Enterprise */
    .pricing-card:nth-child(1) {
        order: 1;
        /* Pro */
    }

    .pricing-card:nth-child(2) {
        order: 2;
        /* Starter */
    }

    .pricing-card:nth-child(3) {
        order: 3;
        /* Enterprise */
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .header {
        width: calc(100% - 32px);
        padding: 16px 20px;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .dashboard-preview {
        height: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Trust Badge & Social Proof in Hero */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 24px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -12px;
}

.avatars img:first-child {
    margin-left: 0;
}

.avatars-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    font-size: 12px;
    font-weight: 700;
    margin-left: -12px;
    border: 2px solid white;
}

.proof-text {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-proof {
        flex-direction: column;
        margin: 0 auto;
        font-size: 28px;
        font-weight: 600;
        line-height: 1.4;
        color: var(--color-text);
    }

    .social-proof-author {
        margin-top: 24px;
        color: var(--color-text-light);
        font-size: 16px;
    }

    /* Final CTA Section */
    .cta-box {
        background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
        border-radius: 32px;
        padding: 80px 64px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .cta-blob {
        position: absolute;
        width: 300px;
        height: 300px;
        filter: blur(60px);
        opacity: 0.5;
    }

    .cta-blob-1 {
        top: -100px;
        left: -100px;
        background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
    }

    .cta-blob-2 {
        bottom: -100px;
        right: -100px;
        background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    }

    .cta-content {
        position: relative;
        z-index: 1;
    }

    .cta-title {
        color: white;
        font-size: clamp(32px, 4vw, 48px);
        margin-bottom: 16px;
        font-weight: 700;
    }

    .cta-text {
        color: rgba(255, 255, 255, 0.7);
        font-size: 18px;
        max-width: 560px;
        margin: 0 auto 40px;
    }

    .btn-cta-final {
        background: white;
        color: var(--color-primary);
        font-size: 17px;
        padding: 16px 40px;
    }

    .btn-cta-final:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .nav {
            display: none;
        }

        .feature-card:nth-child(1),
        .feature-card:nth-child(2) {
            grid-column: span 12;
        }

        .pricing-grid {
            grid-template-columns: 1fr;
        }

        /* Ordem no mobile: Pro, Starter, Enterprise */
        .pricing-card:nth-child(1) {
            order: 1;
            /* Pro */
        }

        .pricing-card:nth-child(2) {
            order: 2;
            /* Starter */
        }

        .pricing-card:nth-child(3) {
            order: 3;
            /* Enterprise */
        }

        .pricing-card.featured {
            transform: none;
        }
    }

    @media (max-width: 768px) {
        .header {
            width: calc(100% - 32px);
            padding: 16px 20px;
        }

        .hero {
            padding-top: 140px;
            padding-bottom: 80px;
        }

        .dashboard-preview {
            height: 320px;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            gap: 48px;
        }
    }

    /* Trust Badge & Social Proof in Hero */
    .trust-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
        border: 1px solid rgba(34, 197, 94, 0.3);
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
        color: #059669;
        margin-bottom: 24px;
    }

    .hero-proof {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
    }

    .avatars {
        display: flex;
        align-items: center;
    }

    .avatars img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid white;
        margin-left: -12px;
    }

    .avatars img:first-child {
        margin-left: 0;
    }

    .avatars-more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4f46e5, #6366f1);
        color: white;
        font-size: 12px;
        font-weight: 700;
        margin-left: -12px;
        border: 2px solid white;
    }

    .proof-text {
        font-size: 14px;
        color: var(--color-text-light);
        font-weight: 500;
    }

    @media (max-width: 768px) {
        .hero-proof {
            flex-direction: column;
            text-align: center;
            gap: 8px;
        }
    }

    /* Accessibility: Support prefers-reduced-motion browser setting */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-delay: -1ms !important;
            animation-duration: 1ms !important;
            animation-iteration-count: 1 !important;
            background-attachment: scroll !important;
            scroll-behavior: auto !important;
            transition-duration: 0s !important;
            transition-delay: 0s !important;
        }
    }

    /* Mobile Menu Override */
    .mobile-menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        flex: none;
        /* Prevent shrinking to 0 width */
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-primary, #4f46e5);
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }

    @media (max-width: 1024px) {
        .mobile-menu-toggle {
            display: flex;
        }

        .header {
            align-items: center;
            gap: 12px;
        }

        .nav {
            display: flex !important;
            flex-direction: column;
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid var(--color-border, #e2e8f0);
            border-radius: 16px;
            padding: 24px;
            gap: 20px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
            transform: translateY(-10px);
            opacity: 0;
            pointer-events: none;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
            z-index: 999;
            backdrop-filter: blur(20px);
        }

        .nav a {
            font-size: 16px;
            padding: 8px 0;
            width: 100%;
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        }

        .nav a::after {
            display: none;
        }

        .nav a:last-child {
            border-bottom: none;
        }

        .header.mobile-menu-open .nav {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        .header.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .header.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
            opacity: 0;
        }

        .header.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        .header .btn {
            display: none !important;
            /* Hide header CTA on mobile */
        }
    }

    /* Mobile Sticky Bottom CTA Bar */
    .mobile-sticky-cta {
        display: none;
    }

    @media (max-width: 1024px) {
        body {
            padding-bottom: 80px !important;
        }

        .mobile-sticky-cta {
            display: block;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0, 0, 0, 0.06);
            padding: 12px 16px;
            z-index: 998;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
        }

        .mobile-sticky-cta a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            color: #fff;
            background: var(--color-primary, #4f46e5);
            font-weight: 700;
            font-size: 15px;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
        }
    }