/* ── Striqr dashboard — Glitch × Canva × Framer ── */

:root {
    --purple: #7c3aed;
    --purple-deep: #5b21b6;
    --purple-soft: #ede9fe;
    --purple-glow: rgba(124, 58, 237, 0.35);
    --pink: #ec4899;
    --teal: #06b6d4;
    --coral: #fb7185;

    --ink: #1a1625;
    --ink-muted: #6b6578;
    --ink-faint: #9b94a8;

    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-sunken: #f8f6ff;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --input-bg: #ffffff;
    --canvas: #f4f0ff;
    --dropdown-shadow: 0 8px 24px rgba(26, 22, 37, 0.14);

    --border: rgba(124, 58, 237, 0.1);
    --border-strong: rgba(124, 58, 237, 0.22);

    --shadow-xs: 0 1px 2px rgba(26, 22, 37, 0.04);
    --shadow-sm: 0 4px 14px rgba(124, 58, 237, 0.08);
    --shadow-md: 0 10px 30px rgba(124, 58, 237, 0.12);
    --shadow-lg: 0 20px 50px rgba(124, 58, 237, 0.16);

    --ambient-base: linear-gradient(165deg, #f8f5ff 0%, #faf8ff 40%, #f0f7ff 100%);
    --ambient-orb-1: rgba(167, 139, 250, 0.45);
    --ambient-orb-2: rgba(236, 72, 153, 0.28);
    --ambient-orb-3: rgba(6, 182, 212, 0.22);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    --nav-h: 64px;

    --font-ui: "DM Sans", "Outfit", system-ui, sans-serif;
    --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
    --font-mono: "Overpass", ui-monospace, monospace;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.2s var(--ease-out);
    color-scheme: light;
}

[data-theme="dark"] {
    color-scheme: dark;
    --purple: #5865f2;
    --purple-deep: #4752c4;
    --purple-soft: rgba(88, 101, 242, 0.18);
    --purple-glow: rgba(88, 101, 242, 0.4);
    --pink: #eb459e;
    --teal: #00a8fc;
    --coral: #ed4245;

    --ink: #f2f3f5;
    --ink-muted: #b5bac1;
    --ink-faint: #949ba4;

    --surface: #313338;
    --surface-raised: #383a40;
    --surface-sunken: #2b2d31;
    --surface-glass: rgba(30, 31, 34, 0.72);
    --input-bg: #1e1f22;
    --canvas: #1a1b1e;
    --dropdown-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);

    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);

    --ambient-base: linear-gradient(165deg, #313338 0%, #2b2d31 50%, #1a1b1e 100%);
    --ambient-orb-1: rgba(88, 101, 242, 0.14);
    --ambient-orb-2: rgba(235, 69, 158, 0.1);
    --ambient-orb-3: rgba(0, 168, 252, 0.08);
}

/* ── Base ── */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

input {
    font-family: inherit;
}

/* ── Ambient background ── */

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(167, 139, 250, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(236, 72, 153, 0.14), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(6, 182, 212, 0.1), transparent 55%),
        var(--ambient-base);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: orb-drift 18s ease-in-out infinite;
}

.ambient-orb--1 { width: 420px; height: 420px; top: -8%; left: -4%; background: var(--ambient-orb-1); }
.ambient-orb--2 { width: 320px; height: 320px; top: 35%; right: -6%; background: var(--ambient-orb-2); animation-delay: -6s; }
.ambient-orb--3 { width: 280px; height: 280px; bottom: -5%; left: 35%; background: var(--ambient-orb-3); animation-delay: -12s; }

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.04); }
    66% { transform: translate(-16px, 12px) scale(0.96); }
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ink-muted);
}

.btn-ghost:hover {
    background: var(--purple-soft);
    color: var(--purple);
    box-shadow: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-color: transparent;
    box-shadow: 0 6px 18px var(--purple-glow);
}

.btn-primary:hover {
    box-shadow: 0 10px 26px var(--purple-glow);
    border-color: transparent;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    height: 46px;
    padding: 0 24px;
    font-size: 15px;
}

.btn-google {
    width: 100%;
    height: 46px;
    gap: 10px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-google:hover {
    background: var(--surface-sunken);
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

/* ── Bloxflip top navbar ── */

.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--nav-h);
    padding: 0 22px;
    background: var(--surface-glass);
    -webkit-backdrop-filter: saturate(170%) blur(22px);
    backdrop-filter: saturate(170%) blur(22px);
    border-bottom: 1px solid var(--border);
}

/* Neon underglow line */
.topnav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple) 35%, var(--pink) 65%, transparent);
    opacity: 0.55;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #facc15;
}

.brand-mark .brand-bolt {
    display: block;
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 10px rgba(250, 204, 21, 0.45));
}

.brand-mark--footer {
    color: #facc15;
}

.brand-mark--footer .brand-bolt {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 8px rgba(250, 204, 21, 0.4));
}

.brand-mark img {
    width: 36px;
    height: 36px;
}

