:root {
    --bg: #050508;
    --surface: rgba(14, 14, 22, 0.85);
    --text: #f2f2f7;
    --muted: #8b8b9e;
    --line: rgba(255, 255, 255, 0.07);
    --accent: #6d8fff;
    --accent-2: #34d399;
    --accent-3: #c084fc;
    --glow: rgba(109, 143, 255, 0.4);
    --radius: 16px;
    --max: 1200px;
    --danger: #f87171;
    --header-height: 72px;
    --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Sora", var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(ellipse 100% 60% at 50% -10%, rgba(109, 143, 255, 0.12), transparent 55%),
        var(--bg);
    line-height: 1.6;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-mesh {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(ellipse 45% 35% at 25% 25%, rgba(109, 143, 255, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 30% at 75% 15%, rgba(192, 132, 252, 0.16), transparent 65%),
        radial-gradient(ellipse 35% 40% at 85% 65%, rgba(52, 211, 153, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 35% at 10% 75%, rgba(109, 143, 255, 0.1), transparent 65%);
    animation: mesh-drift 28s ease-in-out infinite alternate;
}

.ambient-aurora {
    position: absolute;
    inset: -15% -20%;
    background: conic-gradient(
        from 200deg at 50% 40%,
        transparent 0deg,
        rgba(109, 143, 255, 0.07) 60deg,
        rgba(192, 132, 252, 0.1) 120deg,
        rgba(52, 211, 153, 0.06) 200deg,
        rgba(109, 143, 255, 0.05) 280deg,
        transparent 360deg
    );
    filter: blur(70px);
    opacity: 0.85;
    animation: aurora-shift 22s ease-in-out infinite alternate;
}

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

.ambient-orb.a {
    width: 55vmax;
    height: 55vmax;
    max-width: 700px;
    max-height: 700px;
    top: -20%;
    left: 10%;
    background: rgba(109, 143, 255, 0.2);
}

.ambient-orb.b {
    width: 45vmax;
    height: 45vmax;
    max-width: 580px;
    max-height: 580px;
    top: 35%;
    right: -15%;
    background: rgba(52, 211, 153, 0.12);
    animation-delay: -8s;
    animation-duration: 24s;
}

.ambient-orb.c {
    width: 40vmax;
    height: 40vmax;
    max-width: 520px;
    max-height: 520px;
    bottom: -10%;
    left: 25%;
    background: rgba(192, 132, 252, 0.1);
    animation-delay: -14s;
    animation-duration: 26s;
}

.ambient-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 65% at 50% 38%, transparent 25%, rgba(5, 5, 8, 0.55) 100%);
}

@keyframes mesh-drift {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(3%, -2%) rotate(3deg) scale(1.05); }
}

@keyframes aurora-shift {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.75; }
    100% { transform: translate(-4%, 3%) rotate(8deg); opacity: 0.95; }
}

@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0.85rem 1rem 0;
    pointer-events: none;
    background: transparent;
    border: none;
}

