/* ==========================================================================
   UMAI — Public Site Stylesheet
   Neobrutalist design system with Satoshi font
   ========================================================================== */

/* ---------- Fonts --------------------------------------------------------- */
@font-face {
    font-family: 'Satoshi';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/css/fonts/satoshi/Satoshi-Regular.woff2") format("woff2");
}
@font-face {
    font-family: 'Satoshi';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/css/fonts/satoshi/Satoshi-Medium.woff2") format("woff2");
}
@font-face {
    font-family: 'Satoshi';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/css/fonts/satoshi/Satoshi-SemiBold.woff2") format("woff2");
}
@font-face {
    font-family: 'Satoshi';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/css/fonts/satoshi/Satoshi-Bold.woff2") format("woff2");
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/css/fonts/space-grotesk/SpaceGrotesk-Bold.woff2") format("woff2");
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ---------- Design Tokens ------------------------------------------------- */
:root {
    --font: 'Satoshi', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', 'Satoshi', system-ui, sans-serif;

    /* Brand palette */
    --red: #e63946;
    --cream: #faf9f6;
    --yellow: #ffde59;
    --orange: #ff6b35;
    --blue: #4361ee;
    --green: #2dd4bf;

    /* Semantic */
    --bg: #ffffff;
    --bg-alt: var(--cream);
    --text: #0b0b0b;
    --text-muted: #6b7280;
    --panel: #ffffff;
    --line: #e5e7eb;

    /* Brutalist */
    --border-brutal: 3px solid var(--text);
    --shadow-brutal: 6px 6px 0 var(--text);
    --shadow-brutal-sm: 4px 4px 0 var(--text);
    --shadow-brutal-hover: 8px 8px 0 var(--text);
    --radius: 16px;
    --radius-btn: 12px;

    /* Layout */
    --container: 1200px;
    --nav-h: 72px;
}

/* ---------- Dark mode ----------------------------------------------------- */
:root[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-alt: #111214;
    --text: #f5f5f5;
    --text-muted: #9aa2ad;
    --panel: #0c0c0c;
    --line: #222527;
    --red: #f87171;
    --border-brutal: 3px solid rgba(255,255,255,.25);
    --shadow-brutal: 6px 6px 0 rgba(255,255,255,.22);
    --shadow-brutal-sm: 4px 4px 0 rgba(255,255,255,.22);
    --shadow-brutal-hover: 8px 8px 0 rgba(255,255,255,.28);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] {
        --bg: #0a0a0a;
        --bg-alt: #111214;
        --text: #f5f5f5;
        --text-muted: #9aa2ad;
        --panel: #0c0c0c;
        --line: #222527;
        --red: #f87171;
        --border-brutal: 3px solid rgba(255,255,255,.25);
        --shadow-brutal: 6px 6px 0 rgba(255,255,255,.22);
        --shadow-brutal-sm: 4px 4px 0 rgba(255,255,255,.22);
        --shadow-brutal-hover: 8px 8px 0 rgba(255,255,255,.28);
        color-scheme: dark;
    }
}

/* ---------- Base ---------------------------------------------------------- */
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* ---------- Typography ---------------------------------------------------- */
.t-xs   { font-size: 0.75rem; }
.t-sm   { font-size: 0.875rem; }
.t-base { font-size: 1rem; }
.t-lg   { font-size: 1.125rem; }
.t-xl   { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.t-2xl  { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
.t-muted { color: var(--text-muted); }
.t-bold { font-weight: 700; }
.lead   { font-size: clamp(1.05rem, 1.2vw, 1.2rem); color: var(--text-muted); line-height: 1.7; }

/* ---------- Layout -------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section {
    padding: clamp(64px, 9vw, 112px) 0;
}

.section--alt { background: var(--bg-alt); }

.text-center { text-align: center; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-760 { max-width: 760px; }
.max-w-640 { max-width: 640px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---------- Grid ---------------------------------------------------------- */
.grid       { display: grid; gap: 28px; }
.grid-2     { grid-template-columns: repeat(2, 1fr); }
.grid-3     { grid-template-columns: repeat(3, 1fr); }
.grid-4     { grid-template-columns: repeat(4, 1fr); }
.gap-12     { gap: 12px; }
.gap-16     { gap: 16px; }
.gap-24     { gap: 24px; }
.gap-32     { gap: 32px; }
.gap-40     { gap: 40px; }

/* Flex helpers */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: end; }

/* ---------- Pill / Badge -------------------------------------------------- */
.pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: var(--border-brutal);
    background: var(--bg);
}

