/* ===========================================
   THE ORIGIN AGENCY — Modern Clean Redesign
   =========================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 99999;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    transition: top 0.2s;
    overflow: hidden;
}
.skip-link:focus { top: 0; }

/* ── Tokens ── */
:root {
    --bg: #141210;
    --bg-raised: #1A1814;
    --bg-inset: #0D0C0A;

    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-subtle: rgba(59, 130, 246, 0.12);

    --text-1: #EDE8E3;
    --text-2: #A39E96;
    --text-3: #6B665E;
    --text-4: #3D3A36;

    --border: rgba(237, 232, 227, 0.07);
    --border-hover: rgba(237, 232, 227, 0.14);

    --heading: 'Sora', sans-serif;
    --body: 'Manrope', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

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

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: var(--heading);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.12;
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { font-size: 1.0625rem; }

/* Section label */
.section-label {
    display: inline-block;
    font-family: var(--body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

/* ── Scroll reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(20, 18, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    padding: 10px 0;
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 85px; width: auto; object-fit: contain; transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

.navbar.scrolled .logo-img { height: 60px; }

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

.nav-links a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.25s;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--text-1); }

/* Nav CTA — pill shaped */
.nav-cta {
    padding: 9px 22px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-pill) !important;
    color: var(--accent) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta:hover {
    background: var(--accent);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.3s, color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent);
    color: #fff !important;
}

.btn-primary span { color: inherit !important; }

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    border-color: var(--text-3);
    color: var(--text-1);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
}

.btn-icon { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-full { width: 100%; justify-content: center; padding: 16px 28px; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-3);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 3;
    max-width: none;
    width: 100%;
    padding-left: clamp(32px, 15vw, 420px);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 540px;
}

.hero-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-3);
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.hero h1 {
    margin-bottom: 24px;
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-3);
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.75;
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-tag {
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

.hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-actions .btn {
    padding: 18px 36px;
    font-size: 1.05rem;
}

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

.hero-note {
    font-size: 0.8rem;
    color: var(--text-3);
    margin: 0;
    width: 100%;
    margin-top: 6px;
}

/* Hero Dashboard Image — behind text, 3D perspective */
.hero-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 58%;
    z-index: 1;
    perspective: 1200px;
    transform: translateY(-50%);
}

.hero-dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    opacity: 0.45;
    transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
    transform-origin: right center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* Gradient fade on the left edge */
.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(to right, var(--bg) 0%, var(--bg) 5%, transparent 40%);
    pointer-events: none;
}

/* Generate My Preview — Hero CTA (eye-catching) */
.btn-hero-preview {
    position: relative;
    overflow: hidden;
    background: var(--accent) !important;
    border: 1px solid rgba(147, 197, 253, 0.25) !important;
    color: #fff !important;
    box-shadow:
        0 6px 24px rgba(59, 130, 246, 0.35),
        0 0 48px rgba(59, 130, 246, 0.1);
    animation: hero-preview-glow 3s ease-in-out infinite;
}

.btn-hero-preview span { position: relative; z-index: 1; color: #fff !important; }
.btn-hero-preview svg { position: relative; z-index: 1; }

/* Shimmer sweep */
.btn-hero-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: hero-preview-shimmer 3s ease-in-out infinite;
    z-index: 0;
}

.btn-hero-preview:hover {
    background: var(--accent-hover) !important;
    border-color: rgba(147, 197, 253, 0.4) !important;
    transform: translateY(-2px);
    box-shadow:
        0 10px 40px rgba(59, 130, 246, 0.45),
        0 0 64px rgba(59, 130, 246, 0.2);
}

.btn-hero-preview:hover span { color: #fff !important; }

@keyframes hero-preview-glow {
    0%, 100% { box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35), 0 0 48px rgba(59, 130, 246, 0.1); }
    50% { box-shadow: 0 6px 32px rgba(59, 130, 246, 0.5), 0 0 64px rgba(59, 130, 246, 0.2); }
}

