/* Digisfe Marketing Website — Design System + 3D */

:root,
[data-theme="light"] {
    --bg-page: #F8FAFF;
    --bg-surface: #FFFFFF;
    --bg-input: #F8FAFC;
    --bg-alt: #F1F5F9;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary: #06B6D4;
    --accent: #8B5CF6;
    --accent-2: #EC4899;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --text-heading: #0F172A;
    --text-body: #475569;
    --text-secondary: #64748B;
    --border: #E2E8F0;
    --primary-rgb: 37, 99, 235;
    --secondary-rgb: 6, 182, 212;
    --accent-rgb: 139, 92, 246;
    --gradient-headline: linear-gradient(135deg, #2563EB 0%, #8B5CF6 50%, #EC4899 100%);
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    --gradient-accent: linear-gradient(135deg, #2563EB 0%, #8B5CF6 100%);
    --gradient-accent-pink: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(var(--primary-rgb), 0.06);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(var(--primary-rgb), 0.08);
    --shadow-3d: 0 1px 0 rgba(255,255,255,0.9) inset, 0 20px 50px rgba(15,23,42,0.1);
    --header-bg: rgba(255, 255, 255, 0.82);
    --mesh-1: rgba(var(--primary-rgb), 0.08);
    --mesh-2: rgba(var(--secondary-rgb), 0.07);
    --mesh-3: rgba(var(--accent-rgb), 0.06);
    --radius: 1.25rem;
    --radius-sm: 0.75rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-page: #0B1220;
    --bg-surface: #111827;
    --bg-input: #1E293B;
    --bg-alt: #0F172A;
    --text-heading: #F1F5F9;
    --text-body: #CBD5E1;
    --text-secondary: #94A3B8;
    --border: #1E293B;
    --header-bg: rgba(17, 24, 39, 0.88);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
    --shadow-3d: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px rgba(0,0,0,0.4);
    --mesh-1: rgba(var(--primary-rgb), 0.15);
    --mesh-2: rgba(var(--secondary-rgb), 0.12);
    --mesh-3: rgba(var(--accent-rgb), 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
ul[role="list"], .hero-stats { list-style: none; margin: 0; padding: 0; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.scroll-anchor {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.section { padding: 5rem 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }

/* ── Ambient background ── */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 22s ease-in-out infinite;
}

.ambient-orb-1 { width: 480px; height: 480px; background: var(--mesh-1); top: -8%; right: 0; }
.ambient-orb-2 { width: 360px; height: 360px; background: var(--mesh-2); bottom: 10%; left: 5%; animation-delay: -8s; }
.ambient-orb-3 { width: 300px; height: 300px; background: var(--mesh-3); top: 40%; left: 40%; animation-delay: -16s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -32px) scale(1.04); }
    66% { transform: translate(-16px, 20px) scale(0.96); }
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
}

.nav-brand { flex-shrink: 0; }

.nav-logo { height: 2rem; width: auto; }
.nav-logo-light { display: none; }
[data-theme="dark"] .nav-logo-dark { display: none; }
[data-theme="dark"] .nav-logo-light { display: block; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
}
.nav-links a:hover { color: var(--primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}
.mobile-menu a {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-body);
    border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: var(--bg-input); }
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.is-open { display: flex !important; }

/* ── Theme toggle ── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-body);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.theme-toggle:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
}
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.42);
}

.btn-secondary {
    color: var(--text-heading);
    background: var(--bg-surface);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    transform: translateY(-2px);
}

.btn-lg { padding: 0.875rem 1.75rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* ── Typography ── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 9999px;
}

.gradient-text {
    background: var(--gradient-headline);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    margin: 0 0 1rem;
    line-height: 1.15;
}
.section-lead { font-size: 1.0625rem; color: var(--text-secondary); margin: 0; }

/* ── Hero ── */
.hero {
    padding-top: 7rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text-heading);
    margin: 0 0 1.25rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    max-width: 32rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.hero-stats strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.hero-stats span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── 3D Hero Scene ── */
.hero-scene {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.scene-stage {
    position: relative;
    width: min(420px, 100%);
    height: 420px;
    transform-style: preserve-3d;
    transform: rotateX(8deg) rotateY(-12deg);
    animation: sceneIdle 8s ease-in-out infinite;
    transition: transform 0.15s ease-out;
}

@keyframes sceneIdle {
    0%, 100% { transform: rotateX(8deg) rotateY(-12deg) translateY(0); }
    50% { transform: rotateX(6deg) rotateY(-8deg) translateY(-12px); }
}

.scene-glow {
    position: absolute;
    inset: 10%;
    background: var(--gradient-primary);
    filter: blur(60px);
    opacity: 0.25;
    border-radius: 50%;
    transform: translateZ(-80px);
}

.scene-card {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-3d);
    overflow: hidden;
    transform-style: preserve-3d;
}

.scene-card-admin {
    width: 320px;
    top: 20px;
    left: 0;
    transform: translateZ(40px) rotateY(-4deg);
    animation: cardFloat 6s ease-in-out infinite;
}

.scene-card-phone {
    width: 140px;
    height: 280px;
    top: 60px;
    right: 0;
    border-radius: 1.5rem;
    padding: 0.75rem;
    transform: translateZ(80px) rotateY(12deg) rotateX(4deg);
    animation: phoneFloat 7s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateZ(40px) rotateY(-4deg) translateY(0); }
    50% { transform: translateZ(60px) rotateY(-2deg) translateY(-8px); }
}

@keyframes phoneFloat {
    0%, 100% { transform: translateZ(80px) rotateY(12deg) rotateX(4deg) translateY(0); }
    50% { transform: translateZ(100px) rotateY(8deg) rotateX(2deg) translateY(-10px); }
}

.scene-card-bar {
    display: flex;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
}
.scene-card-bar span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--border);
}
.scene-card-bar span:first-child { background: #EF4444; }
.scene-card-bar span:nth-child(2) { background: #F59E0B; }
.scene-card-bar span:nth-child(3) { background: #10B981; }

.scene-card-body { padding: 1rem; }

.scene-mini-stat {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}
.scene-mini-stat small { display: block; font-size: 0.6875rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.scene-mini-stat strong { font-size: 1.25rem; color: var(--text-heading); }

.scene-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.375rem;
    height: 80px;
    margin-bottom: 1rem;
}
.scene-bar {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 2px 2px;
    background: var(--gradient-accent);
    box-shadow: 0 -2px 8px rgba(var(--primary-rgb), 0.25);
    animation: barGrow 1.2s ease-out backwards;
}
.scene-bar:nth-child(2) { animation-delay: 0.1s; background: var(--gradient-primary); }
.scene-bar:nth-child(3) { animation-delay: 0.2s; }
.scene-bar:nth-child(4) { animation-delay: 0.3s; background: var(--gradient-accent-pink); }
.scene-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes barGrow {
    from { height: 0; opacity: 0; }
}

.scene-progress small { font-size: 0.6875rem; color: var(--text-secondary); }
.scene-progress-track {
    height: 6px;
    margin-top: 0.375rem;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 9999px;
    overflow: hidden;
}
.scene-progress-fill {
    width: 78%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 9999px;
    animation: progressFill 1.5s ease-out 0.5s backwards;
}
@keyframes progressFill { from { width: 0; } }

.phone-notch {
    width: 40%;
    height: 4px;
    margin: 0 auto 0.5rem;
    background: var(--border);
    border-radius: 9999px;
}

.scene-phone-screen { padding: 0.25rem; }
.scene-phone-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.scene-call-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.scene-call-list li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--text-body);
}
.scene-call-list em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.625rem;
    color: var(--text-secondary);
}