.nav-brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.nav-brand .brand-dot {
    color: var(--pink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: auto;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
    transition: color var(--transition), opacity var(--transition);
}

.nav-link:hover {
    color: var(--purple);
    opacity: 0.9;
}

.nav-link.is-active {
    color: var(--purple);
    background: transparent;
    box-shadow: none;
}

.nav-link--pricing {
    gap: 6px;
    font-weight: 700;
    color: #facc15;
}

.nav-link--pricing:hover,
.nav-link--pricing.is-active {
    color: #fde047;
}

.nav-pricing-bolt {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 6px rgba(250, 204, 21, 0.5));
}

/* Mobile hamburger — hidden on desktop */
.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-left: 2px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: color var(--transition);
}

.nav-menu-btn:hover {
    color: var(--purple);
}

.nav-menu-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: background 0.2s ease;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, top 0.2s ease;
}

.nav-menu-icon::before { top: -6px; }
.nav-menu-icon::after { top: 6px; }

.topnav.is-nav-open .nav-menu-icon {
    background: transparent;
}

.topnav.is-nav-open .nav-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.topnav.is-nav-open .nav-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-spacer {
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--surface);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 4px 14px rgba(26, 22, 37, 0.18);
}

.nav-signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(26, 22, 37, 0.22);
    color: var(--surface);
}

[data-theme="dark"] .nav-signup-btn {
    background: #fff;
    color: #1a1625;
}

[data-theme="dark"] .nav-signup-btn:hover {
    color: #1a1625;
}

/* Theme toggle lives in account dropdown */
.dropdown-item--theme {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
}

.dropdown-item--theme .icon-sun { display: none; }
.dropdown-item--theme .icon-moon { display: block; }
[data-theme="dark"] .dropdown-item--theme .icon-sun { display: block; }
[data-theme="dark"] .dropdown-item--theme .icon-moon { display: none; }

.theme-toggle-label {
    flex: 1;
}

/* Account profile + dropdown */
.account-menu {
    position: relative;
}

#accountBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 4px 14px 4px 5px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(236, 72, 153, 0.35)) border-box;
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

#accountBtn:hover {
    box-shadow: var(--shadow-sm), 0 0 0 3px var(--purple-soft);
    transform: translateY(-1px);
}

.account-avatar-wrap {
    display: inline-flex;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--purple-deep);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
}

.account-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.15;
    min-width: 0;
}

.account-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-hint {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-chevron {
    color: var(--ink-faint);
    transition: transform var(--transition);
}

.account-menu.open .account-chevron {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--dropdown-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.account-menu.open .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-head {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.dropdown-head .dh-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}

.dropdown-head .dh-mail {
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    transition: background var(--transition), color var(--transition);
}

.dropdown-item:hover {
    background: var(--purple-soft);
    color: var(--purple);
}

.dropdown-item.is-danger:hover {
    background: rgba(237, 66, 69, 0.12);
    color: var(--coral);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 4px;
}

/* ── Page shell ── */

.page {
    position: relative;
    z-index: 1;
}

.shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Hero banner (Bloxflip-style gradient slab) ── */

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 44px 40px;
    margin: 8px 0 26px;
    color: #fff;
    isolation: isolate;
    background:
        radial-gradient(120% 150% at 100% 0%, rgba(236, 72, 153, 0.55), transparent 48%),
        radial-gradient(130% 160% at 0% 100%, rgba(6, 182, 212, 0.5), transparent 52%),
        linear-gradient(135deg, #6d28d9 0%, #4f46e5 55%, #7c3aed 100%);
    box-shadow: 0 30px 70px rgba(79, 70, 229, 0.45);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22), transparent 38%),
        linear-gradient(transparent 95%, rgba(255, 255, 255, 0.08) 95%),
        linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.08) 95%);
    background-size: 100% 100%, 38px 38px, 38px 38px;
    opacity: 0.7;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 620px;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5.2vw, 52px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 .grad {
    background: linear-gradient(120deg, #fde68a, #fda4af 45%, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15.5px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-cta .btn {
    height: 46px;
    padding: 0 22px;
    font-size: 14.5px;
}

.hero-cta .btn-light {
    background: #fff;
    color: #5b21b6;
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.hero-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.hero-cta .btn-glass {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-cta .btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Stats strip inside hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-stat-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.hero-stat-unit {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
}

.hero-stat-label {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating decorative chips */
.hero-deco {
    position: absolute;
    top: 0;
    right: 28px;
    bottom: 0;
    width: 280px;
    z-index: -1;
    pointer-events: none;
}

.deco-chip {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 22px;
    font-size: 36px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    animation: chip-float 6s ease-in-out infinite;
}

.deco-chip:nth-child(1) { top: 28%; right: 150px; animation-delay: 0s; }
.deco-chip:nth-child(2) { top: 14%; right: 40px; width: 92px; height: 92px; font-size: 42px; animation-delay: -2s; }
.deco-chip:nth-child(3) { bottom: 18%; right: 96px; animation-delay: -4s; }

@keyframes chip-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-16px) rotate(4deg); }
}

/* ── Section titles ── */

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.dash-section {
    margin-top: 36px;
}

.dash-section .section-title {
    margin-top: 0;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.section-title .hint {
    font-size: 13px;
    color: var(--ink-faint);
}

/* ── Create cards ── */

.create-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.create-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    text-align: left;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.create-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.create-card .cc-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.create-card .cc-icon {
    font-size: 22px;
    line-height: 1;
}

.create-card .cc-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.create-card .cc-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.create-card .cc-desc {
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.4;
}

.create-card .cc-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    transition: transform var(--transition), background var(--transition);
}

.create-card:hover .cc-arrow {
    transform: translateX(2px);
    background: color-mix(in srgb, var(--accent) 18%, var(--surface));
}

.create-card.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.create-card.is-loading .cc-arrow {
    font-size: 0;
}

.create-card.is-loading .cc-arrow::after {
    content: "…";
    font-size: 14px;
}

.create-card.is-soon {
    opacity: 0.55;
    cursor: default;
}

.create-card.is-soon:hover {
    transform: none;
    box-shadow: var(--shadow-xs);
}

.create-card .cc-soon {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink-faint);
    background: var(--surface-sunken);
    border: 1px solid var(--border);
}