.badge-soft {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(230, 57, 70, .1);
    color: var(--red);
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--text);
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover  { transform: translate(-2px, -2px); box-shadow: var(--shadow-brutal-sm); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }

.btn--primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn--primary:hover { background: #d32f3f; border-color: #d32f3f; }

.btn--dark {
    background: var(--text);
    color: var(--bg);
}

.btn--outline {
    background: transparent;
    color: var(--text);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
}
.btn--ghost:hover { border-color: var(--line); }

.btn--white {
    background: #fff;
    color: #0b0b0b;
    border-color: #0b0b0b;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }

/* ---------- Card (neobrutalist) ------------------------------------------- */
.card {
    background: var(--panel);
    border: var(--border-brutal);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-brutal);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-hover);
}

.card--flat {
    box-shadow: none;
}
.card--flat:hover { transform: none; box-shadow: none; }

.card--dark {
    background: #0a0a0a;
    color: #f5f5f5;
    border-color: rgba(255,255,255,.12);
    box-shadow: none;
}

.card--ghost {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.1);
    box-shadow: none;
}
.card--ghost:hover { background: rgba(255,255,255,.07); transform: none; box-shadow: none; }

/* ---------- KPI card ------------------------------------------------------ */
.kpi { text-align: center; padding: 20px 16px; }
.kpi__val { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 900; line-height: 1.2; }
.kpi__label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Check list ---------------------------------------------------- */
.check-list { display: grid; gap: 10px; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}
.check-list li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e63946' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Stat card ----------------------------------------------------- */
.stat-card {
    background: var(--panel);
    border: var(--border-brutal);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-brutal-sm);
}
.stat-card__val { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 900; line-height: 1.1; }
.stat-card__label { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; }

/* ---------- Card icon (animated SVG) ------------------------------------- */
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.card-icon svg { width: 22px; height: 22px; }

.card-icon--sm { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 6px; }
.card-icon--sm svg { width: 20px; height: 20px; }

/* Stroke draw-in */
.card-icon svg path,
.card-icon svg circle,
.card-icon svg polyline,
.card-icon svg line,
.card-icon svg polygon,
.card-icon svg rect {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.8s cubic-bezier(.4,0,.2,1);
}
[data-reveal].is-visible .card-icon svg path,
[data-reveal].is-visible .card-icon svg circle,
[data-reveal].is-visible .card-icon svg polyline,
[data-reveal].is-visible .card-icon svg line,
[data-reveal].is-visible .card-icon svg polygon,
[data-reveal].is-visible .card-icon svg rect {
    stroke-dashoffset: 0;
}
.card-icon svg :nth-child(2) { transition-delay: 0.15s; }
.card-icon svg :nth-child(3) { transition-delay: 0.3s; }

