:root {
    color-scheme: dark;
    --bg-primary: #070510;
    --bg-secondary: #0d0818;
    --bg-tertiary: #130d23;
    --surface: rgba(22, 15, 38, 0.82);
    --surface-strong: rgba(34, 22, 58, 0.88);
    --surface-soft: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(46, 31, 78, 0.92);
    --purple-primary: #8b5cf6;
    --purple-secondary: #a855f7;
    --purple-hot: #d946ef;
    --cyan: #38d5ff;
    --green: #65f0ad;
    --amber: #ffd166;
    --danger: #ff4d6d;
    --text-primary: #ffffff;
    --text-secondary: #bdb5cf;
    --text-muted: #817790;
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.17);
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.38);
    --shadow-strong: 0 34px 120px rgba(0, 0, 0, 0.52);
    --radius: 8px;
    --container: 1180px;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(168, 85, 247, 0.14), transparent 34rem),
        linear-gradient(120deg, rgba(56, 213, 255, 0.08), transparent 28rem),
        var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--sans);
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    background-position: var(--grid-x, 0px) var(--grid-y, 0px);
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--global-x, 50%) var(--global-y, 0%), rgba(168, 85, 247, 0.16), transparent 24rem),
        radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.18), transparent 32rem),
        linear-gradient(180deg, transparent, rgba(7, 5, 16, 0.72) 48%, #070510);
    opacity: var(--atmosphere-opacity, 1);
    transition: opacity 260ms ease;
}

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

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

button,
summary,
a {
    outline-offset: 4px;
}

:focus-visible {
    outline: 2px solid var(--cyan);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 7vw, 6.15rem);
    line-height: 0.93;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.kinetic-title {
    overflow: visible;
}

.kinetic-word {
    display: inline-block;
    opacity: 0;
    transform: translate3d(var(--word-x, 0), 1.12em, 0) rotate(var(--word-rotate, 0deg)) scale(0.94);
    filter: blur(12px);
    transition:
        opacity 780ms var(--ease-smooth),
        transform 780ms var(--ease-smooth),
        filter 760ms ease;
    transition-delay: var(--word-delay, 0ms);
    will-change: opacity, transform, filter;
}

.kinetic-title.is-visible .kinetic-word {
    opacity: 1;
    transform: translate3d(var(--word-shift-x, 0), var(--word-shift-y, 0), 0) rotate(0deg) scale(1);
    filter: blur(0);
}

h3 {
    margin-bottom: 10px;
    font-size: 1.16rem;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
    line-height: 1.72;
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100;
    transform: translateY(-140%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 10px 14px;
    background: var(--surface-strong);
    color: var(--text-primary);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 112px 0;
}

.site-header {
    position: fixed;
    inset: 16px 0 auto;
    z-index: 60;
    pointer-events: none;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 280ms var(--ease-out), transform 320ms var(--ease-smooth), filter 280ms ease;
    will-change: transform, opacity;
}

.site-header.is-hidden {
    opacity: 0;
    transform: translate3d(0, -86px, 0);
    pointer-events: none;
    filter: blur(5px);
}

.site-header.is-returning .nav-shell {
    border-color: rgba(216, 180, 254, 0.20);
    box-shadow: 0 18px 86px rgba(0, 0, 0, 0.48), 0 0 40px rgba(168, 85, 247, 0.10);
}

.nav-shell {
    width: min(var(--container), calc(100% - 32px));
    min-height: 64px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 0 12px 0 16px;
    background: rgba(10, 7, 18, 0.48);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 240ms ease, transform 240ms var(--ease-out);
}

.site-header.is-scrolled .nav-shell,
.nav-shell.is-open {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(12, 8, 22, 0.88);
    box-shadow: 0 18px 80px rgba(0, 0, 0, 0.44);
}

.brand,
.nav-menu,
.nav-links,
.nav-actions,
.hero-actions,
.platform-strip,
.discord-card-header,
.demo-panel-bar,
.demo-flow-row,
.footer-links {
    display: flex;
    align-items: center;
}

.brand {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(168, 85, 247, 0.58);
    border-radius: var(--radius);
    padding: 6px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 255, 0.92)),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.26);
}

.brand-mark img,
.bot-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-menu {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 22px;
}

.nav-links {
    gap: 22px;
    color: var(--text-secondary);
    font-size: 14px;
}

.nav-links a,
.nav-login,
.footer-links a {
    transition: color 180ms ease;
}

