body {
    background-color: #0d0d0d;
    color: #fafafa;
}

html {
    scroll-behavior: smooth;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid #d9ff64;
    outline-offset: 4px;
}

/* mimic lucide stroke defaults */
.icon {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Scroll reveal animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtle-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--animate-delay, 0ms));
}

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

.animate-glow {
    animation: subtle-glow 8s ease-in-out infinite;
}

.section-surface {
    position: relative;
    border-block: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at 50% 0%, rgba(217, 255, 100, 0.055), transparent 34rem),
        rgba(26, 26, 26, 0.38);
}

.polish-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.polish-card::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 45%);
}

.polish-card:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 255, 100, 0.3);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.editorial-point {
    position: relative;
}

.editorial-point::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.08);
}

.editorial-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.editorial-list li {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding-block: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editorial-list span {
    color: #d9ff64;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
}

.editorial-list strong {
    font-size: 0.95rem;
}

.product-stories {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-story {
    display: grid;
    gap: 3rem;
    align-items: center;
    padding-block: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-story-copy {
    position: relative;
    z-index: 1;
}

.product-story-index {
    position: absolute;
    z-index: -1;
    top: -3.5rem;
    left: -0.25rem;
    color: rgba(255, 255, 255, 0.035);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(7rem, 15vw, 11rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
}

.product-story-stage {
    position: relative;
    min-height: 35rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 50% 45%, rgba(217, 255, 100, 0.16), transparent 17rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.product-story-stage::before {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 1.4rem;
    content: "";
}

.product-note {
    position: absolute;
    z-index: 2;
    top: 18%;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    background: rgba(13, 13, 13, 0.82);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    color: #fafafa;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.product-note::before {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.45rem;
    border-radius: 9999px;
    content: "";
    background: #d9ff64;
    box-shadow: 0 0 12px rgba(217, 255, 100, 0.5);
}

.product-note-right {
    right: 5%;
}

.product-note-left {
    left: 5%;
}

.journey-line {
    position: relative;
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.journey-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding-block: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.journey-step > span {
    color: #d9ff64;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.journey-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.journey-step p {
    margin-top: 0.4rem;
    color: #9b9b9b;
    line-height: 1.6;
}

.reseller-workflow {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reseller-workflow li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding-block: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reseller-workflow li > span {
    color: #d9ff64;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
}

.reseller-workflow h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.reseller-workflow p {
    margin-top: 0.6rem;
    color: #9b9b9b;
    line-height: 1.7;
}

.reseller-workflow small {
    display: block;
    margin-top: 1rem;
    color: rgba(250, 250, 250, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-panel {
    box-shadow: 0 26px 80px rgba(217, 255, 100, 0.12);
}

.cta-panel::before,
.cta-panel::after {
    position: absolute;
    width: 18rem;
    height: 18rem;
    pointer-events: none;
    border: 1px solid rgba(22, 33, 10, 0.12);
    border-radius: 9999px;
    content: "";
}

.cta-panel::before {
    top: -12rem;
    left: -5rem;
}

.cta-panel::after {
    right: -6rem;
    bottom: -13rem;
}

/* App screenshot presentation */
.hero-phone-stage {
    isolation: isolate;
}

.hero-phone-stage::before {
    position: absolute;
    z-index: -1;
    inset: 16% 8% 8%;
    border-radius: 9999px;
    content: "";
    background: rgba(217, 255, 100, 0.1);
    filter: blur(70px);
}

.phone-mockup {
    min-width: 0;
}

.phone-parallax {
    --phone-shift: 0px;
    --phone-tilt: 0deg;
    transform: translate3d(0, var(--phone-shift), 0) rotate(var(--phone-tilt));
    transform-origin: center;
    transition: transform 0.18s linear;
    will-change: transform;
}

.phone-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 502 / 1024;
    overflow: hidden;
    border: 6px solid #262626;
    border-radius: 2.5rem;
    background: #171717;
    box-shadow:
        0 32px 70px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.phone-frame::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    content: "";
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.phone-mockup:hover .phone-frame {
    border-color: #333;
    box-shadow:
        0 38px 85px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(217, 255, 100, 0.16);
    transform: translateY(-4px);
}

#headerPill.header-scrolled {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    background-color: rgba(26, 26, 26, 0.95);
}

.mobile-menu {
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-glow {
        animation: none;
    }

    .mobile-menu {
        transition: none;
    }

    .phone-parallax,
    .phone-frame,
    .polish-card {
        transition: none;
    }

    .polish-card:hover,
    .phone-mockup:hover .phone-frame {
        transform: none;
    }
}

@media (min-width: 768px) {
    .editorial-point + .editorial-point {
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .editorial-point::after {
        display: none;
    }

    .product-story {
        grid-template-columns: minmax(0, 0.8fr) minmax(24rem, 1.2fr);
        gap: clamp(3rem, 8vw, 7rem);
        min-height: 46rem;
    }

    .product-story-reverse {
        grid-template-columns: minmax(24rem, 1.2fr) minmax(0, 0.8fr);
    }

    .product-story-reverse .product-story-copy {
        order: 2;
    }

    .product-story-reverse .product-story-stage {
        order: 1;
    }

    .journey-line {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .journey-step {
        position: relative;
        display: block;
        padding: 2.5rem 2rem 0 0;
        border-bottom: 0;
    }

    .journey-step::before {
        position: absolute;
        top: -0.35rem;
        left: 0;
        width: 0.7rem;
        height: 0.7rem;
        border: 2px solid #0d0d0d;
        border-radius: 9999px;
        content: "";
        background: #d9ff64;
        box-shadow: 0 0 0 1px rgba(217, 255, 100, 0.35);
    }

    .journey-step h3 {
        margin-top: 2rem;
    }
}

/* Blog article prose */
.blog-prose {
    color: #9b9b9b;
    line-height: 1.75;
    font-size: 1.05rem;
}

.blog-prose > :first-child {
    margin-top: 0;
}

.blog-prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fafafa;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.blog-prose h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #fafafa;
    font-size: 1.25rem;
    font-weight: 700;
}

.blog-prose p,
.blog-prose ul,
.blog-prose ol,
.blog-prose blockquote {
    margin-top: 1.25rem;
}

.blog-prose ul,
.blog-prose ol {
    padding-left: 1.5rem;
}

.blog-prose ul {
    list-style: disc;
}

.blog-prose ol {
    list-style: decimal;
}

.blog-prose li {
    margin-top: 0.5rem;
}

.blog-prose a {
    color: #d9ff64;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-prose blockquote {
    border-left: 3px solid rgba(217, 255, 100, 0.5);
    padding-left: 1rem;
    color: #c8c8c8;
    font-style: italic;
}

.blog-prose code {
    border-radius: 0.375rem;
    background: #1a1a1a;
    padding: 0.15rem 0.4rem;
    font-size: 0.9em;
}

.blog-prose pre {
    margin-top: 1.25rem;
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a1a;
    padding: 1rem;
}

.blog-prose pre code {
    background: transparent;
    padding: 0;
}

.blog-prose strong {
    color: #fafafa;
    font-weight: 600;
}