.site-header-bar {
    position: relative;
    pointer-events: auto;
    width: fit-content;
    max-width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.55rem 1.15rem 0.55rem 1.35rem;
    border-radius: 999px;
    background: rgba(10, 10, 18, 0.72);
    backdrop-filter: blur(22px) saturate(1.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 0 0 1px rgba(109, 143, 255, 0.07),
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.site-header-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        120deg,
        rgba(109, 143, 255, 0.45),
        rgba(192, 132, 252, 0.2) 35%,
        rgba(52, 211, 153, 0.15) 65%,
        rgba(109, 143, 255, 0.25)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
}

.site-header-shine {
    position: absolute;
    top: 0;
    left: 10%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

.site-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem;
    width: auto;
    padding: 0 0.25rem;
    min-width: 0;
}

.nav-pills {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-pill {
    position: relative;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-pill:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-pill.is-active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(109, 143, 255, 0.22), rgba(109, 143, 255, 0.1));
    box-shadow:
        0 0 24px rgba(109, 143, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header .header-cta.button {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 0.62rem 1.25rem;
}

.header-cta-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 65%
    );
    transform: translateX(-120%);
    animation: header-cta-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes header-cta-shimmer {
    0%, 70% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.nav a:hover,
.nav a.active { color: var(--text); }

.nav-dropdown {
    position: relative;
    z-index: 200;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
    color: var(--text);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 230px;
    padding: 0.85rem 0.4rem 0.4rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 210;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-link {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    background: rgba(109, 143, 255, 0.1);
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
    background: linear-gradient(135deg, #5b7cfa, #4f6ef7);
    color: #fff;
    box-shadow: 0 0 30px var(--glow), 0 6px 20px rgba(0,0,0,0.5);
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-ghost {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    color: var(--text);
}

.page {
    position: relative;
    z-index: 1;
    padding: 7.5rem 0 4rem;
    min-height: 80vh;
}

.hero-landing {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
}

body:has(.has-hero-video) .ambient {
    display: none;
}

html:has(.home-hero),
html:has(.home-hero) body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:has(.home-hero)::-webkit-scrollbar,
html:has(.home-hero) body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.has-hero-video {
    position: relative;
    z-index: 1;
}

.home-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 0.75rem) 0 1.75rem;
    isolation: isolate;
    z-index: 1;
}

.home-hero-spotlight {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: 0;
    width: min(90vw, 720px);
    height: min(60vh, 520px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(109, 143, 255, 0.14), transparent 70%),
        radial-gradient(ellipse 50% 40% at 60% 55%, rgba(147, 51, 234, 0.08), transparent 65%);
    filter: blur(20px);
    animation: heroSpotlightPulse 10s ease-in-out infinite;
}

@keyframes heroSpotlightPulse {
    0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.home-hero.is-entered .home-hero-intro {
    animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.home-hero.is-entered .home-hero-cta {
    animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

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

@keyframes heroFadeUpRight {
    from {
        opacity: 0;
        transform: perspective(900px) rotateY(-10deg) rotateX(6deg) translateY(24px);
    }
    to {
        opacity: 1;
        transform: perspective(900px) rotateY(-5deg) rotateX(2deg) translateY(0);
    }
}

.page-hero-bg {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
}

.page-hero-bg .page-content {
    position: relative;
    z-index: 1;
    padding: 7.5rem 0 4rem;
    min-height: 80vh;
}

.page-hero-bg .page-head {
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.75);
}

.page-hero-bg .page-head p {
    color: rgba(232, 234, 242, 0.88);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #050508;
    pointer-events: none;
}

.hero-video,
.hero-video-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-video {
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease;
    transform: scale(1.06);
    filter: saturate(0.7) brightness(0.88) contrast(1.08);
    will-change: opacity;
}

.hero-video.is-ready {
    opacity: 0.7;
}

.hero-video-stack {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #050508;
    opacity: 0.74;
}

.hero-video-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity var(--hero-crossfade, 1.8s) cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.hero-video-layer.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-video-layer.is-leaving {
    opacity: 0;
    z-index: 1;
}

.hero-media--rotate .hero-video {
    opacity: 1;
    transform: scale(1.06);
    filter: saturate(0.76) brightness(0.9) contrast(1.1);
}

.hero-video-layer.is-active .hero-video[data-ken="zoom-in"] {
    animation: heroKenZoomIn var(--hero-clip-duration, 6s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-video-layer.is-active .hero-video[data-ken="zoom-out"] {
    animation: heroKenZoomOut var(--hero-clip-duration, 6s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-video-layer.is-active .hero-video[data-ken="pan-left"] {
    animation: heroKenPanLeft var(--hero-clip-duration, 6s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-video-layer.is-active .hero-video[data-ken="pan-right"] {
    animation: heroKenPanRight var(--hero-clip-duration, 6s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroKenZoomIn {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.14) translate3d(-0.5%, -0.4%, 0); }
}

@keyframes heroKenZoomOut {
    from { transform: scale(1.14) translate3d(0.5%, 0.3%, 0); }
    to { transform: scale(1.04) translate3d(0, 0, 0); }
}

@keyframes heroKenPanLeft {
    from { transform: scale(1.1) translate3d(1.2%, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}

@keyframes heroKenPanRight {
    from { transform: scale(1.1) translate3d(-1.2%, -0.3%, 0); }
    to { transform: scale(1.1) translate3d(1.2%, 0.5%, 0); }
}

.hero-media-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 80% at 50% 45%, transparent 35%, rgba(5, 5, 8, 0.55) 100%),
        radial-gradient(ellipse 120% 100% at 50% 100%, rgba(5, 5, 8, 0.65), transparent 55%);
    mix-blend-mode: multiply;
}

.hero-media-grain {
    position: absolute;
    inset: -50%;
    z-index: 4;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: heroGrain 0.4s steps(2) infinite;
}

@keyframes heroGrain {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-2%, -3%, 0); }
    100% { transform: translate3d(1%, 2%, 0); }
}

.hero-media-progress {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: clamp(1.25rem, 3vw, 2rem);
    z-index: 6;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    pointer-events: none;
    transform: translateX(-50%);
}

.hero-media-progress-dot {
    position: relative;
    display: block;
    width: 2rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.hero-media-progress-dot.is-active {
    width: 2.75rem;
    background: rgba(255, 255, 255, 0.2);
}

.hero-media-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(180, 210, 255, 0.9), rgba(255, 255, 255, 0.95));
    box-shadow: 0 0 10px rgba(180, 210, 255, 0.5);
}

@keyframes heroProgressFill {
    from { width: 0; }
    to { width: 100%; }
}

.hero-media--rotate .hero-media-overlay {
    transition: background 1.8s ease;
}

.hero-media--rotate[data-hero-tone="0"] .hero-media-overlay {
    background:
        linear-gradient(180deg, rgba(5, 5, 8, 0.72) 0%, rgba(5, 5, 8, 0.28) 42%, rgba(5, 5, 8, 0.72) 100%),
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(79, 110, 247, 0.12), transparent 65%);
}

.hero-media--rotate[data-hero-tone="1"] .hero-media-overlay {
    background:
        linear-gradient(180deg, rgba(5, 5, 8, 0.72) 0%, rgba(5, 5, 8, 0.28) 42%, rgba(5, 5, 8, 0.72) 100%),
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(16, 120, 95, 0.12), transparent 65%);
}

.hero-media--rotate[data-hero-tone="2"] .hero-media-overlay {
    background:
        linear-gradient(180deg, rgba(5, 5, 8, 0.72) 0%, rgba(5, 5, 8, 0.28) 42%, rgba(5, 5, 8, 0.72) 100%),
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(120, 80, 200, 0.11), transparent 65%);
}

.hero-media--rotate[data-hero-tone="3"] .hero-media-overlay {
    background:
        linear-gradient(180deg, rgba(5, 5, 8, 0.72) 0%, rgba(5, 5, 8, 0.28) 42%, rgba(5, 5, 8, 0.72) 100%),
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200, 120, 60, 0.1), transparent 65%);
}

html[data-theme="light"] .hero-media--rotate[data-hero-tone="0"] .hero-media-overlay,
html[data-theme="light"] .hero-media--rotate[data-hero-tone="1"] .hero-media-overlay,
html[data-theme="light"] .hero-media--rotate[data-hero-tone="2"] .hero-media-overlay,
html[data-theme="light"] .hero-media--rotate[data-hero-tone="3"] .hero-media-overlay {
    background:
        linear-gradient(180deg, rgba(244, 246, 251, 0.94) 0%, rgba(244, 246, 251, 0.62) 42%, rgba(244, 246, 251, 0.96) 100%),
        linear-gradient(118deg, rgba(79, 110, 247, 0.1) 0%, transparent 48%),
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(79, 110, 247, 0.08), transparent 65%);
}

html[data-theme="light"] .hero-video {
    filter: brightness(1.12) saturate(0.9);
}

.hero-video-canvas {
    opacity: 0.85;
    z-index: 0;
}

.hero-media--canvas .hero-video-canvas {
    opacity: 0.9;
}

.hero-media--video .hero-video-canvas,
.hero-media--rotate .hero-video-canvas {
    display: none;
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(90deg, rgba(5, 5, 8, 0.82) 0%, rgba(5, 5, 8, 0.5) 32%, rgba(5, 5, 8, 0.12) 52%, rgba(5, 5, 8, 0.05) 100%),
        linear-gradient(180deg, rgba(5, 5, 8, 0.4) 0%, transparent 38%, rgba(5, 5, 8, 0.45) 100%);
    pointer-events: none;
}

html[data-theme="light"] .hero-media-overlay {
    background:
        linear-gradient(180deg, rgba(244, 246, 251, 0.88) 0%, rgba(244, 246, 251, 0.5) 45%, rgba(244, 246, 251, 0.92) 100%),
        linear-gradient(118deg, rgba(79, 110, 247, 0.12) 0%, transparent 48%),
        linear-gradient(298deg, rgba(147, 51, 234, 0.08) 0%, transparent 52%),
        radial-gradient(ellipse 85% 65% at 78% 32%, rgba(5, 150, 105, 0.06), transparent 58%);
    mix-blend-mode: normal;
}

.home-hero-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.home-hero-intro {
    position: relative;
    z-index: 2;
    width: 100%;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.8);
}

.home-hero-cta {
    position: relative;
    z-index: 2;
    width: 100%;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    padding: 0.4rem 0.9rem 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(5, 5, 8, 0.55);
    border: 1px solid rgba(109, 143, 255, 0.28);
    backdrop-filter: blur(8px);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    transition: opacity 0.35s ease;
}

.home-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
    animation: hero-dot-pulse 2s ease-in-out infinite;
}

@keyframes hero-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.home-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 600;
    width: 100%;
}