.scene-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.scene-dot-blue { background: var(--primary); box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5); }
.scene-dot-cyan { background: var(--secondary); box-shadow: 0 0 8px rgba(var(--secondary-rgb), 0.5); }
.scene-dot-purple { background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5); }
.scene-dot-pink { background: var(--accent-2); }
.scene-dot-green { background: var(--success); }

.scene-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-heading);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
    animation: badgeFloat 5s ease-in-out infinite;
}
.scene-badge-sync { top: 0; right: 20px; transform: translateZ(120px); }
.scene-badge-success { bottom: 40px; left: 20px; transform: translateZ(100px); animation-delay: -2.5s; }

@keyframes badgeFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

/* ── Feature cards ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    transform: translateZ(20px);
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.feature-icon-blue { background: var(--gradient-accent); box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3); }
.feature-icon-cyan { background: var(--gradient-primary); box-shadow: 0 8px 20px rgba(var(--secondary-rgb), 0.3); }
.feature-icon-purple { background: var(--gradient-accent); box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3); }
.feature-icon-pink { background: var(--gradient-accent-pink); box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3); }
.feature-icon-green { background: linear-gradient(135deg, #10B981, #06B6D4); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }

/* ── Field intelligence ── */
.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.intelligence-card {
    padding: 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.intelligence-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.intelligence-card > p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.intelligence-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.intelligence-icon svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.intelligence-icon-cyan { background: var(--gradient-primary); box-shadow: 0 8px 20px rgba(var(--secondary-rgb), 0.25); }
.intelligence-icon-purple { background: var(--gradient-accent); box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.25); }

