:root {
    --primary: #1a73e8;
    --accent: #10b981;
    --bg: #f4f5f7;
    --panel: #ffffff;
    --text: #292a2e;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    --radius: 6px;
    --icon-fill-color: #101214;
    --ad-color-brand-blue: #1868DB;
    --ad-color-brand-purple: #BF63F3;
    --ad-color-brand-saffron: #FCA700;
    --ad-color-brand-lime: #94C748;
    --ad-color-brand-obsidian: #101214;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Charlie Text", "Segoe UI", -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.35;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    overflow-clip-margin: content-box;
    overflow: clip;
}

/* ===== Splash screen (inside stage) ===== */
.stage {
    position: relative;
}

/* Calm gradient highlight for “Help” */
.accent {
    background-image: linear-gradient(90deg,
            rgba(24, 104, 219, 0.92),
            rgba(191, 99, 243, 0.88));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Fallback if background-clip:text isn’t supported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .accent {
        color: var(--accent, #1868DB);
        background: none;
    }
}

.stage-splash {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 500ms ease, transform 500ms ease;
}

.stage-splash.hide {
    opacity: 0;
    transform: scale(1.01);
    pointer-events: none;
}

.stage-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 24px;
}

.stage-splash-logo {
    width: 172px;
    height: 172px;
    display: grid;
    place-items: center;
    /* border-radius: 20px; */
    /* background: rgba(41, 42, 46, 0.04); */
    /* border: 1px solid rgba(41, 42, 46, 0.10); */
    overflow: hidden;
}

.stage-splash-title {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.stage-splash-sub {
    margin: 0;
    color: rgba(41, 42, 46, 0.70);
    font-size: 14px;
    font-weight: 600;
}

.stage-content {
    opacity: 0;
    transition: opacity 500ms ease;
}

.stage-content.ready {
    opacity: 1;
}

/* ===== Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--text);
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background: var(--text);
    color: #fff;
    border-color: transparent;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

/* ===== Main product stage ===== */
.main {
    padding: 22px 16px 0;
    position: relative;
    overflow: hidden;
}

.main .background-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-shape {
    position: absolute;
    opacity: 0.12;
    animation: moveBgShape 22s linear infinite;
    filter: blur(0px);
}

.bg-shape.circle {
    border-radius: 50%;
    background: var(--text);
}

.bg-shape.square {
    background: var(--muted);
}

.bg-shape.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid var(--text);
}

@keyframes moveBgShape {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-60px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.main-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stage {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stage-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 18px;
    padding: 18px;
    align-items: stretch;
}

.stage-left {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 460px;
}

.kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.headline {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text);
}

.subhead {
    margin: 0;
    color: var(--text);
    opacity: 0.86;
    font-size: 16px;
    max-width: 56ch;
}

.bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    opacity: 0.85;
}

.stage-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.stage-right {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-wrap {
    position: relative;
    width: 100%;
    background: #0b0c10;
    overflow: hidden;
    min-height: 320px;
    flex: 1;
    min-height: 0;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: var(--bg);
}

.video-caption {
    padding: 12px 12px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted);
    font-size: 13px;
    flex: 0 0 auto;
}

/* ===== Video controls ===== */
.video-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.video-wrap:hover .video-controls,
.video-wrap:focus-within .video-controls {
  opacity: 1;
  pointer-events: auto;
}

.video-btn {
  appearance: none;
  border: none;
  background: rgba(16, 18, 20, 0.65);
  color: #fff;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 120ms ease, background 120ms ease;
}

.video-btn:hover {
  transform: translateY(-1px);
  background: rgba(16, 18, 20, 0.8);
}

/* Always show controls on touch devices */
@media (hover: none) {
  .video-controls {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== Product list (bottom) ===== */
.product-strip {
    padding: 16px 0 26px;
}

.strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.product-row {
    display: flex;
    gap: 14px;
    padding: 12px;
    align-items: stretch;
    min-width: 780px;
    justify-content: center;
}

.product-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    width: 260px;
    min-width: 260px;
    height: 80px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    padding: 12px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.10);
    border-color: rgba(41, 42, 46, 0.22);
}

