/* ==================== HERO ==================== */
.dt-hero {
    --dt-orange: #ff7a00;
    --dt-orange-light: #ffb060;
    --dt-hero-bg: #070605;
    --dt-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --mx: 0;  /* pointer offset, -1..1, set by hero.js */
    --my: 0;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: clamp(540px, 46vw, 780px);
    background: var(--dt-hero-bg);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ---------- Artwork ---------- */
.dt-hero__media {
    position: absolute;
    inset: -12px;           /* bleed so the parallax never shows an edge */
    z-index: -2;
    display: block;
    animation: dt-hero-zoom 2.2s var(--dt-ease-out) both;
}

.dt-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    display: block;
    transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0) scale(1.02);
    transition: transform 0.6s var(--dt-ease-out);
}

/* Darken the left side so the copy always reads well */
.dt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 6, 5, 0.92) 0%, rgba(7, 6, 5, 0.7) 32%, rgba(7, 6, 5, 0) 58%),
        linear-gradient(0deg, rgba(7, 6, 5, 0.55) 0%, rgba(7, 6, 5, 0) 22%);
    pointer-events: none;
}

/* ---------- Light effects ---------- */
.dt-hero__fx {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Warm glow behind the product ring, breathing slowly and drifting with the pointer */
.dt-hero__halo {
    position: absolute;
    left: 78%;
    top: 44%;
    width: 46vw;
    height: 46vw;
    max-width: 720px;
    max-height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.28) 0%, rgba(255, 122, 0, 0.08) 38%, rgba(255, 122, 0, 0) 68%);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%) translate3d(calc(var(--mx) * 18px), calc(var(--my) * 14px), 0);
    transition: transform 0.8s var(--dt-ease-out);
    animation: dt-hero-breathe 5s ease-in-out infinite;
}

.dt-hero__sparks {
    position: absolute;
    inset: 0;
}

.dt-hero__spark {
    position: absolute;
    bottom: -10px;
    width: var(--s, 3px);
    height: var(--s, 3px);
    border-radius: 50%;
    background: var(--dt-orange-light);
    box-shadow: 0 0 8px 2px rgba(255, 122, 0, 0.7);
    opacity: 0;
    animation: dt-hero-spark var(--d, 9s) linear var(--delay, 0s) infinite;
}

/* ---------- Layout ---------- */
.dt-hero__inner {
    position: relative;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(28px, 3.4vw, 48px);
}

.dt-hero__content {
    max-width: 560px;
}

/* ---------- Copy ---------- */
.dt-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 7px 14px 7px 10px;
    border: 1px solid rgba(255, 122, 0, 0.35);
    border-radius: 999px;
    background: rgba(255, 122, 0, 0.08);
    color: var(--dt-orange);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    animation: dt-hero-fade-up 0.8s var(--dt-ease-out) 0.15s both;
}

.dt-hero__eyebrow-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dt-orange);
}

.dt-hero__eyebrow-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--dt-orange);
    animation: dt-hero-ping 1.8s ease-out infinite;
}

.dt-hero__title {
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
}

/* Each line slides up from behind a mask */
.dt-hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.dt-hero__line > span {
    display: inline-block;
    animation: dt-hero-line-up 1s var(--dt-ease-out) 0.3s both;
}

.dt-hero__line + .dt-hero__line > span {
    animation-delay: 0.45s;
}

/* Orange line with a slow light sweep across the letters */
.dt-hero__line--accent > span {
    color: var(--dt-orange);
    background: linear-gradient(100deg, var(--dt-orange) 0%, var(--dt-orange) 40%, #ffd0a0 50%, var(--dt-orange) 60%, var(--dt-orange) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        dt-hero-line-up 1s var(--dt-ease-out) 0.45s both,
        dt-hero-sheen 6s ease-in-out 1.6s infinite;
}

.dt-hero__text {
    margin: 0 0 32px;
    max-width: 440px;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    animation: dt-hero-fade-up 0.9s var(--dt-ease-out) 0.65s both;
}

/* ---------- Buttons ---------- */
.dt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    animation: dt-hero-fade-up 0.9s var(--dt-ease-out) 0.8s both;
}

/* ---------- Feature badges ---------- */
.dt-hero__features {
    display: flex;
    gap: clamp(20px, 2.6vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-hero__feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    animation: dt-hero-fade-up 0.8s var(--dt-ease-out) calc(1s + var(--i) * 0.12s) both;
}

.dt-hero__feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 122, 0, 0.3);
    background: linear-gradient(145deg, rgba(255, 122, 0, 0.16), rgba(255, 122, 0, 0.02));
    color: var(--dt-orange);
    transition: transform 0.3s var(--dt-ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.dt-hero__feature-icon svg {
    width: 24px;
    height: 24px;
}

/* Icons draw themselves in */
.dt-hero__feature-icon svg > * {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: dt-hero-draw 1.4s ease-out calc(1.2s + var(--i) * 0.15s) forwards;
}

.dt-hero__feature:hover .dt-hero__feature-icon {
    transform: translateY(-4px);
    border-color: var(--dt-orange);
    box-shadow: 0 10px 24px -6px rgba(255, 122, 0, 0.55);
}

.dt-hero__feature-label {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Scroll cue ---------- */
.dt-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 6px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    animation: dt-hero-fade-up 0.8s var(--dt-ease-out) 1.6s both;
}

.dt-hero__scroll:hover {
    opacity: 1;
}

.dt-hero__scroll-mouse {
    display: block;
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
}

.dt-hero__scroll-mouse span {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--dt-orange);
    animation: dt-hero-wheel 1.8s ease-in-out infinite;
}