.cc-node   { --accent: #10b981; --accent-2: #06b6d4; }
.cc-flask  { --accent: #ec4899; --accent-2: #8b5cf6; }
.cc-static { --accent: #7c3aed; --accent-2: #3b82f6; }
.cc-import { --accent: #f59e0b; --accent-2: #fb7185; }

/* ── Search ── */

.search-wrap {
    position: relative;
    margin-top: 4px;
}

.search-wrap svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-faint);
    pointer-events: none;
}

#projectSearch {
    width: 100%;
    height: 46px;
    padding: 0 18px 0 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition);
}

#projectSearch::placeholder {
    color: var(--ink-faint);
}

#projectSearch:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px var(--purple-soft), 0 8px 24px var(--purple-glow);
}

/* ── Project list ── */

.project-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.project-card:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.project-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 20px;
    background: color-mix(in srgb, var(--p-accent, var(--purple)) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--p-accent, var(--purple)) 20%, transparent);
}

.project-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.project-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-meta {
    font-size: 12.5px;
    color: var(--ink-muted);
}

.project-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: var(--surface-sunken);
    border: 1px solid var(--border);
}

.project-badge.boosted {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

[data-theme="dark"] .project-badge.boosted {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.project-open {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-faint);
    background: var(--surface-sunken);
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.project-card:hover .project-open {
    color: var(--purple);
    background: var(--purple-soft);
    transform: translateX(2px);
}

.p-node   { --p-accent: #10b981; --p-accent-2: #06b6d4; }
.p-flask  { --p-accent: #ec4899; --p-accent-2: #8b5cf6; }
.p-static { --p-accent: #7c3aed; --p-accent-2: #3b82f6; }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    color: var(--ink-muted);
}

.empty-state .es-emoji {
    font-size: 30px;
}

.empty-state p {
    margin: 10px 0 0;
}

/* ── About section ── */

.about {
    margin-top: 56px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.about h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 10px;
}

.about p {
    color: var(--ink-muted);
    line-height: 1.7;
    max-width: 720px;
}

/* ── Auth pages ── */

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 34px 32px;
    border-radius: var(--radius-xl);
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: card-rise 0.5s var(--ease-out) both;
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

.auth-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 24px;
    text-align: center;
    margin: 0;
}

.auth-card .sub {
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
    margin: 8px 0 22px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--ink-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--input-bg);
    color: var(--ink);
    font-size: 14.5px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px var(--purple-soft);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 18px;
    font-size: 13px;
}

.auth-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-muted);
    cursor: pointer;
}

.auth-row a {
    color: var(--purple);
    font-weight: 600;
}

.auth-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-muted);
}

.auth-foot a {
    color: var(--purple);
    font-weight: 700;
}

.auth-back {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: color var(--transition), border-color var(--transition);
}

.auth-back:hover {
    color: var(--purple);
    border-color: var(--border-strong);
}

/* ── Boost page ── */

.boost-hero {
    text-align: center;
    margin: 26px 0 8px;
}

.boost-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    margin-bottom: 16px;
}

.boost-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.boost-hero p {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--ink-muted);
    font-size: 15px;
    line-height: 1.6;
}

.boost-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    margin-top: 36px;
    align-items: start;
}

.boost-price-card {
    position: sticky;
    top: 88px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.boost-price-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--teal));
}

.boost-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.boost-price .amount {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.boost-price .per {
    color: var(--ink-muted);
    font-size: 15px;
}

.boost-price-card .tag {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.boost-feature-list {
    list-style: none;
    margin: 22px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.boost-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
}

.boost-feature-list .tick {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--purple-soft);
    color: var(--purple);
    font-size: 12px;
}

.boost-note {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--ink-faint);
    text-align: center;
}

.boost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.boost-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.boost-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.boost-item .bi-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    font-size: 26px;
    background: var(--purple-soft);
}

.boost-item h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin: 0 0 6px;
}

.boost-item p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.boost-faq {
    margin-top: 40px;
}

.boost-faq h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 16px;
    text-align: center;
}

.faq-item {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.faq-item h4 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 15px;
}

.faq-item p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ── Bloxflip footer ── */

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    overflow: hidden;
    color: #b9b4c9;
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(124, 58, 237, 0.28), transparent 58%),
        radial-gradient(90% 120% at 100% 0%, rgba(236, 72, 153, 0.16), transparent 55%),
        linear-gradient(180deg, #16131f 0%, #0d0b14 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Neon top divider */
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple) 30%, var(--pink) 50%, var(--teal) 70%, transparent);
    opacity: 0.7;
}