/* Color variants */
.card-icon--red    { background: rgba(230,57,70,.10);  color: #e63946; }
.card-icon--blue   { background: rgba(67,97,238,.10);  color: #4361ee; }
.card-icon--orange { background: rgba(255,107,53,.10); color: #ff6b35; }
.card-icon--green  { background: rgba(45,212,191,.10); color: #2dd4bf; }
.card-icon--yellow { background: rgba(255,222,89,.12); color: #d4a900; }
.card-icon--purple { background: rgba(139,92,246,.10); color: #8b5cf6; }
.card-icon--ghost  { background: rgba(255,255,255,.08); color: #f87171; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    height: var(--nav-h);
    display: flex;
    align-items: center;
}

:root[data-theme="dark"] .site-header {
    background: rgba(10,10,10,.85);
}
@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] .site-header {
        background: rgba(10,10,10,.85);
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; gap: 5px; }
.logo__icon { height: 34px; width: auto; max-width: none; }
.logo__text { height: 26px; width: auto; max-width: none; }

:root[data-theme="dark"] .logo__text { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] .logo__text { filter: brightness(0) invert(1); }
}

/* Desktop nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-trigger {
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    color: var(--text);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-trigger:hover { background: var(--bg-alt); }
.nav-trigger .caret {
    width: 14px;
    height: 14px;
    opacity: .5;
    transition: transform 0.2s;
}
.nav-trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Theme toggle */
.theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    transition: background 0.15s;
}
.theme-btn:hover { background: var(--bg-alt); }
.theme-btn svg { width: 18px; height: 18px; }

/* Language switcher */
.lang-switch {
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--text);
    transition: background 0.15s;
}
.lang-switch:hover { background: var(--bg-alt); }

/* Login link */
.login-wrapper { position: relative; }

.login-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.login-link .caret { width: 14px; height: 14px; }
.login-link:hover { color: var(--text); }

.dropdown-panel--login {
    right: 0;
    left: auto;
    min-width: 280px;
}

/* ---------- Dropdown panels ---------------------------------------------- */
.dropdown-panel {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: 50%;
    transform: translateX(-50%) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 200;
    min-width: 520px;
    background: var(--panel);
    border: var(--border-brutal);
    border-radius: var(--radius);
    box-shadow: var(--shadow-brutal);
    padding: 20px;
}
.dropdown-panel[data-open="true"] {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg-alt); }

.dropdown-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dropdown-item__icon svg { width: 18px; height: 18px; }

/* Unique icon colors per dropdown item */
.dropdown-item:nth-child(1) .dropdown-item__icon { background: rgba(230,57,70,.10);  color: #e63946; }
.dropdown-item:nth-child(2) .dropdown-item__icon { background: rgba(67,97,238,.10);  color: #4361ee; }
.dropdown-item:nth-child(3) .dropdown-item__icon { background: rgba(255,107,53,.10); color: #ff6b35; }
.dropdown-item:nth-child(4) .dropdown-item__icon { background: rgba(45,212,191,.10); color: #2dd4bf; }
.dropdown-item:nth-child(5) .dropdown-item__icon { background: rgba(255,222,89,.12); color: #d4a900; }
.dropdown-item:nth-child(6) .dropdown-item__icon { background: rgba(139,92,246,.10); color: #8b5cf6; }

.dropdown-item__text { display: grid; gap: 2px; }
.dropdown-item__title { font-weight: 700; font-size: 0.9rem; }
.dropdown-item__desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.dropdown-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    text-align: right;
}
.dropdown-footer a {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dropdown-footer a svg { width: 14px; height: 14px; }

/* ---------- Mobile menu -------------------------------------------------- */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--bg);
    position: relative;
}

.hamburger__line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.25s, opacity 0.25s;
}
.hamburger__line:nth-child(1) { top: 13px; }
.hamburger__line:nth-child(2) { top: 19px; }
.hamburger__line:nth-child(3) { top: 25px; }

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 90;
    background: var(--bg);
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu[data-open="true"] { display: block; }

.mobile-section {
    border-bottom: 1px solid var(--line);
}

.mobile-section__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    background: none;
    border: none;
}
.mobile-section__trigger .caret {
    width: 16px;
    height: 16px;
    opacity: .5;
    transition: transform 0.25s;
}
.mobile-section__trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }

.mobile-section__body {
    display: none;
    padding-bottom: 16px;
}
.mobile-section__body[data-open="true"] { display: block; }

.mobile-link {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.mobile-link:hover { color: var(--text); }

.mobile-link--title {
    font-weight: 700;
    color: var(--text);
}

.mobile-actions {
    display: grid;
    gap: 12px;
    padding-top: 24px;
}

.mobile-utilities {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    margin-top: 20px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(56px, 9vw, 96px);
    padding-bottom: clamp(56px, 9vw, 96px);
}

.hero__blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .25;
}
.hero__blob--1 {
    width: 480px; height: 480px;
    background: var(--red);
    top: -15%; right: -5%;
    animation: blobFloat 8s ease-in-out infinite;
}
.hero__blob--2 {
    width: 360px; height: 360px;
    background: var(--orange);
    bottom: -10%; left: 5%;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

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

.hero__content { max-width: 720px; }

/* Hero rotating word */
.hero-rotate {
    display: inline-block;
    position: relative;
    color: var(--red);
    min-width: 200px;
}
.hero-rotate__word {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}
.hero-rotate__word.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
    overflow: hidden;
    border-top: var(--border-brutal);
    border-bottom: var(--border-brutal);
    background: var(--text);
    color: var(--bg);
    padding: 14px 0;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: inline-flex;
    animation: marqueeScroll 25s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.marquee-track span::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-right: 18px;
    background: currentColor;
    border-radius: 1px;
    transform: rotate(45deg);
    opacity: .3;
    flex-shrink: 0;
}

/* Hero chart line draw */
.hero-chart-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
[data-reveal].is-visible .hero-chart-line {
    animation: drawLine 1.5s ease forwards 0.3s;
}

/* ============================================================
   DARK SECTION (Pillars)
   ============================================================ */
.dark-section {
    background: #050505;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}
.dark-section__glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,57,70,.2), transparent 70%);
    top: -200px; right: -100px;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: var(--border-brutal);
    background: var(--bg);
    padding: clamp(48px, 7vw, 72px) 0 24px;
}
.site-footer .container { display: grid; gap: 40px; }

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand { display: grid; gap: 12px; }
.footer-brand .logo { gap: 5px; }
.footer-brand .logo__icon { height: 28px; }
.footer-brand .logo__text { height: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 320px; line-height: 1.6; }