.intelligence-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.intelligence-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.5;
}

.intelligence-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.intelligence-mock {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-input);
    box-shadow: var(--shadow-sm);
    margin-top: auto;
}

.intelligence-mock-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.intelligence-mock-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
}

.intelligence-mock-body {
    padding: 0.75rem;
}

.intelligence-slide {
    height: 72px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.12));
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.intelligence-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.intelligence-chips span {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.intelligence-chips span.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.25);
    color: var(--primary);
    font-weight: 600;
}

.intelligence-map-body {
    position: relative;
    min-height: 100px;
}

.intelligence-map-grid {
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    background:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: rgba(var(--primary-rgb), 0.05);
}

.intelligence-pin {
    position: absolute;
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.intelligence-pin.pin-rep { top: 20%; left: 18%; }
.intelligence-pin.pin-hcp { top: 42%; left: 58%; font-size: 0.9rem; }
.intelligence-pin.pin-done {
    top: 58%;
    left: 36%;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 0.6rem;
    font-style: normal;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
}

/* ── Platform cards ── */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.platform-card {
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.platform-card-admin::before { background: var(--gradient-accent); }
.platform-card-mobile::before { background: var(--gradient-primary); }
.platform-card-android::before { background: var(--gradient-accent-pink); }

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

.platform-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 9999px;
    margin-bottom: 1rem;
}
.platform-badge-cyan { color: var(--secondary); background: rgba(var(--secondary-rgb), 0.1); }
.platform-badge-purple { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }

.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.platform-card p {
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.platform-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.platform-list li {
    font-size: 0.875rem;
    color: var(--text-body);
    padding-left: 1.25rem;
    position: relative;
}
.platform-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

/* ── Module pills ── */
.module-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.module-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.module-dot { width: 8px; height: 8px; border-radius: 50%; }
.module-dot-blue { background: var(--primary); }
.module-dot-cyan { background: var(--secondary); }
.module-dot-purple { background: var(--accent); }
.module-dot-pink { background: var(--accent-2); }
.module-dot-green { background: var(--success); }

/* ── CTA ── */
.cta-section { padding-bottom: 6rem; }

.cta-card {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-headline);
    opacity: 0.06;
    pointer-events: none;
}

.cta-card h2 {
    position: relative;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.cta-card p {
    position: relative;
    max-width: 480px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ── Demo request modal ── */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow: hidden;
}

.demo-modal[hidden] {
    display: none;
}

.demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.demo-modal-dialog {
    position: relative;
    width: min(480px, 100%);
    overflow: visible;
    padding: 1.5rem 1.75rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.demo-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.demo-modal-close:hover {
    background: var(--bg-alt);
    color: var(--text-heading);
}

.demo-modal-dialog h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0.25rem 2rem 0.35rem 0;
    letter-spacing: -0.02em;
}

.demo-modal-lead {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.demo-field span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-heading);
}

.demo-field span em {
    color: var(--error);
    font-style: normal;
}

.demo-field input,
.demo-field select,
.demo-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-heading);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.demo-field textarea {
    resize: none;
    min-height: 64px;
}

.demo-form-error {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--error);
}

.demo-submit {
    width: 100%;
    margin-top: 0;
}

.demo-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.demo-modal-success {
    text-align: center;
    padding: 1rem 0.5rem;
}

.demo-modal-success h2 {
    margin-bottom: 0.75rem;
}