.footer-inner {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 52px 24px 30px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: #fff;
}

.footer-brand p {
    margin: 14px 0 18px;
    max-width: 300px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #948fa6;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #c8c4d4;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.footer-socials a:hover {
    transform: translateY(-3px);
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-color: transparent;
    box-shadow: 0 8px 20px var(--purple-glow);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
}

.footer-col h4 {
    margin: 4px 0 14px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    color: #948fa6;
    transition: color var(--transition), transform var(--transition);
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-bottom {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12.5px;
    color: #7e7991;
}

.footer-bottom .fb-links {
    display: flex;
    gap: 18px;
}

.footer-bottom .fb-links a {
    color: #948fa6;
    transition: color var(--transition);
}

.footer-bottom .fb-links a:hover {
    color: #fff;
}

/* ── Responsive ── */

@media (max-width: 860px) {
    .boost-layout {
        grid-template-columns: 1fr;
    }

    .boost-price-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 820px) {
    .hero-deco {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 680px) {
    .topnav {
        position: sticky;
        gap: 10px;
        padding: 0 12px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .nav-brand {
        font-size: 16px;
        gap: 8px;
        flex-shrink: 0;
    }

    .brand-mark .brand-bolt {
        width: 30px;
        height: 30px;
    }

    .nav-menu-btn {
        display: inline-flex;
        align-self: center;
    }

    .nav-spacer {
        flex: 1;
        min-width: 8px;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 6px);
        left: 12px;
        right: 12px;
        z-index: 300;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 8px;
        border-radius: var(--radius-md);
        background: var(--surface-raised);
        border: 1px solid var(--border-strong);
        box-shadow: var(--dropdown-shadow);
    }

    .topnav.is-nav-open .nav-links {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    .nav-link:hover {
        background: var(--surface-sunken);
    }

    .nav-link.is-active {
        background: var(--purple-soft);
    }

    .account-name {
        display: none;
    }

    .account-hint {
        display: none;
    }

    .nav-signup-btn {
        height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }

    .shell {
        padding: 28px 16px 64px;
    }

    .hero {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

/* ════════════════════════════════════════════════════════════
   HOME / LANDING PAGE
   ════════════════════════════════════════════════════════════ */

.home .grad {
    background: linear-gradient(120deg, #fde68a, #fda4af 45%, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Hero ── */

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 92px 24px 132px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 130% at 50% -20%, #8b6dff 0%, #6f43f0 34%, #5b21b6 68%, #46199c 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
}

.home-title {
    margin: 22px 0 0;
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 0 6px 30px rgba(20, 8, 60, 0.4);
}

.home-sub {
    margin: 20px 0 0;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.home-sub strong {
    color: #fff;
    font-weight: 700;
}

.home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 32px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
        background var(--transition), border-color var(--transition);
}

.home-btn--primary {
    background: #fff;
    color: #5b21b6;
    box-shadow: 0 14px 34px rgba(15, 5, 45, 0.32);
}

.home-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(15, 5, 45, 0.42);
}

.home-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.home-btn--ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.home-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.78);
}

.home-trust .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

/* Instant launch CTA — matches hero glass / purple theme */
.home-instant-launch {
    width: 100%;
    max-width: 560px;
    margin: 32px auto 0;
    text-align: center;
}

.home-instant-panel {
    position: relative;
    overflow: hidden;
    padding: 26px 28px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow:
        0 20px 50px rgba(15, 5, 45, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.home-instant-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(253, 224, 71, 0.12), transparent 50%),
        radial-gradient(70% 100% at 100% 100%, rgba(236, 72, 153, 0.14), transparent 55%);
    pointer-events: none;
}

.home-instant-spark {
    position: absolute;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    animation: home-spark-float 5s ease-in-out infinite;
}

.home-instant-spark--1 { top: 14px; right: 18px; }
.home-instant-spark--2 { bottom: 16px; left: 20px; animation-delay: -2s; font-size: 14px; }

.home-instant-line {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(18px, 3.2vw, 22px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
}

.home-instant-action {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: clamp(17px, 3vw, 20px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.home-instant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-pill);
    background: #fff;
    color: #5b21b6;
    font-family: var(--font-display);
    font-size: clamp(16px, 2.8vw, 18px);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 5, 45, 0.28);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s;
}

.home-instant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 5, 45, 0.36);
}

.home-instant-btn.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.home-instant-tags {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.home-instant-sub {
    margin: 16px auto 0;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* Hero ambient FX (LDR emblem + sparks + grid) */
.home-hero-fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.home-emblem {
    transform: translateY(-118px) scale(1.9);
    opacity: 0.2;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
}

.home-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    opacity: 0.6;
}

.home-spark {
    position: absolute;
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    text-shadow: 0 0 14px rgba(165, 243, 252, 0.8);
    animation: home-spark-float 6s ease-in-out infinite;
}

.home-spark--1 { top: 22%; left: 14%; font-size: 26px; }
.home-spark--2 { top: 30%; right: 16%; animation-delay: -1.5s; }
.home-spark--3 { bottom: 28%; left: 22%; font-size: 18px; animation-delay: -3s; }
.home-spark--4 { bottom: 34%; right: 24%; font-size: 28px; animation-delay: -4.5s; }

@keyframes home-spark-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50%      { transform: translateY(-14px) scale(1.15); opacity: 1; }
}

/* Blend the hero into the light page */
.home-hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    z-index: 3;
    background: linear-gradient(to bottom, transparent, var(--canvas));
    pointer-events: none;
}