.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col__title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { font-size: 0.9rem; color: var(--text); transition: color 0.15s; }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-bottom > span { flex: 1; }
.footer-bottom a { color: var(--text-muted); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--text); }
.footer-legal { display: flex; gap: 20px; flex: 1; justify-content: flex-end; }

.footer-utilities { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.footer-utilities .lang-switch {
    font-size: 0.75rem;
    height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    line-height: 1;
    border-radius: 6px;
}
.footer-utilities .theme-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.footer-utilities .theme-btn svg { width: 14px; height: 14px; }

/* ============================================================
   DEMO MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay[data-open="true"] {
    display: flex;
}

.modal-dialog {
    background: var(--panel);
    border: var(--border-brutal);
    border-radius: var(--radius);
    box-shadow: var(--shadow-brutal);
    padding: 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: background 0.15s;
}
.modal-close:hover { background: var(--bg-alt); }

.modal-dialog .field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.15s;
}
.modal-dialog .field:focus { outline: none; border-color: var(--red); }

/* ============================================================
   PAGE HERO (for detail pages — product, agency, consulting)
   ============================================================ */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 9vw, 96px) 0;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: -20%; right: -5%;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(230,57,70,.18), transparent 65%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-hero__metrics {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 32px;
}

/* ============================================================
   MODULE GRID (product page)
   ============================================================ */
.module-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.module-card {
    background: var(--panel);
    border: var(--border-brutal);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-brutal-sm);
    display: grid;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.module-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-hover);
}
.module-card h3 { font-size: 1.1rem; font-weight: 800; }
.module-card p { color: var(--text-muted); line-height: 1.6; }
.module-card ul { padding-left: 18px; color: var(--text-muted); display: grid; gap: 6px; font-size: 0.95rem; list-style: disc; }

/* ============================================================
   WORKFLOW (dark panel — product page)
   ============================================================ */
.workflow {
    background: #050505;
    color: #f8fafc;
    border-radius: 28px;
    padding: clamp(32px, 5vw, 48px);
    position: relative;
    overflow: hidden;
}
.workflow::before {
    content: '';
    position: absolute;
    top: -30%; right: -30%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(230,57,70,.25), transparent 70%);
    pointer-events: none;
}
.workflow .container { position: relative; z-index: 1; }