.demo-modal-success p {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.demo-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ── Footer ── */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.footer-brand p {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 280px;
}

.footer-logo { height: 1.75rem; width: auto; margin-bottom: 0.25rem; }
.footer-logo-light { display: none; }
[data-theme="dark"] .footer-logo-dark { display: none; }
[data-theme="dark"] .footer-logo-light { display: block; }

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}
.footer-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
}

.footer-powered {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 1rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.footer-powered strong {
    background: var(--gradient-headline);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
}

/* ── Compare (Problem/Solution) ── */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.compare-card {
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.compare-card-old {
    opacity: 0.85;
}

.compare-card-old h3 {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0 0 1.25rem;
}

.compare-card-new {
    position: relative;
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: var(--shadow-md);
    background: linear-gradient(160deg, var(--bg-surface) 0%, rgba(var(--primary-rgb), 0.03) 100%);
}

.compare-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.compare-card-new h3 {
    color: var(--text-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
}

.compare-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compare-list li {
    font-size: 0.9375rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-body);
}

.compare-list-negative li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--error);
    font-weight: 700;
    font-size: 0.75rem;
}

.compare-list-positive li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
}

/* ── Workflow steps ── */
.workflow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.workflow-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.workflow-num {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.workflow-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.workflow-content p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ── Roles ── */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.role-card {
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.role-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}
.role-icon svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.role-icon-blue { background: var(--gradient-accent); }
.role-icon-cyan { background: var(--gradient-primary); }
.role-icon-purple { background: var(--gradient-accent-pink); }

.role-card h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.375rem;
}

.role-tagline {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1.25rem;
}

.role-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-list li {
    font-size: 0.875rem;
    color: var(--text-body);
    padding-left: 1.125rem;
    position: relative;
}

.role-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
}

/* ── Split section (Day in life) ── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.split-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0 1.25rem 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 4px var(--bg-page);
}

.timeline-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 4.5rem;
}

.timeline-item strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.timeline-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.split-visual {
    display: flex;
    justify-content: center;
    perspective: 800px;
}

.day-card-stack {
    position: relative;
    width: 280px;
    height: 320px;
}

.day-card {
    position: absolute;
    width: 240px;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.day-card-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.day-card strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.day-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.day-card-1 { top: 0; left: 0; transform: rotate(-4deg); animation: dayFloat 5s ease-in-out infinite; }
.day-card-2 { top: 80px; left: 40px; transform: rotate(2deg); animation: dayFloat 6s ease-in-out infinite -1s; z-index: 1; }
.day-card-3 { top: 160px; left: 10px; transform: rotate(-2deg); animation: dayFloat 7s ease-in-out infinite -2s; z-index: 2; }

@keyframes dayFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

.day-progress {
    height: 6px;
    margin-top: 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.day-progress span {
    display: block;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 9999px;
}

/* ── Trust band ── */
.trust-band {
    padding: 3rem 0;
    background: var(--gradient-accent);
    position: relative;
    z-index: 1;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.trust-item strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.trust-item span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ── Testimonials ── */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    margin: 0;
    padding: 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.testimonial-card p {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 1.25rem;
    font-style: italic;
}

.testimonial-card p::before {
    content: '"';
    font-size: 2rem;
    line-height: 0;
    color: var(--primary);
    font-style: normal;
    vertical-align: -0.4rem;
    margin-right: 0.125rem;
}

.testimonial-card footer strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-heading);
    margin-bottom: 0.125rem;
}

.testimonial-card footer span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ── FAQ ── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 1.125rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin: 0;
    padding: 0 1.25rem 1.125rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-cta, .hero-stats { justify-content: center; }
    .hero-scene { order: -1; }
    .scene-stage { transform: rotateX(4deg) rotateY(0); height: 360px; }
    .feature-grid, .intelligence-grid, .platform-grid, .roles-grid, .testimonial-grid, .compare-grid { grid-template-columns: 1fr; }
    .workflow-steps { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .split-visual { order: -1; margin-bottom: 1rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-nav { text-align: center; align-items: center; }
    .footer-brand p { margin-inline: auto; }
    .demo-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-stats { gap: 1.25rem; }
    .theme-toggle .theme-label { display: none; }
    .scene-card-admin { width: 260px; }
    .scene-card-phone { width: 120px; height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