.nav-links a:hover,
.nav-login:hover,
.footer-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    gap: 12px;
}

.nav-login {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.nav-toggle {
    position: relative;
    z-index: 2;
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-toggle span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.nav-toggle span:nth-child(1) {
    top: 13px;
}

.nav-toggle span:nth-child(2) {
    top: 20px;
}

.nav-toggle span:nth-child(3) {
    top: 27px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0 18px;
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 220ms ease, filter 220ms ease;
    will-change: transform;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: translateX(-120%);
    transition: transform 420ms ease, opacity 180ms ease;
}

.button:hover {
    transform: translate3d(0, -2px, 0);
}

.button:active {
    transform: translate3d(0, 0, 0) scale(0.985);
}

.button:hover::before {
    opacity: 1;
    transform: translateX(120%);
}

.button-primary {
    border-color: rgba(217, 70, 239, 0.58);
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-hot));
    color: var(--text-primary);
    box-shadow: 0 20px 54px rgba(168, 85, 247, 0.32);
}

.button-primary:hover {
    border-color: rgba(236, 172, 255, 0.72);
    background: linear-gradient(135deg, #9f6eff, var(--purple-hot) 58%, #ef5ff8);
    box-shadow: 0 24px 66px rgba(168, 85, 247, 0.42);
    filter: saturate(1.08);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary);
}

.button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(168, 85, 247, 0.12);
}

.button-small {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: 138px 0 82px;
    overflow: hidden;
}

.hero-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 68% 20%, rgba(168, 85, 247, 0.33), transparent 34rem),
        radial-gradient(ellipse at 85% 56%, rgba(56, 213, 255, 0.12), transparent 24rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
}

.hero-grid,
.product-grid,
.demo-grid,
.faq-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 64px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #e9d5ff;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--green);
    box-shadow: 0 0 20px rgba(101, 240, 173, 0.9);
}

.hero-lede {
    max-width: 650px;
    margin-bottom: 32px;
    font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
}

.platform-strip {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 12px;
}

.platform-strip span {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.045);
}

.hero-visual {
    position: relative;
    min-width: 0;
    display: grid;
    justify-items: end;
    gap: 0;
    padding: 0 0 30px;
}

.zaph-stage {
    position: relative;
    width: min(100%, 520px);
    min-height: 500px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(168, 85, 247, 0.18), rgba(56, 213, 255, 0.06)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 46%),
        rgba(15, 10, 28, 0.88);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.44);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 220ms ease;
}

.zaph-stage::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: var(--radius);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.zaph-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 46px;
    width: 58%;
    height: 20%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.34), rgba(56, 213, 255, 0.10) 46%, transparent 72%);
    filter: blur(12px);
    transform: translateX(-50%);
}

.zaph-poster {
    position: relative;
    z-index: 2;
    width: min(58%, 318px);
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 30px 58px rgba(0, 0, 0, 0.54));
    transform: translateZ(60px);
    animation: zaphIdle 6.4s ease-in-out infinite;
}

.zaph-ring {
    position: absolute;
    border: 1px solid rgba(168, 85, 247, 0.34);
    border-radius: 50%;
    pointer-events: none;
    transform: rotateX(72deg);
}

.zaph-ring-one {
    width: 76%;
    height: 29%;
    animation: orbitPulse 4.8s ease-in-out infinite;
}

.zaph-ring-two {
    width: 92%;
    height: 38%;
    border-color: rgba(56, 213, 255, 0.22);
    animation: orbitPulse 6.2s ease-in-out infinite reverse;
}

.floating-card,
.discord-card,
.tool-card,
.dashboard-preview,
.demo-card,
.price-card,
.faq-item,
.cta-panel {
    position: relative;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.18), transparent 16rem),
        var(--surface);
    box-shadow: var(--shadow-soft);
}

.motion-card {
    isolation: isolate;
    overflow: hidden;
    transform: perspective(900px) translate3d(0, 0, 0) rotateX(0) rotateY(0);
    transform-style: preserve-3d;
    transition: transform 260ms var(--ease-smooth), border-color 220ms ease, background 220ms ease, box-shadow 260ms ease;
    will-change: transform;
}

.motion-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: var(--spotlight-opacity, 0);
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, 0.24), rgba(56, 213, 255, 0.08) 22%, transparent 46%);
    transition: opacity 220ms ease;
}

.motion-card.is-spotlight-active {
    --spotlight-opacity: 1;
}