.workflow__grid { display: grid; gap: 32px; }

.workflow__steps {
    display: grid;
    gap: 18px;
}
.workflow__step {
    display: grid;
    gap: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 16px 18px;
}
.workflow__step-label { font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(248,250,252,.6); font-weight: 700; }
.workflow__step-title { font-size: 1.05rem; font-weight: 700; }
.workflow__step-desc { color: rgba(248,250,252,.7); line-height: 1.6; }

.workflow__aside { display: grid; gap: 16px; align-content: start; }
.workflow__aside-card {
    background: rgba(15,17,23,.9);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
}
.workflow__aside-card h3 { font-size: 1.1rem; font-weight: 800; }
.workflow__aside-card p { color: rgba(248,250,252,.7); line-height: 1.6; margin-top: 6px; }

/* ============================================================
   FEATURE GRID (analytics section)
   ============================================================ */
.feature-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
    border-radius: 20px;
    border: var(--border-brutal);
    background: var(--panel);
    padding: 28px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow-brutal-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-brutal-hover); }
.feature-card h3 { font-size: 1.1rem; font-weight: 800; }
.feature-card p { color: var(--text-muted); line-height: 1.6; }
.feature-card ul { padding-left: 18px; color: var(--text-muted); display: grid; gap: 6px; font-size: 0.95rem; list-style: disc; }

/* ============================================================
   CTA CARD
   ============================================================ */