@keyframes hero-preview-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ============================================
   DEMO VIDEO SECTION
   ============================================ */
.demo-video-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.demo-video-section h2 { margin-bottom: 14px; }
.demo-video-section .section-desc { margin-bottom: 48px; }

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

/* ============================================
   PREVIEW SECTION
   ============================================ */
.preview-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.preview-section h2 { margin-bottom: 14px; }
.preview-section .section-desc { margin-bottom: 36px; }

/* ============================================
   REALITY CHECK
   ============================================ */
.reality-check {
    padding: 140px 0 120px;
}

.reality-check h2 {
    margin-bottom: 56px;
    max-width: 540px;
}

.questions-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
    max-width: 700px;
}

.question-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.question-item:first-child { border-top: 1px solid var(--border); }

.question-number {
    font-family: var(--heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 28px;
    font-variant-numeric: tabular-nums;
    line-height: 1.8;
}

.question-item p {
    font-size: 1.0625rem;
    color: var(--text-2);
    margin: 0;
    line-height: 1.7;
}

.reality-closing {
    color: var(--text-3);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.75;
}

/* ============================================
   WHAT WE BUILD
   ============================================ */
.what-we-build {
    padding: 100px 0 120px;
    border-top: 1px solid var(--border);
}

.what-we-build h2 { margin-bottom: 14px; }

.section-desc {
    color: var(--text-3);
    max-width: 520px;
    margin-bottom: 56px;
    line-height: 1.75;
}

.views-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.view-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.view-card:hover {
    transform: translateY(-4px);
}

.view-card:nth-child(1) {
    border-left: 2px solid var(--accent);
    background: var(--bg-raised);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.view-card:nth-child(1):hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.view-card:nth-child(2) {
    padding-left: 32px;
    padding-right: 32px;
}

.view-card:nth-child(3) {
    border: 1px solid var(--border-hover);
}

.view-card:nth-child(3):hover {
    border-color: rgba(237, 232, 227, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.view-number {
    display: block;
    font-family: var(--heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.view-card h3 { margin-bottom: 10px; }
.view-card p { color: var(--text-3); font-size: 0.95rem; line-height: 1.7; }

.views-extra {
    color: var(--text-4);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

/* ============================================
   SOCIAL PROOF
   ============================================ */
.social-proof {
    padding: 140px 0 100px;
    border-top: 1px solid var(--border);
}

.social-proof h2 { margin-bottom: 64px; }

/* Featured testimonial */
.testimonial-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.testimonial-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.testimonial-video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.testimonial-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.btn-case-study {
    align-self: flex-start;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}
.btn-case-study span { color: var(--accent) !important; }
.btn-case-study svg { color: var(--accent); }
.btn-case-study:hover {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}
.btn-case-study:hover span { color: #fff !important; }
.btn-case-study:hover svg { color: #fff; }

.testimonials {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-bottom: 64px;
    max-width: 680px;
}

.testimonial {
    border: none;
    padding: 0;
    margin: 0;
}

.testimonial p {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-family: var(--heading);
    font-weight: 400;
    color: var(--text-1);
    line-height: 1.55;
    margin-bottom: 20px;
}

.testimonial footer {
    font-size: 0.875rem;
    color: var(--text-3);
    font-style: normal;
}

.testimonial footer a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.testimonial footer a:hover {
    color: var(--text-1);
    text-decoration: underline;
}

.social-proof-note {
    color: var(--text-3);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 520px;
}

.social-proof-note strong {
    color: var(--text-1);
    font-weight: 600;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
    padding: 100px 0 140px;
    border-top: 1px solid var(--border);
}

.process h2 { margin-bottom: 64px; }

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover {
    transform: translateY(-4px);
}

.step-marker {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.step-number {
    font-family: var(--heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.step-day {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.step-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-content p { font-size: 0.9rem; color: var(--text-3); line-height: 1.65; }

/* ============================================
   WHO ARE WE
   ============================================ */
.who-we-are {
    padding: 140px 0 120px;
    border-top: 1px solid var(--border);
}

.who-we-are h2 { margin-bottom: 14px; }

.who-we-are .section-desc {
    color: var(--text-3);
    max-width: 600px;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 64px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 700px;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid var(--border-hover);
    transition: border-color 0.3s, transform 0.3s;
}

.team-photo:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.team-photo-placeholder span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-3);
    line-height: 1.65;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 140px 0 120px;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.cta-text h2 { margin-bottom: 14px; }

.cta-subtitle {
    color: var(--text-3);
    margin-bottom: 32px;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.cta-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-details li {
    color: var(--text-3);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

.cta-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* CTA Form */
.cta-form-wrapper {
    padding: 36px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: border-color 0.3s;
}

.cta-form-wrapper:hover {
    border-color: rgba(237, 232, 227, 0.18);
}

.form-header {
    font-family: var(--heading);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

/* ============================================
   FORMS
   ============================================ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-4); }

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* reCAPTCHA */
.recaptcha-container { display: flex; justify-content: center; margin: 14px 0; }
.recaptcha-container .g-recaptcha { transform-origin: center; }

@media (max-width: 400px) {
    .recaptcha-container .g-recaptcha { transform: scale(0.85); transform-origin: center; }
}

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

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

.footer p {
    font-size: 0.75rem;
    color: var(--text-4);
    text-align: center;
}

/* ============================================
   QUESTION REVEAL (staggered)
   ============================================ */
.question-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.question-item.visible {
    opacity: 1;
    transform: translateY(0);
}

section[id] { scroll-margin-top: 100px; }

/* ============================================
   DEMO MODAL
   ============================================ */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal.active { opacity: 1; visibility: visible; }

.demo-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 12, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.demo-modal-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-raised);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-modal.active .demo-modal-container { transform: translateY(0) scale(1); }

.demo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-3);
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    z-index: 10;
}

.demo-modal-close:hover {
    border-color: var(--border-hover);
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.08);
}

.demo-modal-content { padding: 40px; }

/* Progress Steps */
.demo-progress { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 32px; }

.demo-progress-step { display: flex; align-items: center; gap: 8px; opacity: 0.3; transition: opacity 0.3s; }
.demo-progress-step.active { opacity: 1; }
.demo-progress-step.completed { opacity: 0.6; }

.progress-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    font-family: var(--heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-3);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.demo-progress-step.active .progress-number {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.demo-progress-step.completed .progress-number { border-color: #5CB87A; color: #5CB87A; }

.demo-progress-step span { font-size: 0.8rem; color: var(--text-3); }
.demo-progress-step.active span { color: var(--text-1); }
.demo-progress-line { width: 48px; height: 1px; background: var(--border); }

/* Step Header */
.demo-step-header { text-align: center; margin-bottom: 24px; }
.demo-step-header h3 { font-size: 1.3rem; margin-bottom: 8px; }
.demo-step-header p { color: var(--text-3); font-size: 0.9rem; }

/* Demo Form */
.demo-form .form-group { margin-bottom: 14px; }
.demo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.demo-form-actions .btn-secondary { flex: 0 0 auto; padding: 13px 22px; }
.demo-form-actions .btn-primary { flex: 1; }

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s;
}

.color-picker-wrapper:hover { border-color: var(--text-4); }

.color-picker-wrapper input[type="color"] {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    cursor: pointer;
    background: transparent;
    border-radius: 8px;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-wrapper input[type="color"]::-webkit-color-swatch { border: 1px solid var(--border-hover); border-radius: 8px; }
.color-value { font-family: var(--body); font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.03em; }

/* Logo Upload */
.logo-upload-area {
    position: relative;
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
}

.logo-upload-area:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.03);
}
.logo-upload-area.drag-over {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}
.logo-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-upload-content { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-upload-content svg { color: var(--text-4); }
.logo-upload-content span { font-size: 0.9rem; color: var(--text-3); }
.logo-upload-content small { font-size: 0.75rem; color: var(--text-4); }

.logo-preview { position: relative; padding: 14px; background: rgba(255, 255, 255, 0.015); border-radius: var(--radius-sm); }
.logo-preview img { max-width: 180px; max-height: 72px; object-fit: contain; }

.logo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #FCA5A5;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.logo-remove:hover { background: rgba(239, 68, 68, 0.15); color: var(--text-1); }

/* Loading */
.demo-loading-content { text-align: center; padding: 36px 0; }
.demo-loading-spinner { margin-bottom: 20px; }
.demo-loading-spinner svg { color: var(--accent); animation: spin 1s linear infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.demo-loading-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.demo-loading-content p { color: var(--text-3); font-size: 0.9rem; margin-bottom: 20px; }

.demo-loading-progress { height: 3px; background: var(--border); overflow: hidden; max-width: 200px; margin: 0 auto; border-radius: 3px; }
.demo-loading-bar { height: 100%; background: var(--accent); width: 0%; border-radius: 3px; animation: loading-progress 8s ease-out forwards; }

@keyframes loading-progress {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 95%; }
}

.demo-loading-quote {
    margin: 20px auto;
    padding: 16px 24px;
    max-width: 340px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.demo-loading-quote .quote-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-3);
    text-align: left;
    line-height: 1.5;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.demo-loading-quote .quote-text.fade-out { opacity: 0; }

/* Error */
.demo-error-content { text-align: center; padding: 36px 0; }
.demo-error-icon { margin-bottom: 20px; }
.demo-error-icon svg { color: #FCA5A5; }
.demo-error-content h3 { font-size: 1.15rem; margin-bottom: 8px; color: #FCA5A5; }
.demo-error-content p { color: var(--text-3); font-size: 0.9rem; margin-bottom: 20px; }

/* ============================================
   CASE STUDY MODAL
   ============================================ */
.case-study-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.case-study-modal.active { opacity: 1; visibility: visible; }

.case-study-container {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-raised);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-modal.active .case-study-container { transform: translateY(0) scale(1); }

.case-study-content {
    padding: 48px;
}

.case-study-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 32px;
    line-height: 1.25;
}

.case-study-content h3 {
    font-size: 1.1rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--accent);
}

.case-study-content p {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.case-study-intro {
    font-size: 1.05rem !important;
    color: var(--text-1) !important;
    line-height: 1.75;
}

.case-study-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.case-study-content li {
    position: relative;
    padding-left: 16px;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.75;
}

.case-study-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.case-study-content li strong {
    color: var(--text-1);
}

.case-study-cta {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.case-study-cta p {
    color: var(--text-1) !important;
    font-family: var(--heading);
    font-size: 1.1rem !important;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ============================================
   BOOKING MODAL
   ============================================ */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-modal.active { opacity: 1; visibility: visible; }

.booking-modal-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow: hidden;
    background: var(--bg-raised);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s ease;
}

.booking-modal-container.cal-active {
    max-width: 700px;
    max-height: 92vh;
}

.booking-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2010;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-raised);
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    color: var(--text-3);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.booking-close-btn:hover {
    color: var(--text-1);
    border-color: var(--text-3);
    background: rgba(255, 255, 255, 0.08);
}

.booking-modal.active .booking-modal-container { transform: translateY(0) scale(1); }

.booking-modal-content {
    padding: 40px;
}

.booking-modal-container.cal-active .booking-modal-content {
    padding: 0;
}

/* Hide iframe scrollbar by clipping the right edge */
.cal-iframe-clip {
    overflow: hidden;
    border-radius: var(--radius-lg);
    height: 90vh;
}

.cal-iframe-clip iframe {
    width: calc(100% + 20px);
    height: 100%;
    border: none;
}

.booking-modal-content .form-header {
    margin-bottom: 8px;
}

.booking-modal-desc {
    color: var(--text-3);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .testimonial-feature { grid-template-columns: 1fr; gap: 32px; }
    .views-grid { grid-template-columns: 1fr; gap: 0; }
    .view-card { padding: 28px 0; border-radius: 0; }
    .view-card:nth-child(1) { background: transparent; border-left: 2px solid var(--accent); padding-left: 24px; border-radius: 0; }
    .view-card:nth-child(2) { padding-left: 0; padding-right: 0; border-top: 1px solid var(--border); }
    .view-card:nth-child(3) { border: none; border-top: 1px solid var(--border); border-radius: 0; }
    .cta-layout { grid-template-columns: 1fr; gap: 48px; }
    .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }

    /* Hero mobile reset */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .hero .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .hero-content { max-width: none; }
    .hero-subtitle { font-size: 1rem; max-width: none; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-actions .btn {
        justify-content: center;
        padding: 16px 24px;
        font-size: 0.95rem;
    }
    .hero-note { text-align: center; }

    .hero-visual {
        position: absolute;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        transform: none;
        perspective: none;
    }
    .hero-dashboard-img {
        transform: none;
        opacity: 0.15;
        border-radius: 0;
    }
    .hero-visual::after {
        background:
            linear-gradient(to bottom, var(--bg) 0%, transparent 20%),
            linear-gradient(to top, var(--bg) 0%, transparent 10%);
    }
    /* Video section mobile */
    .demo-video-section { padding: 80px 0; }
    .video-wrapper { max-width: 100%; padding-bottom: 56.25%; border-radius: var(--radius-md); }
    .video-wrapper iframe { border-radius: var(--radius-md); }

    /* Testimonial mobile */
    .testimonial-feature { grid-template-columns: 1fr; gap: 24px; }
    .btn-case-study { align-self: stretch; justify-content: center; }

    /* Case study modal mobile */
    .case-study-content { padding: 32px 24px; }
    .case-study-container { border-radius: var(--radius-md); }

    /* Booking modal mobile */
    .booking-modal-content { padding: 32px 24px; }
    .booking-modal-container.cal-active .booking-modal-content { padding: 8px; }
    .booking-modal-container { border-radius: var(--radius-md); }
    .booking-modal-content .form-row { grid-template-columns: 1fr; }

    .reality-check { padding: 100px 0 80px; }
    .what-we-build { padding: 80px 0 100px; }
    .social-proof { padding: 100px 0 80px; }
    .process { padding: 80px 0 100px; }
    .who-we-are { padding: 80px 0; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .team-photo { width: 160px; height: 160px; }
    .final-cta { padding: 100px 0 80px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(20, 18, 16, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 14px;
        border-top: 1px solid var(--border);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: flex; }

    .question-item { padding: 18px 0; }
    .reality-check h2 { margin-bottom: 40px; }

    .testimonial p { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
    .testimonials { gap: 48px; margin-bottom: 48px; }

    .process-timeline { grid-template-columns: 1fr; gap: 0; }
    .process-step {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
        align-items: start;
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
    }
    .process-step:hover { transform: none; }
    .step-marker { flex-direction: column; gap: 4px; margin-bottom: 0; }
    .step-content { padding-top: 0; }

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

    .cta-form-wrapper { border-radius: var(--radius-md); }
}

@media (max-width: 480px) {
    .hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .cta-form-wrapper { padding: 24px 20px; }
    .demo-modal-content { padding: 24px 20px; }
    .demo-modal-container { border-radius: var(--radius-md); }
}

/* Demo Modal Responsive */
@media (max-width: 640px) {
    .demo-form-row { grid-template-columns: 1fr; }
    .demo-progress-step span { display: none; }
    .demo-form-actions { flex-direction: column-reverse; }
    .demo-form-actions .btn-secondary,
    .demo-form-actions .btn-primary { width: 100%; justify-content: center; }
}