/* Pause looping effects while the hero is off screen (hero.js) */
.dt-hero.is-offscreen *,
.dt-hero.is-offscreen *::before,
.dt-hero.is-offscreen *::after {
    animation-play-state: paused !important;
}

/* ---------- Keyframes ---------- */
@keyframes dt-hero-zoom {
    from { transform: scale(1.08); opacity: 0.35; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes dt-hero-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dt-hero-line-up {
    from { transform: translateY(105%); }
    to   { transform: translateY(0); }
}

@keyframes dt-hero-sheen {
    0%, 55% { background-position: 100% 0; }
    100%    { background-position: -50% 0; }
}

@keyframes dt-hero-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes dt-hero-ping {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.8); opacity: 0; }
}

@keyframes dt-hero-breathe {
    0%, 100% { opacity: 0.75; }
    50%      { opacity: 1; }
}

@keyframes dt-hero-spark {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    10%  { opacity: 0.9; }
    80%  { opacity: 0.5; }
    100% { transform: translate3d(var(--drift, 20px), -85vh, 0); opacity: 0; }
}

@keyframes dt-hero-wheel {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Tablet & mobile: copy on top, products below, badges on the floor ---------- */
@media (max-width: 991.98px) {
    .dt-hero {
        height: auto;
        display: flex;
        flex-direction: column;
        padding-top: 48px;
    }

    .dt-hero::before,
    .dt-hero__scroll {
        display: none;
    }

    .dt-hero__inner {
        display: contents;
    }

    .dt-hero__content {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
        position: relative;
        z-index: 2;
    }

    .dt-hero__text {
        margin-left: auto;
        margin-right: auto;
    }

    .dt-hero__actions {
        justify-content: center;
    }

    /* The artwork flows under the copy; its empty dark top tucks behind the buttons */
    .dt-hero__media {
        order: 2;
        position: relative;
        inset: auto;
        margin-top: -8vw;
        aspect-ratio: 16 / 10;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 20%);
    }

    .dt-hero__media img {
        object-position: right center;
        transform: none;
    }

    .dt-hero__halo {
        left: 55%;
        top: 70%;
        width: 90vw;
        height: 90vw;
    }

    .dt-hero__features {
        order: 3;
        position: relative;
        z-index: 2;
        justify-content: center;
        gap: 8px;
        margin-top: -36px;
        padding: 20px 16px 36px;
        background: linear-gradient(to bottom, rgba(7, 6, 5, 0) 0%, rgba(7, 6, 5, 0.85) 45%, var(--dt-hero-bg) 100%);
    }

    .dt-hero__feature {
        flex: 0 1 130px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .dt-hero {
        padding-top: 36px;
    }

    .dt-hero__eyebrow {
        font-size: 0.64rem;
        margin-bottom: 16px;
    }

    .dt-hero__title {
        font-size: clamp(2.3rem, 11vw, 3.2rem);
        margin-bottom: 14px;
    }

    .dt-hero__text {
        margin-bottom: 24px;
        font-size: 0.95rem;
    }

    .dt-hero__actions {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .dt-hero .dt-btn {
        flex: 1 1 auto;
        height: 48px;
        padding: 0 16px;
        gap: 8px;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    .dt-hero__media {
        margin-top: -38vw;
        aspect-ratio: 941 / 1292;
    }

    .dt-hero__media img {
        object-position: center bottom;
    }

    .dt-hero__halo {
        left: 50%;
        top: 62%;
        width: 120vw;
        height: 120vw;
    }

    .dt-hero__features {
        justify-content: space-between;
        margin-top: -84px;
        padding: 18px 12px 26px;
    }

    .dt-hero__feature {
        flex: 1;
        gap: 8px;
    }

    .dt-hero__feature-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .dt-hero__feature-icon svg {
        width: 21px;
        height: 21px;
    }

    .dt-hero__feature-label {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 359.98px) {
    .dt-hero__actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px;
    }
}

/* ---------- Reduced motion: keep it still, keep it visible ---------- */
@media (prefers-reduced-motion: reduce) {
    .dt-hero *,
    .dt-hero *::before,
    .dt-hero *::after {
        animation: none !important;
        transition: none !important;
    }

    .dt-hero__feature-icon svg > * {
        stroke-dashoffset: 0;
    }

    .dt-hero__line--accent > span {
        background-position: 0 0;
    }

    .dt-hero__spark {
        display: none;
    }
}