.product-card.active {
    border-color: rgba(41, 42, 46, 0.55);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.product-card-header {
    padding: 0;
}

.product-card-header .subtitle {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.product-card-header h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.product-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 100%;
    align-items: center;
}

.product-card-header {
    padding: 0;
}

.product-card-media {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(41, 42, 46, 0.08), rgba(41, 42, 46, 0.02));
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.product-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(41, 42, 46, 0.10), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(41, 42, 46, 0.08), transparent 60%);
    pointer-events: none;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-media .placeholder {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(41, 42, 46, 0.55);
    font-size: 12px;
    position: relative;
    z-index: 1;
}


/* ===== Hover burst shapes (keep the cool animation) ===== */
.product-card .shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    opacity: 0.7;
    animation: floatShape 3s forwards;
}

.shape.circle {
    border-radius: 50%;
    background: var(--text);
}

.shape.square {
    background: var(--muted);
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--text);
}

@keyframes floatShape {
    0% {
        opacity: 0;
        transform: scale(0.5) translate(0, 0) rotate(0deg);
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.2) translate(var(--dx, 0), var(--dy, 0)) rotate(360deg);
    }
}

/* ===== Trusted / footer ===== */
.trusted-by {
    padding: 10px 16px 28px;
    text-align: center;
    color: var(--muted);
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.logos img {
    height: 28px;
    max-width: 110px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.logos img:hover {
    opacity: 1;
}

footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    padding: 22px 16px;
}



/* ===== Responsive ===== */
@media (max-width: 980px) {
    .stage-inner {
        grid-template-columns: 1fr;
    }

    .stage-left,
    .stage-right {
        min-height: unset;
    }

    .product-row {
        min-width: 680px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        padding: 12px 14px;
    }

    .brand {
        font-size: 16px;
    }

    .btn {
        padding: 9px 12px;
    }

    .product-row {
        min-width: 600px;
    }
}

/* ===== Support modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 19, 24, 0.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 200;
}

.modal-overlay.open {
    display: flex;
}

.modal-panel {
    width: min(920px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.modal-title {
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--text);
}

.modal-close {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: var(--radius);
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
}

body.modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .modal-panel {
        transition: none;
    }
}

/* Animated logo mark (circle / triangle / square) */
.dw-mark {
    overflow: visible;
}

/* Make SVG transforms work predictably */
.dw-mark .mark-circle,
.dw-mark .mark-triangle,
.dw-mark .mark-hex,
.dw-mark .mark-square {
    transform-box: fill-box;
    transform-origin: center;
}

/* Subtle idle motion (header logo) */
#brand-mark .dw-mark .mark-circle {
    animation: dwFloat 3.2s ease-in-out infinite;
}

#brand-mark .dw-mark .mark-triangle {
    animation: dwFloat 3.2s ease-in-out infinite 160ms;
}

#brand-mark .dw-mark .mark-square {
    animation: dwFloat 3.2s ease-in-out infinite 320ms;
}

#brand-mark .dw-mark .mark-hex {
    animation: dwFloat 3.2s ease-in-out infinite 320ms;
}

/* More playful bounce during splash */
.stage-splash-logo.is-animating .dw-mark .mark-circle {
    animation: dwBounce 900ms ease-in-out infinite;
}

.stage-splash-logo.is-animating .dw-mark .mark-triangle {
    animation: dwBounce 900ms ease-in-out infinite 120ms;
}

.stage-splash-logo.is-animating .dw-mark .mark-square {
    animation: dwBounce 900ms ease-in-out infinite 240ms;
}

.stage-splash-logo.is-animating .dw-mark .mark-hex {
    animation: dwBounce 900ms ease-in-out infinite 360ms;
}


@keyframes dwFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes dwBounce {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    45% {
        transform: translateY(-10px) scale(1.03);
    }

    60% {
        transform: translateY(0px) scale(0.99);
    }
}