/* ==========================================================================
   Snappy Landing — custom layer di atas Tailwind (CDN)
   ========================================================================== */

:root {
    --brand-50: #eef6ff;
    --brand-100: #d9ebff;
    --brand-200: #bcdcff;
    --brand-300: #8ec6ff;
    --brand-400: #59a5ff;
    --brand-500: #3383fc;
    --brand-600: #1c63f0;
    --brand-700: #154cdb;
    --brand-800: #1740b2;
    --brand-900: #19398c;
    --accent: #6a4cec;
    --ink: #0a1020;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    text-rendering: optimizeLegibility;
}

/* Offset untuk anchor section agar tidak ketutup header */
[id] {
    scroll-margin-top: 96px;
}

/* --------------------------------------------------------------- Typography */
.font-display {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(100deg, var(--brand-600) 0%, var(--accent) 55%, #ff5ca8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ------------------------------------------------------------------- Hero */
.hero-grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
    opacity: 0.4;
    pointer-events: none;
}

/* Mockup device */
.mockup {
    transform: perspective(1800px) rotateY(-8deg) rotateX(3deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mockup-static {
    transform: none;
}

.mockup-static:hover {
    transform: translateY(-4px);
}

.mockup:hover {
    transform: perspective(1800px) rotateY(-3deg) rotateX(1deg) translateY(-4px);
}

.float-slow {
    animation: floaty 7s ease-in-out infinite;
}

.float-slower {
    animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------------------------------------------------------------- Marquee */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    animation: marquee var(--marquee-duration, 48s) linear infinite;
    animation-direction: var(--marquee-direction, normal);
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee--reverse .marquee__track {
    animation-direction: reverse;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------- Reveal */
/* animasi reveal dijalankan Motion (public/landing/motion.js); tanpa JS konten tetap tampil */
@media (prefers-reduced-motion: reduce) {
    .marquee__track, .float-slow, .float-slower { animation: none; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- Accordion */
.accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-item[data-open="true"] .accordion-panel {
    grid-template-rows: 1fr;
}

.accordion-panel > div {
    overflow: hidden;
}

.accordion-chevron {
    transition: transform 0.3s ease;
}

.accordion-item[data-open="true"] .accordion-chevron {
    transform: rotate(180deg);
}

/* ------------------------------------------------------------ Device tabs */
.device-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.device-card:hover {
    transform: translateY(-4px);
}

.device-card[aria-selected="true"] {
    border-color: var(--brand-500);
    box-shadow: 0 18px 40px -24px rgba(28, 99, 240, 0.55);
}

/* ---------------------------------------------------------------- Buttons */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: transform 0.7s ease;
}

.btn-shine:hover::after {
    transform: translateX(120%) skewX(-18deg);
}

/* --------------------------------------------------------------- Utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.ring-focus:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 3px;
}

.prose-tight p { line-height: 1.75; }

/* ----------------------------------------------------------------- Header */
.header-shell {
    position: relative;
    border: 1px solid transparent;
    border-radius: 0;
    background-color: transparent;
    transition:
        max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.header-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(8, 12, 24, 0.96) 0%, rgba(12, 20, 40, 0.86) 55%, rgba(15, 26, 52, 0.94) 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

[data-header].is-floating .header-shell::before {
    opacity: 1;
}

[data-header].is-floating .header-shell {
    height: 3.75rem;
    margin-top: 0.65rem;
    max-width: var(--pill-width, 64rem);
    padding-left: 1.15rem;
    padding-right: 0.75rem;
    border-radius: 9999px;
    border-color: rgba(255, 255, 255, 0.09);
    background-color: transparent;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 20px 45px -26px rgba(0, 0, 0, 0.85);
}

/* dipakai JS sekejap untuk mengukur lebar konten navbar */
.header-shell.is-measuring {
    width: max-content !important;
    max-width: none !important;
}