/* Hero product showcase (Framer-style) */
.home-hero-showcase {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    padding-bottom: 0;
}

.home-showcase-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 80px rgba(15, 5, 45, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: perspective(1200px) rotateX(4deg);
    transition: transform 0.5s var(--ease-out);
}

.home-showcase-frame:hover {
    transform: perspective(1200px) rotateX(0deg) translateY(-4px);
}

.home-showcase-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-showcase-chrome > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.home-showcase-chrome > span:nth-child(1) { background: #fb7185; }
.home-showcase-chrome > span:nth-child(2) { background: #fde047; }
.home-showcase-chrome > span:nth-child(3) { background: #34d399; }

.home-showcase-tabs {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.home-showcase-tabs span {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.home-showcase-tabs span.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.home-showcase-body {
    display: grid;
    grid-template-columns: 48px 1.1fr 0.9fr;
    min-height: 220px;
    background: #1a1625;
}

.home-showcase-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.home-showcase-sidebar span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.home-showcase-sidebar span.is-active {
    background: rgba(124, 58, 237, 0.35);
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.5);
}

.home-showcase-editor {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.home-showcase-line {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.35);
}

.home-showcase-line--a { width: 78%; }
.home-showcase-line--b { width: 52%; opacity: 0.7; }
.home-showcase-line--c { width: 88%; opacity: 0.85; }
.home-showcase-line--d { width: 40%; opacity: 0.5; }

.home-showcase-live {
    position: relative;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.08));
}

.home-showcase-live-badge {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-showcase-card {
    height: 56px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-showcase-card--sm {
    height: 32px;
    width: 72%;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 16px;
}

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 12px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.home-stat-num {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.home-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
}

.home-steps {
    padding-top: 24px;
}

.home-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-step {
    padding: 28px 24px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--purple-soft);
    color: var(--purple-deep);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
}

.home-step-title {
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.home-step-desc {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-muted);
}

.home-step-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--purple);
}

.home-step-link:hover {
    text-decoration: underline;
}

.home-bento {
    padding-top: 16px;
    padding-bottom: 48px;
}

.home-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.home-bento-card {
    padding: 24px 22px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.home-bento-card--wide {
    grid-column: span 2;
}

.home-bento-card--accent {
    background: linear-gradient(145deg, #6f43f0, #5b21b6);
    border-color: transparent;
    color: #fff;
}

.home-bento-card--accent p {
    color: rgba(255, 255, 255, 0.88);
}

.home-bento-icon {
    font-size: 26px;
    line-height: 1;
}

.home-bento-card h3 {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
}

.home-bento-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-muted);
    flex: 1;
}

.home-bento-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--purple-soft);
    color: var(--purple-deep);
    font-size: 12px;
    font-weight: 700;
}

.home-bento-cta--light {
    background: #fff;
    color: #5b21b6;
}

.home-quick {
    padding-top: 8px;
    padding-bottom: 24px;
    margin-top: 8px;
}

.home-faq {
    padding-top: 8px;
    padding-bottom: 32px;
}

.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

.home-faq-item {
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}

.home-faq-item summary {
    padding: 16px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

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

.home-faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 400;
    color: var(--ink-faint);
}

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

.home-faq-item p {
    margin: 0;
    padding: 0 20px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-muted);
}

.home-faq-item p a {
    color: var(--purple);
    font-weight: 600;
}

.home-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.home-btn--on-dark {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.home-btn--on-dark:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (max-width: 900px) {
    .home-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-step-list {
        grid-template-columns: 1fr;
    }

    .home-bento-grid {
        grid-template-columns: 1fr;
    }

    .home-bento-card--wide,
    .home-bento-card--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .home-instant-action {
        flex-direction: column;
    }

    .home-showcase-body {
        grid-template-columns: 40px 1fr;
    }

    .home-showcase-live {
        display: none;
    }
}

/* ── Section heads ── */

.home-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 28px;
}