.motion-tilt.is-spotlight-active {
    border-color: rgba(216, 180, 254, 0.30);
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.48), 0 22px 74px rgba(168, 85, 247, 0.16);
}

.motion-lite.is-spotlight-active {
    border-color: rgba(216, 180, 254, 0.22);
    box-shadow: 0 26px 88px rgba(0, 0, 0, 0.42);
}

.floating-card {
    position: absolute;
    z-index: 4;
    min-width: 172px;
    padding: 12px 14px;
    backdrop-filter: blur(16px);
    font-family: var(--mono);
    font-size: 11px;
    background: rgba(18, 12, 32, 0.74);
}

.floating-card strong,
.floating-card small,
.floating-card span {
    display: block;
}

.floating-card strong {
    margin-top: 7px;
    color: var(--text-primary);
    font-size: 13px;
}

.floating-card small {
    margin-top: 4px;
    color: var(--text-muted);
}

.live-card {
    top: 26px;
    left: 26px;
    animation: floatSoft 6s ease-in-out infinite;
}

.sync-card {
    right: 24px;
    bottom: 34px;
    animation: floatSoft 7s ease-in-out infinite reverse;
}

.live-pill {
    width: max-content;
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(255, 77, 109, 0.16);
    color: #ffb3c1;
    font-weight: 900;
}

.discord-card {
    width: min(100%, 520px);
    margin-top: -54px;
    margin-right: 34px;
    padding: 16px;
    backdrop-filter: blur(18px);
}

.hero-discord-card {
    z-index: 5;
}

.discord-card-header {
    gap: 12px;
    margin-bottom: 14px;
}

.bot-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(216, 180, 254, 0.34);
    border-radius: 50%;
    padding: 7px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 255, 0.92)),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.22);
}

.discord-card-header strong,
.discord-card-header span {
    display: block;
}

.discord-card-header span {
    margin-top: 3px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 11px;
}

.discord-embed {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 14px;
    background: #22242f;
}

.embed-rule {
    border-radius: 99px;
    background: linear-gradient(180deg, var(--purple-secondary), var(--cyan));
}

.embed-title {
    margin-bottom: 7px;
    color: var(--text-primary);
    font-weight: 900;
}

.embed-text {
    margin-bottom: 11px;
    color: #b8becd;
    font-size: 14px;
}

.discord-embed a,
.pricing-note a,
.embed-panel a {
    color: #d8b4fe;
    font-weight: 800;
}

.proof-bar {
    border-block: 1px solid var(--border-subtle);
    background: rgba(10, 7, 18, 0.78);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.proof-grid div {
    min-width: 0;
    padding: 28px 24px;
    border-inline: 1px solid rgba(255, 255, 255, 0.045);
}

.proof-grid strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: clamp(1.45rem, 3.4vw, 2.4rem);
}

.proof-grid span {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 38px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-copy {
    max-width: 580px;
}

.product-section {
    background: linear-gradient(180deg, transparent, rgba(19, 13, 35, 0.58), transparent);
}

.product-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
}

.dashboard-preview {
    min-width: 0;
    overflow: hidden;
    background: rgba(11, 8, 20, 0.9);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 16px;
}

.window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.window-bar span:nth-child(1) {
    background: var(--danger);
}

.window-bar span:nth-child(2) {
    background: var(--amber);
}

.window-bar span:nth-child(3) {
    background: var(--green);
}

.window-bar strong {
    min-width: 0;
    margin-left: 8px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
    gap: 16px;
    padding: 18px;
}