.cta-card {
    background: linear-gradient(135deg, #e63946, #ff6b35, #e63946);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    border: var(--border-brutal);
    border-radius: var(--radius);
    padding: clamp(36px, 5vw, 56px);
    box-shadow: var(--shadow-brutal);
}
.cta-card .btn--white { border-color: #0b0b0b; }
.cta-card .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-card .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered grid reveals */
.grid > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.grid > [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.grid > [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 15px); }
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .6; transform: scale(1.08); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; transition-delay: 0s !important; }
    .marquee-track { animation: none; }
    .hero__blob { animation: none; }
    .dark-section__glow { animation: none; }
    .cta-card { animation: none; }
    .card-icon svg path, .card-icon svg circle, .card-icon svg polyline,
    .card-icon svg line, .card-icon svg polygon, .card-icon svg rect {
        stroke-dasharray: none; stroke-dashoffset: 0;
    }
    .hero-chart-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet landscape */
@media (max-width: 1024px) {
    .dropdown-panel { min-width: 420px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .page-hero__grid { grid-template-columns: 1fr; }
    .workflow__grid { grid-template-columns: 1fr; }
}

/* Tablet / mobile */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    .login-wrapper { display: none; }
    .dropdown-panel { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-utilities { justify-content: center; }
    .footer-legal { justify-content: center; }

    .hero__blob--1 { width: 300px; height: 300px; }
    .hero__blob--2 { width: 220px; height: 220px; }

    .page-hero__grid { grid-template-columns: 1fr; }
    .page-hero__metrics { grid-template-columns: 1fr 1fr; }

    .cta-card .grid-2 { grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 480px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .page-hero__metrics { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-page { padding-top: 40px; }

.legal-page__content {
    max-width: 760px;
    line-height: 1.8;
    color: var(--text);
}

.legal-page__content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-page__content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.legal-page__content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal-page__content ul,
.legal-page__content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.legal-page__content ul { list-style: disc; }
.legal-page__content ol { list-style: decimal; }

.legal-page__content li {
    margin-bottom: 0.35rem;
}

.legal-page__content a {
    color: var(--red);
    text-decoration: underline;
}

.legal-page__content a:hover {
    opacity: 0.8;
}

.legal-page__content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.25rem 0 1.5rem;
    border: 2px solid var(--text);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.92rem;
}

.legal-page__content thead {
    background-color: var(--text);
    color: var(--bg);
}

.legal-page__content th {
    padding: 0.75rem 1rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.02em;
}

.legal-page__content td {
    padding: 0.7rem 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
}

.legal-page__content tbody tr:first-child td {
    border-top: none;
}

.legal-page__content tbody tr:hover {
    background-color: var(--bg-alt);
}

.legal-page__content td:first-child {
    font-weight: 600;
    color: var(--text);
    font-family: 'Satoshi', monospace;
}

@media (max-width: 640px) {
    .legal-page__content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   CMP — Cookie Consent Banner & Modal
   ========================================================================== */

.cmp[hidden] {
    display: none !important;
}

html.cmp-centered-active,
body.cmp-centered-active {
    overflow: hidden;
}

.cmp {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    z-index: 2147483000;
    pointer-events: none;
    font-family: var(--font);
}

.cmp[data-cmp-position="centered"] {
    align-items: center;
    background-color: rgba(15, 23, 42, 0.55);
    pointer-events: auto;
}

.cmp[data-cmp-position="bottom"] {
    background-color: transparent;
}

.cmp__dialog {
    pointer-events: auto;
    background-color: var(--panel);
    color: var(--text);
    border-radius: 16px;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
    border: 1px solid var(--line);
    max-width: 32rem;
    width: min(100%, 32rem);
    display: grid;
    gap: 1.25rem;
}

.cmp[data-cmp-position="bottom"] .cmp__dialog {
    width: min(100%, 48rem);
    max-width: 48rem;
    border-radius: 20px 20px 0 0;
}

.cmp__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.cmp__message {
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cmp__policy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.cmp__policy-link {
    color: var(--text);
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.9rem;
}

.cmp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cmp__button {
    border: 2px solid var(--text);
    border-radius: var(--radius-btn);
    padding: 0.65rem 1.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background-color: var(--panel);
    color: var(--text);
}

.cmp__button:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-sm);
}

.cmp__button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.cmp__button:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.cmp__button--accept {
    background-color: var(--text);
    color: var(--bg);
}

.cmp__button--reject {
    background-color: var(--panel);
    color: var(--text);
}

.cmp__button--customize {
    background-color: transparent;
    border-style: dashed;
}

/* CMP Modal */

.cmp-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    z-index: 2147483001;
    font-family: var(--font);
}

.cmp-modal[hidden] {
    display: none !important;
}

.cmp-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
}

.cmp-modal__dialog {
    position: relative;
    background-color: var(--panel);
    color: var(--text);
    border-radius: var(--radius);
    border: var(--border-brutal);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    width: min(100%, 42rem);
    max-height: 90vh;
    overflow: hidden auto;
    box-shadow: var(--shadow-brutal);
    display: grid;
    gap: 1.5rem;
}

.cmp-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cmp-modal__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.cmp-modal__close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
}

.cmp-modal__intro {
    margin: 0;
    line-height: 1.6;
    color: var(--text-muted);
}

.cmp-modal__purposes {
    display: grid;
    gap: 1rem;
}

.cmp-purpose {
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: grid;
    gap: 0.6rem;
}

.cmp-purpose__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cmp-purpose__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.cmp-purpose__description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cmp-purpose__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    white-space: nowrap;
}

.cmp-purpose__toggle {
    appearance: none;
    width: 3rem;
    height: 1.5rem;
    border-radius: 999px;
    background-color: var(--line);
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cmp-purpose__toggle::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    left: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background-color: var(--panel);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.cmp-purpose__toggle:checked {
    background-color: var(--red);
}

.cmp-purpose__toggle:checked::after {
    transform: translateX(1.45rem);
}

.cmp-purpose__label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cmp-purpose__toggle:disabled {
    cursor: default;
    opacity: 0.6;
}

.cmp-purpose__toggle:disabled::after {
    box-shadow: none;
}

.cmp-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cmp-modal__button {
    border-radius: var(--radius-btn);
    border: 2px solid var(--text);
    padding: 0.65rem 1.5rem;
    background-color: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cmp-modal__button:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-sm);
}

.cmp-modal__button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.cmp-modal__button--primary {
    background-color: var(--text);
    color: var(--bg);
}

.cmp-modal__button:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .cmp__dialog {
        max-width: none;
        width: 100%;
    }

    .cmp-modal__dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}