.home-h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.home .home-h2 .grad {
    background: linear-gradient(120deg, var(--purple), var(--pink) 60%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-section-sub {
    margin: 12px auto 0;
    max-width: 520px;
    color: var(--ink-muted);
    font-size: 15px;
    line-height: 1.6;
}

.home-start { padding-top: 56px; }

/* ── Hero lightning FX ── */

.home-lightning {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-bolt {
    position: absolute;
    fill: rgba(255, 255, 255, 0.14);
    filter: drop-shadow(0 0 18px rgba(255, 255, 220, 0.45));
    animation: home-bolt-drift 9s ease-in-out infinite;
}

.home-bolt--1 {
    width: 120px;
    height: 120px;
    top: 8%;
    left: 6%;
    transform: rotate(-18deg);
    animation-duration: 8s;
}

.home-bolt--2 {
    width: 180px;
    height: 180px;
    top: -4%;
    right: 8%;
    transform: rotate(12deg);
    opacity: 0.22;
    animation-duration: 11s;
    animation-delay: -2s;
}

.home-bolt--3 {
    width: 90px;
    height: 90px;
    bottom: 18%;
    left: 18%;
    transform: rotate(-8deg);
    animation-duration: 7s;
    animation-delay: -4s;
}

.home-bolt--4 {
    width: 140px;
    height: 140px;
    bottom: 10%;
    right: 14%;
    transform: rotate(22deg);
    animation-duration: 10s;
    animation-delay: -1s;
}

.home-bolt--5 {
    width: 220px;
    height: 220px;
    top: 28%;
    left: 42%;
    transform: rotate(-6deg);
    opacity: 0.1;
    animation-duration: 13s;
    animation-delay: -5s;
}

@keyframes home-bolt-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--bolt-rot, -12deg)) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translate(12px, -18px) rotate(calc(var(--bolt-rot, -12deg) + 6deg)) scale(1.06);
        opacity: 0.28;
    }
    50% {
        transform: translate(-8px, 10px) rotate(calc(var(--bolt-rot, -12deg) - 4deg)) scale(0.96);
        opacity: 0.18;
    }
    75% {
        transform: translate(16px, 6px) rotate(calc(var(--bolt-rot, -12deg) + 3deg)) scale(1.03);
        opacity: 0.32;
    }
}

.home-bolt--1 { --bolt-rot: -18deg; }
.home-bolt--2 { --bolt-rot: 12deg; }
.home-bolt--3 { --bolt-rot: -8deg; }
.home-bolt--4 { --bolt-rot: 22deg; }
.home-bolt--5 { --bolt-rot: -6deg; }

/* Hero centre lightning cluster (replaces LDR emblem) */
.home-lightning-cluster {
    position: relative;
    width: 280px;
    height: 200px;
    transform: translateY(-100px);
    opacity: 0.35;
    filter: drop-shadow(0 0 40px rgba(255, 240, 150, 0.5));
}

.home-cluster-bolt {
    position: absolute;
    fill: rgba(255, 255, 255, 0.55);
    animation: home-cluster-float 7s ease-in-out infinite;
}

.home-cluster-bolt--lg {
    width: 140px;
    height: 140px;
    top: 20%;
    left: 28%;
    transform: rotate(-12deg);
    animation-delay: 0s;
}

.home-cluster-bolt--md {
    width: 90px;
    height: 90px;
    top: 8%;
    right: 18%;
    transform: rotate(18deg);
    opacity: 0.7;
    animation-delay: -2s;
}

.home-cluster-bolt--sm {
    width: 64px;
    height: 64px;
    bottom: 12%;
    left: 12%;
    transform: rotate(-22deg);
    opacity: 0.55;
    animation-delay: -4s;
}

@keyframes home-cluster-float {
    0%, 100% { transform: translateY(0) rotate(var(--cluster-rot, -12deg)); }
    50% { transform: translateY(-14px) rotate(calc(var(--cluster-rot, -12deg) + 8deg)); }
}

.home-cluster-bolt--lg { --cluster-rot: -12deg; }
.home-cluster-bolt--md { --cluster-rot: 18deg; }
.home-cluster-bolt--sm { --cluster-rot: -22deg; }

/* ── Stack picker cards (profile-card style) ── */

.stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stack-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

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

.stack-card-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 148px;
    padding: 20px 22px;
    overflow: hidden;
}

.stack-card-hero-art {
    position: absolute;
    right: -6%;
    bottom: -22%;
    width: 58%;
    max-width: 180px;
    height: auto;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out);
}

.stack-card-hero-art--bolt {
    fill: rgba(0, 0, 0, 0.18);
    color: transparent;
}

.stack-card-hero-art--node,
.stack-card-hero-art--flask,
.stack-card-hero-art--static,
.stack-card-hero-art--jupyter {
    right: 2%;
    bottom: -18%;
    width: 42%;
    max-width: 160px;
}

.stack-card-mark svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.stack-card--node .stack-card-hero {
    background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
}