.automation-list,
.log-panel,
.embed-panel {
    min-width: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.automation-list {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.list-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px;
}

.list-row.live {
    border-color: rgba(101, 240, 173, 0.22);
    background: rgba(101, 240, 173, 0.065);
}

.list-row > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.list-row.live > span {
    background: var(--green);
    box-shadow: 0 0 18px rgba(101, 240, 173, 0.7);
}

.list-row strong,
.list-row small,
.list-row em {
    display: block;
}

.list-row strong,
.list-row small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-row small {
    margin-top: 4px;
    color: var(--text-muted);
}

.list-row em,
.log-panel span,
.feature-kicker,
.plan-name,
.step-index {
    color: #d8b4fe;
    font-family: var(--mono);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.log-panel {
    grid-row: span 2;
    padding: 16px;
    font-family: var(--mono);
    font-size: 12px;
}

.log-panel p {
    margin-bottom: 14px;
    overflow: hidden;
    color: var(--text-secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.embed-panel {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.embed-panel strong {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.steps-grid,
.feature-grid,
.pricing-grid {
    display: grid;
    gap: 16px;
}

.steps-grid {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), rgba(56, 213, 255, 0.45), transparent);
}

.tool-card,
.price-card {
    min-width: 0;
    padding: 24px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover,
.price-card:hover,
.faq-item:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(216, 180, 254, 0.24);
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.24), transparent 16rem),
        var(--surface-hover);
}

@media (hover: hover) and (pointer: fine) {
    .tool-card:hover,
    .price-card:hover,
    .faq-item:hover {
        box-shadow: 0 28px 92px rgba(0, 0, 0, 0.42), 0 18px 58px rgba(168, 85, 247, 0.10);
    }

    .motion-tilt:hover {
        transform: perspective(900px) translate3d(0, -6px, 0) scale(1.006);
    }

    .motion-lite:hover {
        transform: translate3d(0, -4px, 0);
    }

    .floating-card:hover {
        transform: translate3d(0, -5px, 42px);
        border-color: rgba(216, 180, 254, 0.28);
        box-shadow: 0 22px 66px rgba(0, 0, 0, 0.36), 0 14px 36px rgba(168, 85, 247, 0.16);
    }
}

.step-card {
    min-height: 202px;
}

.step-index,
.feature-kicker,
.plan-name {
    display: block;
    margin-bottom: 18px;
}

.demo-grid {
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: minmax(340px, 0.84fr) minmax(460px, 1.16fr);
    align-items: stretch;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 78% 18%, rgba(168, 85, 247, 0.24), transparent 30rem),
        radial-gradient(circle at 44% 72%, rgba(56, 213, 255, 0.10), transparent 24rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(10, 7, 18, 0.66);
    box-shadow: var(--shadow-soft);
}

.demo-grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: 18px;
    bottom: 18px;
    left: 42%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.32), rgba(56, 213, 255, 0.18), transparent);
}

.demo-copy {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: var(--radius);
    padding: clamp(30px, 4vw, 52px);
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 16%, rgba(168, 85, 247, 0.16), transparent 13rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.020);
}

.demo-copy::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -18%;
    bottom: -28%;
    width: 58%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22), rgba(56, 213, 255, 0.08) 44%, transparent 72%);
    filter: blur(10px);
    opacity: 0.78;
}

.demo-copy h2 {
    max-width: 13ch;
    font-size: clamp(2.45rem, 4vw, 4rem);
    line-height: 0.96;
}

.demo-copy .eyebrow,
.demo-copy h2,
.demo-copy p,
.demo-copy .button,
.demo-ambient {
    position: relative;
    z-index: 1;
}

.demo-copy .button {
    width: max-content;
}

.demo-ambient {
    display: grid;
    gap: 10px;
    width: min(100%, 360px);
    margin-top: 12px;
}

.demo-ambient span {
    display: block;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.64), rgba(56, 213, 255, 0.30), transparent);
    opacity: 0.72;
}

.demo-ambient span:nth-child(2) {
    width: 74%;
    opacity: 0.52;
}

.demo-ambient span:nth-child(3) {
    width: 48%;
    opacity: 0.34;
}

.demo-card {
    z-index: 1;
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-self: stretch;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 70%, rgba(168, 85, 247, 0.22), transparent 18rem),
        linear-gradient(145deg, rgba(168, 85, 247, 0.17), rgba(56, 213, 255, 0.065)),
        rgba(11, 8, 20, 0.9);
}

.demo-panel {
    position: relative;
    min-height: 100%;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    border: 0;
    border-radius: inherit;
    padding: clamp(22px, 3vw, 30px);
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 70%, rgba(168, 85, 247, 0.22), transparent 18rem),
        radial-gradient(circle at 8% 20%, rgba(56, 213, 255, 0.10), transparent 14rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 44%),
        rgba(9, 6, 17, 0.78);
}

.demo-panel::after {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -38px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.30), rgba(56, 213, 255, 0.10) 46%, transparent 70%);
    filter: blur(8px);
    opacity: 0.82;
    transition: opacity 260ms ease, transform 260ms var(--ease-smooth);
}

.demo-panel-bar {
    position: relative;
    z-index: 2;
    justify-content: space-between;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 12px;
}

.demo-panel-bar strong {
    color: var(--green);
}

