:root {
    color-scheme: light;
    --bg: #fcfdff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --border: rgba(115, 122, 255, 0.18);
    --text: #1d2939;
    --text-muted: #566272;
    --accent: #6c72ff;
    --shadow: 0 40px 120px rgba(46, 62, 116, 0.09);
    --shadow-soft: 0 18px 36px rgba(73, 92, 129, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(108, 114, 255, 0.14), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(49, 102, 255, 0.12), transparent 22%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 80px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 36px 40px 48px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 255, 0.92));
    border: 1px solid rgba(115, 122, 255, 0.14);
    box-shadow: var(--shadow);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(108, 114, 255, 0.16), transparent 26%),
        radial-gradient(circle at 80% 30%, rgba(92, 192, 255, 0.18), transparent 18%);
    pointer-events: none;
}

/* TOP HEADER ROW: Full-width alignment */
.hero-header-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Brand on left, buttons on right */
    width: 100%;
    margin-bottom: 24px;
}

.header-left-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand-logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #1e293b;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

.live-demo-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

/* BIGGER TOP-RIGHT BUTTONS */
.hero-actions-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 260ms ease;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-login {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.btn-signup {
    background: #ffffff;
    color: #4f46e5;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    transform: translateY(-2px);
}

/* MAIN TWO COLUMN GRID LAYOUT */
.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero-copy {
    width: 100%;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.3rem, 3vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #0f172a;
}

.highlight-purple {
    color: #6366f1;
}

.highlight-blue {
    color: #38bdf8;
}

.hero-copy p {
    margin: 20px 0 0;
    font-size: 1.05rem;
    line-height: 1.68;
    color: var(--text-muted);
}

.hero-stats {
    display: flex;
    gap: 18px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.stat-item {
    min-width: 180px;
    padding: 18px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(108, 114, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

.stat-primary {
    background: linear-gradient(135deg, rgba(104, 111, 255, 0.12), rgba(255, 255, 255, 0.96));
}

.stat-secondary {
    background: linear-gradient(135deg, rgba(142, 108, 255, 0.1), rgba(255, 255, 255, 0.96));
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: var(--text);
}

.stat-item span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Demo account callout — one solid clickable card, same rounded shape/shadow as .stat-item above
   it, but filled with the same gradient as .btn-login so it visually reads as "this IS the way
   in," not a footnote. No icon font dependency — the icon is inline SVG, so it can never end up
   silently blank the way a mistyped icon-font class did elsewhere in this app. */
.demo-callout {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 24px;
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.32);
    text-decoration: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.demo-callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.42);
}

.demo-callout-icon {
    color: #fff;
    display: flex;
    flex-shrink: 0;
    opacity: 0.9;
}

.demo-callout-body {
    flex: 1;
    min-width: 0;
}

.demo-callout-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.demo-callout-creds {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.demo-callout-creds code {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.demo-callout-sep {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.demo-callout-arrow {
    flex-shrink: 0;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 768px) {
    .demo-callout {
        padding: 16px 18px;
        gap: 12px;
    }
    .demo-callout-label { font-size: 0.88rem; }
    .demo-callout-creds { font-size: 0.8rem; }
}

/* RIGHT SECTION 3D SLIDER STYLES */
.hero-visual {
    position: relative;
    min-width: 0;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.6;
}

.hero-deco-left {
    width: 280px;
    height: 280px;
    top: 10%;
    left: -40px;
    background: rgba(108, 114, 255, 0.18);
}

.hero-deco-right {
    width: 240px;
    height: 240px;
    bottom: 5%;
    right: -26px;
    background: rgba(159, 113, 255, 0.14);
}

.slider-shell {
    position: relative;
    width: 100%;
    min-height: 480px;
}

.slider-viewport {
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: center;
    display: grid;
    justify-items: center;
    width: 100%;
    min-height: 480px;
}

.slider-card {
    position: relative;
    grid-area: 1 / 1;
    width: min(460px, 100%);
    min-height: 460px;
    padding: 34px 30px;
    border-radius: 36px;
    background: linear-gradient(180deg, #ffffff, #f6f8ff);
    border: 1px solid rgba(115, 122, 255, 0.14);
    box-shadow: 0 40px 90px rgba(49, 80, 150, 0.14);
    transform: translateX(0);
    backface-visibility: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slider-card.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
    transform: translateX(0);
    box-shadow: 0 50px 120px rgba(49, 80, 150, 0.18);
}

.slider-card.prev {
    visibility: hidden;
}

.slider-card.next {
    visibility: hidden;
}

.card-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.card-head span {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.card-head strong {
    font-size: clamp(1.6rem, 2.1vw, 2.1rem);
    line-height: 1.1;
    color: var(--text);
}

.card-body {
    display: grid;
    gap: 12px;
}

.tile {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(108, 114, 255, 0.12);
    box-shadow: 0 12px 30px rgba(74, 99, 160, 0.06);
}

.tile strong {
    font-size: 0.95rem;
}

.tile p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
    font-size: 0.88rem;
}

.tile-a { background: rgba(102, 125, 255, 0.08); }
.tile-b { background: rgba(87, 197, 255, 0.1); }
.tile-c { background: rgba(159, 113, 255, 0.08); }

.slider-footer {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.slider-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    background: rgba(108, 114, 255, 0.14);
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    transition: transform 220ms ease, background-color 220ms ease;
}

.slider-btn:hover {
    transform: translateY(-2px);
    background: rgba(108, 114, 255, 0.22);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(108, 114, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: transform 220ms ease, background-color 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .slider-card { transition: none; }
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* DASHBOARD PREVIEW SECTION */
.dashboard-preview {
    margin-top: 60px;
}

.dashboard-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 38px;
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff, rgba(250, 252, 255, 0.95));
    border: 1px solid rgba(115, 122, 255, 0.12);
    box-shadow: var(--shadow);
}

.dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.dashboard-badges span {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(108, 114, 255, 0.12);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.dash-card {
    padding: 24px 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(108, 114, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

/* RESPONSIVE DESIGN */
@media (max-width: 960px) {
    .hero-content,
    .dashboard-panel {
        grid-template-columns: 1fr;
    }

    .hero-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-visual {
        min-height: 460px;
    }
}

/* Phone-only refinement — the 960px breakpoint above already collapses to one column; this
   just resizes text/buttons/spacing so it reads comfortably on a phone screen instead of
   looking like a shrunk desktop layout, and makes sure every tap target is comfortably sized. */
@media (max-width: 576px) {
    .page-shell { padding: 24px 0 56px; }
    .hero { padding: 22px 18px 28px; border-radius: 24px; }

    .hero-header-bar { gap: 14px; }
    .header-left-brand { gap: 10px; }
    .brand-logo-pill { font-size: 0.88rem; }
    .live-demo-tag { font-size: 0.78rem; padding: 6px 12px; }

    .hero-actions-inline { width: 100%; gap: 10px; }
    .hero-actions-inline .btn { flex: 1; }
    .btn { min-height: 48px; padding: 12px 20px; font-size: 1rem; }

    .hero-copy h1 { font-size: 1.85rem; letter-spacing: -0.02em; }
    .hero-copy p { font-size: 1rem; margin-top: 16px; }

    .hero-stats { margin-top: 28px; gap: 12px; }
    .stat-item { min-width: 0; flex: 1 1 auto; padding: 16px 18px; border-radius: 18px; }
    .stat-item strong { font-size: 1.4rem; }
    .stat-item span { font-size: 0.84rem; }

    .hero-visual { min-height: 420px; }
    .slider-shell, .slider-viewport { min-height: 420px; }
    .slider-card { min-height: 420px; padding: 26px 20px; border-radius: 26px; }
    .card-head strong { font-size: 1.35rem; }
    .tile { padding: 14px 16px; border-radius: 16px; }

    .slider-footer { margin-top: 12px; }
    .slider-controls { gap: 10px; }
    .slider-btn { min-height: 46px; padding: 10px 16px; font-size: 0.9rem; }
    .slider-dot { width: 14px; height: 14px; }

    .dashboard-preview { margin-top: 40px; }
    .dashboard-panel { padding: 22px; border-radius: 22px; gap: 18px; }
    .dashboard-badges span { font-size: 0.82rem; padding: 8px 14px; }
    .dash-card { padding: 18px 20px; border-radius: 18px; }
}

/* Public feature catalog */
html { scroll-behavior: smooth; }
.header-feature-link, .feature-text-link { color: #4f46e5; font-weight: 650; text-decoration: none; }
.header-feature-link { margin-right: 8px; white-space: nowrap; }
.hero-primary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-primary-actions .btn { padding: 15px 22px; }
.feature-text-link { font-size: 0.93rem; }
.feature-section, .getting-started { margin-top: 76px; scroll-margin-top: 24px; }
.section-heading { max-width: 710px; margin: 0 auto 32px; text-align: center; }
.section-eyebrow { display: block; color: #5850d9; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.13em; line-height: 1.6; }
.section-heading h2 { margin: 12px 0; font-size: clamp(1.8rem, 3.3vw, 2.8rem); line-height: 1.15; letter-spacing: -0.035em; color: #0f172a; }
.section-heading p { color: var(--text-muted); line-height: 1.7; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 26px; border: 1px solid var(--border); background: #fff; box-shadow: 0 12px 38px rgba(49, 80, 150, 0.05); transition: transform 200ms ease, box-shadow 200ms ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(49, 80, 150, 0.11); }
.feature-card-spotlight { grid-column: span 2; background: linear-gradient(130deg, #eeedff, #f3fbff); }
.feature-card:last-child { grid-column: span 2; background: linear-gradient(130deg, #f3fbff, #fff); }
.feature-category { color: #5145c6; font-size: 0.69rem; font-weight: 800; letter-spacing: 0.09em; line-height: 1.6; }
.feature-card h3, .start-card h3 { font-size: 1.3rem; margin: 12px 0 10px; color: #14213b; letter-spacing: -0.02em; }
.feature-card p, .start-card p { color: var(--text-muted); line-height: 1.65; font-size: 0.95rem; margin: 0; }
.feature-card ul { padding-left: 20px; margin: 18px 0 26px; color: #43516a; font-size: 0.9rem; line-height: 1.65; }
.feature-card li { margin-bottom: 8px; padding-left: 3px; }
.feature-card li::marker { color: #7771ef; }
.feature-card a { margin-top: auto; color: #4f46e5; font-weight: 750; font-size: 0.9rem; text-decoration: none; }
.feature-card a span { display: inline-block; margin-left: 5px; }
.feature-card a:hover, .feature-text-link:hover, .header-feature-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-access-note { color: var(--text-muted); text-align: center; font-size: 0.83rem; line-height: 1.65; margin: 24px auto 0; max-width: 800px; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.start-card { padding: 28px; border-radius: 24px; background: #f0f3ff; border: 1px solid var(--border); }
.start-number { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #fff; color: #5850d9; border-radius: 12px; font-weight: 800; }
.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 36px; padding: 38px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, #3730a3, #635bff); }
.landing-cta h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 12px; letter-spacing: -0.025em; }
.landing-cta p { margin: 0; line-height: 1.6; color: #e2e7ff; }
.landing-cta .btn { flex-shrink: 0; background: #fff; color: #4338ca; padding: 15px 24px; }
.landing-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 32px 4px 0; color: var(--text-muted); font-size: 0.85rem; }
.landing-footer span { margin-right: auto; }
.landing-footer a { color: #43516a; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #635bff; outline-offset: 4px; }
@media (max-width: 1100px) {
    .hero-header-bar { flex-wrap: wrap; gap: 20px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-card-spotlight, .feature-card:last-child { grid-column: auto; }
}
@media (max-width: 700px) {
    .feature-grid, .start-grid { grid-template-columns: 1fr; }
    .feature-section, .getting-started { margin-top: 48px; }
    .feature-card, .start-card { padding: 24px; }
    .landing-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .hero-actions-inline { flex-wrap: wrap; }
    .header-feature-link { flex-basis: 100%; }
    .landing-footer { gap: 16px; }
    .landing-footer span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .feature-card { transition: none; }
    .feature-card:hover { transform: none; }
}

/* Place the carousel category above its title, aligned to the right. */
.slider-card .card-head {
    align-items: stretch;
}
.slider-card .card-head span {
    order: -1;
    align-self: flex-end;
    text-align: right;
}