.stack-card--flask .stack-card-hero {
    background: linear-gradient(135deg, #f472b6 0%, #a855f7 100%);
}

.stack-card--static .stack-card-hero {
    background: linear-gradient(135deg, #818cf8 0%, #3b82f6 100%);
}

.stack-card--jupyter .stack-card-hero {
    background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
}

.stack-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 20px;
    background: var(--surface);
}

.stack-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stack-card-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.stack-card-mark--node { background: linear-gradient(135deg, #10b981, #06b6d4); }
.stack-card-mark--flask { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.stack-card-mark--static { background: linear-gradient(135deg, #7c3aed, #3b82f6); }
.stack-card-mark--jupyter { background: linear-gradient(135deg, #f97316, #ca8a04); }

.stack-card-mark svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.stack-card:hover .stack-card-hero-art {
    transform: scale(1.06) translate(-4px, -4px);
}

.stack-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
}

.stack-card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-muted);
}

.stack-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.stack-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.stack-card--node .stack-tag--a { background: #ec4899; color: #fff; }
.stack-card--node .stack-tag--b { background: #fde047; color: #1a1625; }
.stack-card--node .stack-tag--c { background: #3b82f6; color: #fff; }

.stack-card--flask .stack-tag--a { background: #ec4899; color: #fff; }
.stack-card--flask .stack-tag--b { background: #fde047; color: #1a1625; }
.stack-card--flask .stack-tag--c { background: #3b82f6; color: #fff; }

.stack-card--static .stack-tag--a { background: #ec4899; color: #fff; }
.stack-card--static .stack-tag--b { background: #fde047; color: #1a1625; }
.stack-card--static .stack-tag--c { background: #3b82f6; color: #fff; }

.stack-card--jupyter .stack-tag--a { background: #f97316; color: #fff; }
.stack-card--jupyter .stack-tag--b { background: #fde047; color: #1a1625; }
.stack-card--jupyter .stack-tag--c { background: #3b82f6; color: #fff; }

.stack-card-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 16px;
    border-top: none;
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #1a1625;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: gap 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.stack-card-foot svg {
    width: 16px;
    height: 16px;
    stroke: #1a1625;
    transition: transform 0.2s var(--ease-out);
}

.stack-card:hover .stack-card-foot {
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.stack-card:hover .stack-card-foot svg {
    transform: translateX(3px);
}

.stack-signup-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 960px;
    margin: 20px auto 0;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px dashed var(--border-strong);
    background: var(--surface-sunken);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.stack-signup-more:hover {
    color: var(--purple);
    border-color: var(--purple);
    background: var(--purple-soft);
    transform: translateY(-2px);
}

/* ── Capabilities list (LESA-style rows) ── */

.home-capabilities {
    margin-top: -32px;
    padding-bottom: 24px;
    position: relative;
    z-index: 2;
}

.home-cap-panel {
    background: var(--surface);
    border-radius: 32px 32px 24px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.cap-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr);
    gap: 40px;
    align-items: center;
}

.cap-row--flip .cap-visual { order: 2; }
.cap-row--flip .cap-copy { order: 1; }

.cap-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.cap-copy {
    max-width: 520px;
}

.cap-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.cap-desc {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-muted);
}

.cap-hl--green { color: #10b981; }
.cap-hl--blue  { color: #3b82f6; }
.cap-hl--purple { color: var(--purple); }
.cap-hl--pink  { color: var(--pink); }

/* Mock UI illustrations */
.cap-mock {
    width: 100%;
    max-width: 340px;
    border-radius: 18px;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cap-mock--editor {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 200px;
}

.cap-mock-bar {
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

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

.cap-mock-bar span:first-child { background: #fb7185; }
.cap-mock-bar span:nth-child(2) { background: #fde047; }
.cap-mock-bar span:nth-child(3) { background: #34d399; }

.cap-mock-code {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid var(--border);
}

.cap-line {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--purple-soft), transparent);
}

.cap-line--p { width: 72%; background: linear-gradient(90deg, rgba(124,58,237,0.35), transparent); }
.cap-line--s { width: 48%; }
.cap-line--m { width: 86%; }
.cap-line--xs { width: 36%; height: 6px; }
.cap-line--short { width: 55%; }

.cap-mock-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #ede9fe, #faf5ff);
}

.cap-preview-bolt {
    font-size: 48px;
    filter: drop-shadow(0 8px 20px rgba(124, 58, 237, 0.35));
}

.cap-mock--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 200px;
}

.cap-split-code {
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid var(--border);
    background: #1e1f22;
}

.cap-split-code .cap-line {
    background: rgba(88, 101, 242, 0.45);
}

.cap-split-live {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.cap-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.cap-live-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.cap-live-block {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    background: var(--purple-soft);
}

.cap-live-block--sm { width: 70%; height: 20px; }

.cap-mock--builder {
    display: grid;
    grid-template-columns: 36px 90px 1fr;
    min-height: 200px;
}

.cap-builder-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    background: var(--surface);
    border-right: 1px solid var(--border);
}

.cap-builder-rail span {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--surface-sunken);
}

.cap-builder-rail span.is-active {
    background: var(--purple-soft);
    box-shadow: inset 0 0 0 1px var(--purple);
}

.cap-builder-panel {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.cap-pill {
    height: 18px;
    border-radius: 999px;
    background: rgba(237, 66, 69, 0.2);
    border: 1px solid rgba(237, 66, 69, 0.35);
}

.cap-builder-canvas {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
}

.cap-canvas-bolt {
    position: absolute;
    font-size: 40px;
    opacity: 0.25;
    top: 16px;
    right: 16px;
}

.cap-canvas-box {
    width: 62%;
    height: 48px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.cap-mock--deploy {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 180px;
    background: linear-gradient(160deg, #faf5ff, #ede9fe);
}

.cap-deploy-url {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-muted);
}

.cap-deploy-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.cap-deploy-bolt {
    width: 28px;
    height: 28px;
    fill: #fbbf24;
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.45));
}

/* ── Feature grid ── */

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.home-feature {
    padding: 26px 24px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.hf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--purple-soft);
    font-size: 22px;
    margin-bottom: 14px;
}

.home-feature h3 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.home-feature p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-muted);
}

/* ── Final CTA banner ── */

.home-final-cta {
    position: relative;
    overflow: hidden;
    margin-top: 44px;
    padding: 48px 32px;
    border-radius: 24px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 160% at 50% 0%, #8b6dff, #6f43f0 45%, #5b21b6 100%);
    box-shadow: var(--shadow-lg);
}

.home-final-kicker {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.home-final-title {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.15;
}

.home-final-desc {
    margin: 10px 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
}

.home-btn--dark {
    background: #fff;
    color: #5b21b6;
    box-shadow: 0 14px 34px rgba(15, 5, 45, 0.32);
}

.home-btn--dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(15, 5, 45, 0.42);
}

.cap-desc a {
    color: var(--purple);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ════════════════════════════════════════════════════════════
   LDR "Love · Death + Robots" emblem (ported for the hero bg)
   ════════════════════════════════════════════════════════════ */

.ldr-emblem {
    position: relative;
    display: grid;
    place-items: center;
    padding: 10px;
    filter: drop-shadow(0 0 24px rgba(124, 58, 237, 0.45));
    animation: ldr-emblem-flick 5s steps(1, end) infinite;
}

@keyframes ldr-emblem-flick {
    0%, 90%, 94%, 100% { opacity: 1; }
    91% { opacity: 0.35; }
    92% { opacity: 1; }
    93% { opacity: 0.6; }
}

.ldr-emblem-glow {
    position: absolute;
    inset: -12px;
    z-index: 0;
    border-radius: 24px;
    background: radial-gradient(60% 70% at 50% 50%, rgba(124, 58, 237, 0.28), transparent 70%);
    animation: ldr-aura 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ldr-aura {
    0%, 100% { opacity: 0.5; transform: scale(0.96); }
    50%      { opacity: 0.9; transform: scale(1.04); }
}

.ldr-glyphs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    animation: ldr-shift 3.7s steps(1, end) infinite;
}

@keyframes ldr-shift {
    0%, 70%, 100% { transform: translateX(0); }
    71% { transform: translateX(-3px); }
    72% { transform: translateX(2px); }
    73% { transform: translateX(0); }
}

.ldr-glyph {
    position: relative;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25)),
        #0c0a16;
    border: 1px solid rgba(124, 58, 237, 0.45);
    box-shadow:
        inset 0 0 18px rgba(124, 58, 237, 0.28),
        inset 0 0 2px rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.ldr-glyph::before {
    content: "◆";
    position: relative;
    z-index: 1;
    font-family: var(--font-display), system-ui, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow:
        2px 0 rgba(236, 72, 153, 0.9),
        -2px 0 rgba(0, 168, 252, 0.9);
}

.ldr-glyph::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.32) 2px 3px);
    opacity: 0.45;
    animation: ldr-scanroll 0.8s linear infinite;
}

@keyframes ldr-scanroll {
    to { transform: translateY(3px); }
}

.g-build::before {
    animation:
        ldr-decode-build 2.6s steps(1, end) infinite,
        ldr-jitter 0.42s steps(2, end) infinite;
}

.g-boost::before {
    animation:
        ldr-decode-boost 2.6s steps(1, end) infinite 0.2s,
        ldr-jitter 0.5s steps(2, end) infinite;
}

.g-ship::before {
    animation:
        ldr-decode-ship 2.6s steps(1, end) infinite 0.4s,
        ldr-jitter 0.38s steps(2, end) infinite;
}

@keyframes ldr-decode-build {
    0%  { content: "◇"; }
    8%  { content: "⌁"; }
    16% { content: "⬡"; }
    24% { content: "✶"; }
    32% { content: "⟁"; }
    40% { content: "⚙"; }
    48%, 100% { content: "⚡"; }
}

@keyframes ldr-decode-boost {
    0%  { content: "△"; }
    8%  { content: "▚"; }
    16% { content: "✕"; }
    24% { content: "❖"; }
    32% { content: "⬢"; }
    40% { content: "✦"; }
    48%, 100% { content: "◆"; }
}

@keyframes ldr-decode-ship {
    0%  { content: "□"; }
    8%  { content: "≋"; }
    16% { content: "⌖"; }
    24% { content: "⬟"; }
    32% { content: "⊙"; }
    40% { content: "➤"; }
    48%, 100% { content: "◎"; }
}

@keyframes ldr-jitter {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(0.6px, -0.6px); }
    100% { transform: translate(-0.6px, 0.6px); }
}

.ldr-emblem-sweep {
    position: absolute;
    z-index: 3;
    left: 6px;
    right: 6px;
    top: 6px;
    height: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 168, 252, 0.5), rgba(124, 58, 237, 0.4), transparent);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: ldr-sweep-y 2.6s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes ldr-sweep-y {
    0%   { transform: translateY(-14px); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(74px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .home-spark,
    .home-bolt,
    .home-cluster-bolt {
        animation: none !important;
    }
}

@media (max-width: 680px) {
    .home-hero { padding: 64px 18px 104px; }
    .home-lightning-cluster { transform: translateY(-60px) scale(0.85); }
    .home-spark { display: none; }
    .home-bolt--5,
    .home-bolt--2 { display: none; }
    .home-cap-panel { padding: 32px 20px; gap: 40px; border-radius: 24px; }
    .cap-row,
    .cap-row--flip {
        grid-template-columns: 1fr;
    }
    .cap-row--flip .cap-visual,
    .cap-row--flip .cap-copy { order: unset; }
    .cap-visual { min-height: 180px; }
}