.demo-zaph {
    position: relative;
    z-index: 3;
    right: auto;
    bottom: auto;
    justify-self: end;
    width: min(30%, 166px);
    height: auto;
    margin: -2px 18px 2px 0;
    opacity: 0.84;
    pointer-events: none;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.50));
    animation: zaphIdleSmall 6.8s ease-in-out infinite;
    transition: opacity 240ms ease, filter 260ms ease;
    translate: var(--parallax-x, 0) var(--parallax-y, 0);
}

.demo-flow {
    position: relative;
    z-index: 2;
    align-self: center;
    display: grid;
    gap: 16px;
    width: min(100%, 500px);
    margin: 2px 0 18px;
    padding-left: 2px;
}

.demo-flow::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 28px;
    bottom: 28px;
    left: 25px;
    width: 2px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(101, 240, 173, 0.86), rgba(168, 85, 247, 0.72) 52%, rgba(56, 213, 255, 0.28));
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.24);
    transform-origin: top;
    transition: box-shadow 240ms ease, filter 240ms ease, opacity 240ms ease, transform 520ms var(--ease-smooth);
}

.demo-flow-row {
    position: relative;
    z-index: 1;
    min-width: 0;
    gap: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 17px 18px 17px 14px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.032)),
        rgba(255, 255, 255, 0.044);
    backdrop-filter: blur(14px);
    animation: flowPulse 7s ease-in-out infinite;
    transition: transform 190ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 220ms ease;
}

.demo-flow-row:nth-child(2) {
    animation-delay: 1.4s;
    border-color: rgba(168, 85, 247, 0.22);
    background:
        linear-gradient(90deg, rgba(168, 85, 247, 0.080), rgba(255, 255, 255, 0.028)),
        rgba(255, 255, 255, 0.034);
}

.demo-flow-row:nth-child(3) {
    animation-delay: 2.8s;
    border-color: rgba(56, 213, 255, 0.18);
    background:
        linear-gradient(90deg, rgba(56, 213, 255, 0.050), rgba(255, 255, 255, 0.026)),
        rgba(255, 255, 255, 0.030);
}

.demo-flow-row.active {
    border-color: rgba(101, 240, 173, 0.28);
    background:
        linear-gradient(90deg, rgba(101, 240, 173, 0.11), rgba(255, 255, 255, 0.036)),
        rgba(101, 240, 173, 0.065);
    box-shadow: 0 18px 50px rgba(101, 240, 173, 0.08);
}

.demo-flow-row > span {
    position: relative;
    z-index: 2;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-radius: 50%;
    border: 2px solid rgba(9, 6, 17, 0.94);
    background: #8f7bb0;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.10), 0 0 16px rgba(168, 85, 247, 0.24);
}

.demo-flow-row > span::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    opacity: 0;
    border: 1px solid currentColor;
    animation: timelinePulse 3.4s ease-out infinite;
}

.demo-flow-row.active > span {
    background: var(--green);
    color: var(--green);
    box-shadow: 0 0 0 4px rgba(101, 240, 173, 0.14), 0 0 22px rgba(101, 240, 173, 0.78);
}

.demo-flow-row:nth-child(3) > span {
    background: rgba(56, 213, 255, 0.78);
    color: rgba(56, 213, 255, 0.88);
    box-shadow: 0 0 0 4px rgba(56, 213, 255, 0.09), 0 0 16px rgba(56, 213, 255, 0.22);
}

.demo-flow-row strong,
.demo-flow-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-flow-row small {
    margin-top: 4px;
    color: var(--text-muted);
}

.demo-panel .button {
    position: relative;
    z-index: 3;
    width: min(100%, 500px);
    justify-self: stretch;
    align-self: end;
}

.demo-card.timeline-ready .demo-zaph {
    opacity: 0.36;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.50));
}

.demo-card.timeline-ready .demo-flow::before {
    opacity: 0.28;
    transform: scaleY(0.04);
}

.demo-card.timeline-ready .demo-flow-row {
    opacity: 0;
    transform: translate3d(26px, 10px, 0) scale(0.965);
    animation: none;
}

.demo-card.timeline-ready .demo-panel .button {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.985);
}

.demo-card.timeline-in .demo-zaph {
    opacity: 0.84;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.50));
    transition: opacity 620ms var(--ease-smooth), filter 620ms ease;
}

.demo-card.timeline-in .demo-flow::before {
    animation: drawTimeline 980ms var(--ease-smooth) 180ms forwards;
}