.hero-prefix {
    display: block;
    margin-bottom: 0.35rem;
    color: #fff;
    transition: opacity 0.35s ease;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.hero-scroll {
    --hero-slot: 3.25rem;
    position: relative;
    display: inline-block;
    width: var(--hero-scroll-width, auto);
    max-width: calc(100% - 1rem);
    margin: 0 auto 0.5rem;
    padding: 0;
    vertical-align: top;
}

.hero-scroll:not(.is-ready) .hero-scroll-word:not(:first-child) {
    display: none;
}

.hero-scroll-viewport {
    display: block;
    overflow: hidden;
    height: var(--hero-slot);
    width: 100%;
}

.hero-scroll-inner {
    display: block;
    will-change: transform;
}

.hero-scroll-word {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--hero-slot);
    margin: 0;
    padding: 0 0.1rem;
    box-sizing: border-box;
    line-height: 1.15;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.94em;
    font-weight: 600;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(105deg, #fff 0%, var(--accent) 40%, var(--accent-2) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-scroll-word:nth-child(2) {
    background: linear-gradient(105deg, #fff 0%, var(--accent-2) 50%, #6ee7b7 90%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-scroll-word:nth-child(3) {
    background: linear-gradient(105deg, #fff 0%, var(--accent-3) 45%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-scroll-word:nth-child(4) {
    font-size: 0.58em;
    white-space: normal;
    line-height: 1.2;
    padding: 0 0.25rem;
    background: linear-gradient(105deg, #fde68a 0%, #fb923c 40%, var(--accent-3) 85%);
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes hero-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.home-hero-tagline {
    display: block;
    margin-top: 0.65rem;
    max-width: 36ch;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 500;
    color: rgba(242, 242, 247, 0.88);
    transition: opacity 0.35s ease;
    text-align: center;
}

.home-hero-lead {
    margin: 0 auto 1.25rem;
    max-width: 48ch;
    font-size: 1.05rem;
    color: rgba(200, 200, 215, 0.92);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.home-hero-actions .button {
    border-radius: 9999px;
}

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

.hero-visual {
    position: relative;
    min-height: 280px;
    perspective: 900px;
}

.hero-visual-aura {
    position: absolute;
    inset: -20% -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 55% 45%, rgba(109, 143, 255, 0.18), transparent 70%),
        radial-gradient(ellipse 45% 40% at 70% 60%, rgba(147, 51, 234, 0.12), transparent 65%);
    filter: blur(24px);
    animation: heroAuraPulse 8s ease-in-out infinite;
}

@keyframes heroAuraPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-visual-panel {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transform: perspective(900px) rotateY(-8deg) rotateX(4deg) translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-visual-panel.is-active {
    opacity: 1;
    transform: perspective(900px) rotateY(-5deg) rotateX(2deg) translateY(0);
    pointer-events: auto;
    animation: heroPanelFloat 7s ease-in-out infinite;
}

@keyframes heroPanelFloat {
    0%, 100% { transform: perspective(900px) rotateY(-5deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(900px) rotateY(-4deg) rotateX(1deg) translateY(-8px); }
}

.hero-panel-window {
    position: relative;
    border-radius: 14px;
    background: rgba(10, 10, 16, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(109, 143, 255, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(109, 143, 255, 0.06);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero-visual-panel.is-active .hero-panel-window::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(109, 143, 255, 0.45),
        transparent 40%,
        transparent 60%,
        rgba(147, 51, 234, 0.35)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: heroBorderGlow 4s ease-in-out infinite;
}

@keyframes heroBorderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-panel-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--line);
}

.hero-panel-bar span:nth-child(1) { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.hero-panel-bar span:nth-child(2) { width: 10px; height: 10px; border-radius: 50%; background: #febc2e; }
.hero-panel-bar span:nth-child(3) { width: 10px; height: 10px; border-radius: 50%; background: #28c840; }

.hero-panel-tab {
    margin-left: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(109, 143, 255, 0.12);
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--accent);
}

.hero-panel-code {
    margin: 0;
    padding: 1.15rem 1rem 1.35rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    line-height: 1.75;
    overflow-x: auto;
}

.hero-panel-body {
    padding: 1.15rem 1rem 1.35rem;
}

.hero-service-group {
    margin-bottom: 0.85rem;
}

.hero-service-group:last-child {
    margin-bottom: 0;
}

.hero-service-group--nested {
    padding: 0.75rem 0.75rem 0.5rem;
    border-radius: 10px;
    background: rgba(109, 143, 255, 0.06);
    border: 1px solid rgba(109, 143, 255, 0.15);
    margin-left: 0.5rem;
}

.hero-service-heading {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: var(--font-body);
}

.hero-service-group--nested .hero-service-heading {
    color: var(--accent-3);
}

.hero-service-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-service-list li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1rem;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.hero-service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-service-group--nested .hero-service-list li::before {
    background: var(--accent-3);
}

.hero-cro-highlight {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.25);
}

.hero-cro-label {
    flex: 1;
    font-size: 0.82rem;
    color: var(--muted);
}

.hero-cro-val {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fb923c;
}

.hero-cro-tests {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.hero-cro-test {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 0.8rem;
}

.hero-cro-test span { color: var(--muted); }

.hero-cro-test strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.hero-cro-test--win {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.06);
}

.hero-cro-test--win strong { color: var(--accent-2); }

.hero-metric-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.hero-metric-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0.85rem;
}

.hero-metric-label {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.hero-metric-val {
    flex-shrink: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.hero-metric-up {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-2);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: rgba(52, 211, 153, 0.12);
    white-space: nowrap;
}

.hero-channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.hero-channel-tags span {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--muted);
}

.hero-panel-copy {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

.hero-funnel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.hero-funnel-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 0.82rem;
}

.hero-funnel-step span { color: var(--muted); }

.hero-funnel-step strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.hero-funnel-step--hot {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
}

.hero-funnel-step--hot strong { color: var(--accent-2); }

.hero-lead-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hero-lead-sources span {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    background: rgba(109, 143, 255, 0.1);
    color: var(--accent);
    font-weight: 500;
}

.hero-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    height: 100px;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.hero-chart-bar {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, rgba(109, 143, 255, 0.5), rgba(109, 143, 255, 0.15));
    border: 1px solid rgba(109, 143, 255, 0.25);
}

.hero-chart-bar--peak {
    background: linear-gradient(180deg, var(--accent-2), rgba(52, 211, 153, 0.2));
    border-color: rgba(52, 211, 153, 0.35);
}

.hero-digital-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.hero-digital-stats div {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.hero-digital-stats span {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.hero-digital-stats strong {
    font-size: 1rem;
    color: var(--accent-2);
}

.code-cm { color: #55556a; }
.code-kw { color: #c084fc; }
.code-fn { color: #6d8fff; }
.code-str { color: #34d399; }
.code-ty { color: #fbbf24; }

@media (max-width: 960px) {
    .hero-visual-panel,
    .hero-visual-panel.is-active {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-cursor,
    .home-hero-dot,
    .hero-media-grain,
    .home-hero-spotlight,
    .hero-visual-aura,
    .home-hero.is-entered .home-hero-intro,
    .home-hero.is-entered .home-hero-cta {
        animation: none;
    }

    .hero-video-layer.is-active .hero-video,
    .hero-visual-panel.is-active {
        animation: none;
    }

    .hero-visual-panel,
    .hero-visual-panel.is-active {
        transform: none;
    }
}

.page-head {
    margin-bottom: 2.5rem;
    max-width: 640px;
}

.page-head h1 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-label {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--accent-2);
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--danger);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

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

.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--input-bg, rgba(255,255,255,0.04));
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(109, 143, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(109, 143, 255, 0.15);
}

.field textarea { min-height: 120px; resize: vertical; }

.field-error {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--danger);
}

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.slots-panel.is-invalid .slots {
    outline: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 10px;
    padding: 0.5rem;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav h2 {
    margin: 0;
    font-size: 1.1rem;
}

.calendar-nav button {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-dow {
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted);
    padding: 0.25rem;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.88rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.cal-day:hover:not(:disabled) {
    background: rgba(109, 143, 255, 0.12);
    border-color: rgba(109, 143, 255, 0.2);
}

.cal-day.selected {
    background: rgba(109, 143, 255, 0.2);
    border-color: var(--accent);
    color: #fff;
}

.cal-day:disabled,
.cal-day.empty {
    color: rgba(139,139,158,0.35);
    cursor: default;
}

.cal-day.empty { pointer-events: none; }

.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    min-height: 44px;
}

.slot-btn {
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.slot-btn:hover { border-color: rgba(109, 143, 255, 0.4); }

.slot-btn.selected {
    background: rgba(109, 143, 255, 0.2);
    border-color: var(--accent);
}

.slots-empty {
    color: var(--muted);
    font-size: 0.88rem;
}

.confirm-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-2);
    font-size: 1.5rem;
}

.confirm-detail {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    text-align: left;
    font-size: 0.92rem;
}

.confirm-detail dt {
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
}

.confirm-detail dd {
    margin: 0 0 0.85rem;
    font-weight: 500;
}

.confirm-detail dd:last-child { margin-bottom: 0; }

.site-footer {
    position: relative;
    z-index: 1;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .booking-layout,
    .contact-layout,
    .form-grid.two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-mesh,
    .ambient-aurora,
    .ambient-orb,
    .header-cta-shine { animation: none; }
    .button:hover { transform: none; }
}