.demo-card.timeline-in .demo-flow-row {
    animation: timelineStepIn 680ms var(--ease-smooth) forwards, flowPulse 7s ease-in-out infinite;
}

.demo-card.timeline-in .demo-flow-row:nth-child(1) {
    animation-delay: 320ms, 1800ms;
}

.demo-card.timeline-in .demo-flow-row:nth-child(2) {
    animation-delay: 520ms, 2600ms;
}

.demo-card.timeline-in .demo-flow-row:nth-child(3) {
    animation-delay: 720ms, 3400ms;
}

.demo-card.timeline-in .demo-panel .button {
    animation: ctaPop 520ms var(--ease-out) 980ms forwards;
}

@media (min-width: 1101px) {
    .demo-panel {
        grid-template-rows: auto auto auto auto;
        align-content: start;
        gap: 18px;
        padding: clamp(28px, 3vw, 36px);
    }

    .demo-panel::after {
        right: -72px;
        bottom: -64px;
        width: 360px;
        height: 360px;
        opacity: 0.74;
    }

    .demo-zaph {
        width: clamp(158px, 13vw, 196px);
        margin: 4px clamp(42px, 7vw, 86px) -8px 0;
    }

    .demo-flow {
        align-self: start;
        width: min(100%, 520px);
        margin: 6px auto 0;
        gap: 14px;
    }

    .demo-flow-row {
        padding: 16px 18px 16px 14px;
    }

    .demo-panel .button {
        width: min(100%, 520px);
        justify-self: center;
        align-self: start;
        margin-top: 8px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .demo-card:hover .demo-panel::after {
        opacity: 0.96;
        transform: translate3d(-8px, -6px, 0) scale(1.04);
    }

    .demo-card:hover .demo-zaph {
        opacity: 0.96;
        filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.54)) drop-shadow(0 0 24px rgba(168, 85, 247, 0.18));
    }

    .demo-card:hover .demo-flow::before {
        filter: saturate(1.18);
        box-shadow: 0 0 28px rgba(168, 85, 247, 0.34), 0 0 18px rgba(101, 240, 173, 0.16);
    }

    .demo-flow-row:hover {
        animation-play-state: paused;
        transform: translate3d(5px, -1px, 0);
        border-color: rgba(216, 180, 254, 0.30);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.20);
    }

    .demo-flow-row:hover > span::after {
        opacity: 0.34;
    }
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 332px;
}

.feature-with-zaph {
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: clamp(24px, 28%, 220px);
    background:
        radial-gradient(circle at 82% 72%, rgba(168, 85, 247, 0.28), transparent 15rem),
        radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.18), transparent 16rem),
        var(--surface);
}

.feature-with-zaph:hover {
    background:
        radial-gradient(circle at 82% 72%, rgba(168, 85, 247, 0.34), transparent 15rem),
        radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.24), transparent 16rem),
        var(--surface-hover);
}

.feature-with-zaph::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -50px;
    bottom: -58px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.30), rgba(56, 213, 255, 0.12) 48%, transparent 72%);
    filter: blur(10px);
}

.feature-with-zaph > :not(.feature-zaph) {
    position: relative;
    z-index: 2;
    max-width: 370px;
}

.feature-zaph {
    position: absolute;
    z-index: 1;
    right: clamp(-18px, -1vw, 8px);
    bottom: -30px;
    width: min(42%, 230px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.50));
    translate: var(--parallax-x, 0) var(--parallax-y, 0);
    transition: filter 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .feature-with-zaph:hover .feature-zaph {
        filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.54)) drop-shadow(0 0 22px rgba(168, 85, 247, 0.14));
    }
}

.feature-wide {
    grid-column: span 2;
}

.pricing-section {
    background: linear-gradient(180deg, transparent, rgba(13, 8, 24, 0.82), transparent);
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.price-card {
    display: flex;
    min-height: 462px;
    flex-direction: column;
}

.price-card.featured {
    border-color: rgba(217, 70, 239, 0.54);
    background:
        radial-gradient(circle at 50% 0%, rgba(217, 70, 239, 0.23), transparent 18rem),
        linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(255, 255, 255, 0.045)),
        var(--surface-strong);
    box-shadow: 0 30px 110px rgba(168, 85, 247, 0.22);
}

.plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 1px solid rgba(255, 209, 102, 0.38);
    border-radius: var(--radius);
    padding: 6px 8px;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.price-card h3 small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-card ul {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.price-card li {
    color: var(--text-secondary);
}

.price-card li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(101, 240, 173, 0.5);
}

.price-card li.muted-feature {
    color: var(--text-muted);
}

.price-card li.muted-feature::before {
    background: var(--text-muted);
    box-shadow: none;
}

.price-card .button {
    margin-top: auto;
}

.pricing-note {
    margin: 24px 0 0;
    text-align: center;
}

.faq-grid {
    align-items: start;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.02fr);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.faq-item summary {
    position: relative;
    cursor: pointer;
    padding: 20px 56px 20px 20px;
    color: var(--text-primary);
    font-weight: 850;
    list-style: none;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: #e9d5ff;
    transform: translateY(-50%);
    transition: transform 180ms ease, background 180ms ease;
}

.faq-item[open] summary::after {
    background: rgba(168, 85, 247, 0.18);
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 0 20px 20px;
}

.final-cta {
    padding-top: 40px;
}

.cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 5vw, 54px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(56, 213, 255, 0.08)),
        rgba(18, 11, 32, 0.94);
}

.cta-panel h2 {
    max-width: 780px;
}

.cta-panel > div,
.cta-panel .button {
    position: relative;
    z-index: 2;
}

.cta-panel p:last-child {
    margin-bottom: 0;
}

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 36px 0;
    background: rgba(8, 5, 15, 0.96);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    flex-wrap: wrap;
    gap: 18px;
    color: var(--text-secondary);
    font-size: 14px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
    transition: opacity 620ms var(--ease-smooth), transform 620ms var(--ease-smooth), filter 620ms ease;
    will-change: opacity, transform, filter;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

[data-reveal].reveal-from-left {
    transform: translateX(-18px);
}

[data-reveal].reveal-from-right {
    transform: translateX(18px);
}

[data-reveal].reveal-scale {
    transform: translateY(16px) scale(0.985);
}

[data-reveal].reveal-soft {
    transform: translateY(14px);
    filter: blur(4px);
}

[data-reveal].is-visible.reveal-from-left,
[data-reveal].is-visible.reveal-from-right,
[data-reveal].is-visible.reveal-scale,
[data-reveal].is-visible.reveal-soft {
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

@keyframes zaphIdle {
    0%,
    100% {
        transform: translate3d(0, -6px, 60px) rotate(-1deg);
    }

    50% {
        transform: translate3d(0, 10px, 60px) rotate(1deg);
    }
}

@keyframes zaphIdleSmall {
    0%,
    100% {
        transform: translate3d(0, -5px, 0) rotate(-1deg);
    }

    50% {
        transform: translate3d(0, 8px, 0) rotate(1deg);
    }
}

@keyframes orbitPulse {
    0%,
    100% {
        opacity: 0.36;
        transform: rotateX(72deg) scale(0.96);
    }

    50% {
        opacity: 0.78;
        transform: rotateX(72deg) scale(1.04);
    }
}

@keyframes floatSoft {
    0%,
    100% {
        transform: translate3d(0, 0, 42px);
    }

    50% {
        transform: translate3d(0, -12px, 42px);
    }
}

@keyframes flowPulse {
    0%,
    100% {
        border-color: var(--border-subtle);
        transform: translateX(0);
    }

    12% {
        border-color: rgba(168, 85, 247, 0.42);
        transform: translateX(4px);
    }

    24% {
        border-color: var(--border-subtle);
        transform: translateX(0);
    }
}

@keyframes timelinePulse {
    0% {
        opacity: 0.34;
        transform: scale(0.72);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@keyframes drawTimeline {
    0% {
        opacity: 0.28;
        transform: scaleY(0.04);
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes timelineStepIn {
    0% {
        opacity: 0;
        transform: translate3d(26px, 10px, 0) scale(0.965);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes ctaPop {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0) scale(0.985);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 1100px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .demo-grid::before {
        display: none;
    }

    .demo-copy h2 {
        max-width: 15ch;
    }

    .demo-card {
        min-height: 0;
        justify-self: stretch;
    }

    .demo-panel {
        min-height: 390px;
    }

    .demo-flow {
        width: min(100%, 620px);
    }

    .demo-panel .button {
        width: min(100%, 620px);
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid::before {
        display: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .hero-grid,
    .product-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 124px;
    }

    .hero-copy,
    .section-copy {
        max-width: 760px;
    }

    .hero-visual,
    .demo-card {
        justify-self: center;
    }

    .hero-visual {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .zaph-stage,
    .discord-card {
        margin-inline: auto;
    }

    .discord-card {
        margin-top: -42px;
        margin-right: auto;
    }

    .proof-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid .featured {
        grid-column: span 2;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .log-panel {
        grid-row: auto;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .demo-copy {
        min-height: auto;
    }

    .demo-copy .button {
        width: max-content;
    }

    .demo-panel {
        min-height: 460px;
    }

    .feature-with-zaph {
        min-height: 300px;
        padding-right: clamp(24px, 24vw, 180px);
    }

    .feature-zaph {
        width: min(34%, 178px);
        right: -4px;
        bottom: -22px;
    }
}

@media (max-width: 760px) {
    .site-header {
        top: 10px;
    }

    .nav-shell {
        width: calc(100% - 20px);
        min-height: 58px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: grid;
        gap: 18px;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius);
        padding: 16px;
        background: rgba(12, 8, 22, 0.96);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .nav-menu.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links,
    .nav-actions {
        display: grid;
        gap: 12px;
    }

    .nav-links a,
    .nav-login,
    .nav-actions .button {
        width: 100%;
    }

    .shell {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 82px 0;
    }

    .hero {
        min-height: auto;
        padding-bottom: 64px;
    }

    .hero-actions .button,
    .cta-panel .button {
        width: 100%;
    }

    .zaph-stage {
        min-height: 420px;
    }

    .zaph-poster {
        width: min(62%, 286px);
    }

    .live-card {
        left: 10px;
        top: 16px;
    }

    .sync-card {
        right: 10px;
        bottom: 18px;
    }

    .floating-card {
        min-width: 146px;
    }

    .proof-grid,
    .steps-grid,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid .featured,
    .feature-large,
    .feature-wide {
        grid-column: auto;
    }

    .demo-card {
        min-height: auto;
    }

    .demo-panel {
        min-height: 0;
        grid-template-rows: auto auto 1fr auto;
        gap: 14px;
        padding: 20px;
    }

    .demo-zaph {
        position: relative;
        z-index: 3;
        right: auto;
        bottom: auto;
        justify-self: end;
        width: min(34vw, 132px);
        margin: -4px 6px -36px 0;
        opacity: 0.82;
        transform: translateX(0);
    }

    .demo-flow {
        width: 100%;
        margin: 18px 0 10px;
    }

    .feature-with-zaph {
        min-height: 280px;
        padding-right: 24px;
        padding-bottom: 132px;
    }

    .feature-with-zaph > :not(.feature-zaph) {
        max-width: none;
    }

    .feature-zaph {
        right: 10px;
        bottom: -36px;
        width: min(48%, 170px);
        opacity: 0.86;
    }

    .cta-panel {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: clamp(2.7rem, 14vw, 3.35rem);
    }

    h2 {
        font-size: clamp(1.9rem, 10vw, 2.45rem);
    }

    .brand span:last-child {
        display: none;
    }

    .zaph-stage {
        min-height: 384px;
    }

    .zaph-poster {
        width: min(66%, 248px);
    }

    .floating-card {
        max-width: 148px;
        padding: 10px;
    }

    .discord-card {
        margin-top: -30px;
    }

    .discord-card,
    .tool-card,
    .price-card,
    .demo-card {
        padding: 16px;
    }

    .demo-panel {
        padding: 18px;
    }

    .demo-zaph {
        width: min(31vw, 112px);
        margin: -2px 2px -28px 0;
    }

    .demo-flow-row {
        padding-right: 14px;
    }

    .proof-grid div {
        padding: 22px 16px;
    }
}

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

    [data-reveal] {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .kinetic-word,
    .kinetic-title.is-visible .kinetic-word {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .site-header.is-hidden {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .motion-card,
    .motion-card:hover,
    .motion-tilt:hover,
    .motion-lite:hover,
    .demo-flow-row:hover {
        transform: none !important;
    }

    .motion-card::before,
    .demo-flow-row > span::after {
        opacity: 0 !important;
    }

    .demo-card.timeline-ready .demo-zaph,
    .demo-card.timeline-ready .demo-flow-row,
    .demo-card.timeline-ready .demo-panel .button {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .demo-card.timeline-ready .demo-flow::before {
        opacity: 1;
        transform: none;
    }

    .demo-zaph,
    .feature-zaph {
        translate: none !important;
    }
}
