@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2-variations'),
         url('../fonts/Vazirmatn-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

:root {
    /* کندس — ازگیل؛ هم‌خوان با app.css */
    --medlar-cream: #f7f0e4;
    --medlar-caramel: #c9a06d;
    --medlar-gold: #b8865b;
    --medlar-gold-bright: #d4a574;
    --medlar-russet: #8f6042;
    --medlar-sage: #6f8662;
    --medlar-night: #1a1612;
    --medlar-night-2: #242019;
    --medlar-accent-rgb: 184, 134, 91;
    --medlar-sage-rgb: 111, 134, 98;
    --medlar-ink-rgb: 44, 36, 28;
    --on-accent: #1f1814;

    --bg: var(--medlar-night);
    --bg-2: var(--medlar-night-2);
    --surface: rgba(247, 240, 228, 0.045);
    --surface-strong: rgba(247, 240, 228, 0.08);
    --border: rgba(235, 228, 217, 0.1);
    --border-strong: rgba(235, 228, 217, 0.16);
    --text: #ebe4d9;
    --muted: #a89f92;
    --accent: var(--medlar-gold);
    --accent-2: var(--medlar-sage);
    --accent-3: var(--medlar-caramel);
    --danger: #c45c4a;
    --shadow-lg: 0 24px 80px rgba(26, 22, 18, 0.38);
    --shadow-cta: 0 16px 40px rgba(var(--medlar-accent-rgb), 0.16);
    --shadow-cta-hover: 0 22px 50px rgba(var(--medlar-accent-rgb), 0.22);
    --glow-accent-soft: 0 0 14px rgba(var(--medlar-accent-rgb), 0.28);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
    --header-h: 72px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
    scrollbar-color: rgba(var(--medlar-accent-rgb), 0.5) rgba(247, 240, 228, 0.05);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-3));
    border: 3px solid var(--bg);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

::selection {
    background: rgba(var(--medlar-accent-rgb), 0.22);
    color: #ffffff;
    text-shadow: none;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: radial-gradient(circle at 12% -10%, rgba(var(--medlar-accent-rgb), 0.08), transparent 42%),
                radial-gradient(circle at 100% 5%, rgba(var(--medlar-sage-rgb), 0.06), transparent 46%),
                radial-gradient(circle at 50% 100%, rgba(var(--medlar-accent-rgb), 0.05), transparent 48%),
                var(--bg);
    color: var(--text);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

button,
.btn,
a.btn {
    touch-action: manipulation;
}

@media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    textarea,
    select {
        font-size: max(16px, 1rem);
    }
}

img {
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent-3);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    inset-block-start: -100px;
    inset-inline-start: 12px;
    background: var(--accent);
    color: var(--on-accent);
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 100;
    font-weight: 700;
}

.skip-link:focus {
    inset-block-start: 12px;
}

.container {
    width: min(var(--container), 100% - 36px);
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--glow-accent-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn--primary {
    background: linear-gradient(155deg, var(--medlar-russet), var(--medlar-gold));
    color: var(--on-accent);
    box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(155deg, var(--medlar-gold), var(--medlar-gold-bright));
    box-shadow: var(--shadow-cta-hover);
}

.btn--ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn--ghost:hover { background: var(--surface-strong); transform: translateY(-1px); }

.btn--lg { padding: 14px 26px; font-size: 1rem; }

.back-to-top {
    position: fixed;
    inset-inline-end: 22px;
    inset-block-end: 22px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(var(--medlar-accent-rgb), 0.22), rgba(var(--medlar-accent-rgb), 0.18));
    color: var(--text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    visibility: hidden;
    z-index: 60;
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.back-to-top:hover {
    border-color: rgba(var(--medlar-accent-rgb), 0.5);
    transform: translateY(-2px) scale(1);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

.glass {
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: var(--shadow-lg);
}

/* Scene & background */
.landing-scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.34;
}

.orb--one { width: 520px; height: 520px; background: var(--medlar-gold); top: -160px; right: -120px; }
.orb--two { width: 460px; height: 460px; background: var(--medlar-russet); bottom: -120px; left: -100px; opacity: 0.28; }
.orb--three { width: 360px; height: 360px; background: var(--medlar-sage); top: 40%; left: 35%; opacity: 0.18; }

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    opacity: 0.5;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    background: rgba(6, 9, 20, 0.55);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(6, 9, 20, 0.82);
    border-bottom-color: var(--border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

/* Scroll progress indicator along the header bottom edge */
.scroll-progress {
    position: absolute;
    inset-block-end: -1.5px;
    inset-inline-start: 0;
    z-index: 3;
    height: 3px;
    width: 100%;
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: right center;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--medlar-gold));
    box-shadow: 0 0 14px rgba(var(--medlar-accent-rgb), 0.75);
    border-start-start-radius: 3px;
    border-end-start-radius: 3px;
    pointer-events: none;
}

.site-header.is-menu-open {
    background: rgba(6, 9, 20, 0.92);
    border-bottom-color: var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand {
    position: relative;
}

.brand__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 10px 24px rgba(var(--medlar-accent-rgb), 0.32);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 0.3s ease;
}

.brand:hover .brand__mark {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 12px 30px rgba(var(--medlar-accent-rgb), 0.5);
}

/* sheen sweep across the logo on hover */
.brand__mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.brand:hover .brand__mark::after {
    transform: translateX(120%);
}

.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__name {
    background: linear-gradient(120deg, #f7f0e4, var(--medlar-caramel));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.primary-nav {
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.primary-nav a {
    position: relative;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.18s, background 0.18s, transform 0.18s;
}

.primary-nav a:hover {
    color: var(--text);
    background: var(--surface);
    transform: translateY(-1px);
}

/* Active section (scrollspy) */
.primary-nav a.is-current {
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px rgba(var(--medlar-accent-rgb), 0.3);
}

.primary-nav a.is-current:hover {
    color: var(--on-accent);
    transform: none;
}

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

.mobile-nav-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    color: var(--text);
    padding: 0;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mobile-nav-toggle span {
    position: absolute;
    inset-inline: 10px;
    top: 50%;
    height: 2px;
    background: currentColor;
    border-radius: 4px;
    transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav-toggle:hover {
    border-color: rgba(var(--medlar-accent-rgb), 0.45);
    transform: translateY(-1px);
}

.mobile-nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.mobile-nav-toggle span:nth-child(3) { transform: translateY(7px); }
.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    padding: 10px 0 18px;
    background: linear-gradient(180deg, rgba(6, 9, 20, 0.96), rgba(6, 9, 20, 0.76) 70%, transparent);
    z-index: 49;
}

.mobile-nav .container {
    position: relative;
}

.mobile-nav__panel {
    max-height: calc(100svh - var(--header-h) - 24px);
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    animation: mobileMenuIn 0.22s ease both;
}

.mobile-nav__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 14px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav__logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(var(--medlar-accent-rgb), 0.18);
}

.mobile-nav__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-nav__head strong,
.mobile-nav__links span,
.mobile-nav__cta span {
    display: block;
    font-weight: 800;
}

.mobile-nav__head small,
.mobile-nav__links small,
.mobile-nav__cta small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.8;
}

.mobile-nav__links {
    display: grid;
    gap: 8px;
    padding: 12px 0;
}

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(var(--medlar-accent-rgb), 0.35);
    transform: translateX(-2px);
}

.mobile-nav__cta {
    display: block;
    color: var(--on-accent);
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    box-shadow: 0 16px 34px rgba(var(--medlar-accent-rgb), 0.24);
}

.mobile-nav__cta small {
    color: rgba(5, 19, 16, 0.72);
}

@keyframes mobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero */
.hero {
    padding: clamp(40px, 8vw, 96px) 0 clamp(60px, 10vw, 120px);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.hero__title {
    margin: 18px 0 16px;
    font-size: clamp(2.1rem, 5.2vw, 3.6rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.hero__title-accent {
    display: block;
    background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    max-width: 56ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.hero__perks {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero__perks span {
    color: var(--accent);
    margin-inline-end: 4px;
    font-weight: 800;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 480px;
}

.hero__stats div {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
}

.hero__stats strong {
    display: block;
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 800;
}

.hero__stats span {
    color: var(--muted);
    font-size: 0.78rem;
}

/* Hero visual */
.hero__visual {
    position: relative;
    min-height: 460px;
}

.chat-card {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.chat-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.chat-card__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.chat-card__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.chat-card__chip {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(var(--medlar-accent-rgb), 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(var(--medlar-accent-rgb), 0.28);
}

.chat-card__body {
    padding: 18px;
    display: grid;
    gap: 12px;
    min-height: 260px;
}

.bubble {
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.8;
    border: 1px solid var(--border);
    background: var(--surface);
    max-width: 92%;
}

.bubble--user {
    margin-inline-start: auto;
    background: linear-gradient(135deg, rgba(var(--medlar-accent-rgb), 0.22), rgba(var(--medlar-accent-rgb), 0.12));
    border-color: rgba(var(--medlar-accent-rgb), 0.35);
}

.bubble--ai {
    background: rgba(255, 255, 255, 0.06);
}

.bubble p { margin: 0; }

.bubble__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.74rem;
}

.bubble__tag {
    color: var(--accent-2);
    background: rgba(var(--medlar-sage-rgb), 0.1);
    border: 1px solid rgba(var(--medlar-sage-rgb), 0.28);
    padding: 2px 8px;
    border-radius: 999px;
}

.typing {
    display: inline-flex;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    width: max-content;
}

.typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    animation: typing 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-card__foot {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.composer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}

.composer__hint { flex: 1; }

.composer__send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--on-accent);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.composer__send svg { width: 16px; height: 16px; }

.hero__chip {
    position: absolute;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    text-align: start;
    min-width: 180px;
}

.hero__chip strong { display: block; font-weight: 800; }
.hero__chip span { color: var(--muted); font-size: 0.82rem; }

.hero__chip--top { top: -22px; inset-inline-end: -28px; }
.hero__chip--bottom { bottom: -28px; inset-inline-start: -32px; }

/* ===== Hero parallax ===== */
/* Pointer-driven depth/tilt — enabled by JS via [data-parallax-ready] */
.hero[data-parallax-ready] .chat-card {
    transform:
        perspective(1100px)
        rotateY(calc(var(--prx, 0) * -3.5deg))
        rotateX(calc(var(--pry, 0) * 3.5deg))
        translate3d(calc(var(--prx, 0) * 6px), calc(var(--pry, 0) * 6px), 0);
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.hero[data-parallax-ready] .hero__chip {
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.hero[data-parallax-ready] .hero__chip--top {
    transform: translate3d(calc(var(--prx, 0) * 26px), calc(var(--pry, 0) * 20px), 0);
}

.hero[data-parallax-ready] .hero__chip--bottom {
    transform: translate3d(calc(var(--prx, 0) * -30px), calc(var(--pry, 0) * -22px), 0);
}

.hero[data-parallax-ready] .hero__content {
    transform: translate3d(calc(var(--prx, 0) * 7px), calc(var(--pry, 0) * 5px), 0);
    transition: transform 0.4s ease-out;
}

/* Scroll-driven drift for background orbs */
.orb { will-change: transform; }
.orb--one   { transform: translateY(calc(var(--scy, 0) * 0.12px)); }
.orb--two   { transform: translateY(calc(var(--scy, 0) * -0.09px)); }
.orb--three { transform: translateY(calc(var(--scy, 0) * 0.06px)); }

.hero__partners {
    margin-top: clamp(40px, 6vw, 64px);
    padding-block: 22px;
    border-block: 1px solid var(--border);
    background: var(--surface);
}

.hero__partners .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 0.85rem;
}

.hero__partners ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    flex: 1;
}

.hero__partners li {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Sections */
.section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.section--alt {
    background: linear-gradient(180deg, transparent, var(--surface) 30%, var(--surface) 70%, transparent);
}

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(28px, 5vw, 48px);
}

.section__head--start {
    text-align: start;
    margin-inline: 0;
}

.section__head h2 {
    margin: 14px 0 12px;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -0.025em;
    font-weight: 800;
}

.section__head p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.96rem, 1.6vw, 1.05rem);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.feature {
    padding: 22px;
    border-radius: var(--radius-md);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(var(--medlar-accent-rgb), 0.2), rgba(var(--medlar-accent-rgb), 0.16));
    border: 1px solid var(--border-strong);
    color: var(--accent-2);
}

.feature__icon svg { width: 24px; height: 24px; }

.feature h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Steps */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step {
    padding: 24px;
    border-radius: var(--radius-md);
    position: relative;
}

.step__num {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: var(--on-accent);
    font-weight: 900;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Keys economy */
.keys-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.key-card {
    padding: 24px;
    border-radius: var(--radius-md);
}

.key-card__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(184, 134, 91, 0.16);
    color: var(--accent-2, #e8c89a);
    border: 1px solid rgba(184, 134, 91, 0.28);
}

.key-card__badge--master {
    background: rgba(201, 160, 109, 0.2);
    color: #f5d9a8;
    border-color: rgba(201, 160, 109, 0.38);
}

.key-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.key-card > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.key-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.key-card__list li::before {
    content: "✓";
    margin-left: 8px;
    color: var(--accent);
    font-weight: 700;
}

.keys-perks {
    margin: 0;
    padding: 18px 20px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
    color: var(--muted);
}

.keys-perks strong {
    color: var(--text);
}

/* Personas */
.persona-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.persona-filter {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}

.persona-filter:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.persona-filter.is-active {
    color: var(--on-accent);
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 26px rgba(var(--medlar-accent-rgb), 0.28);
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* isotope-style filtering animation */
.persona.is-filtering {
    opacity: 0;
    transform: scale(0.86) translateY(10px);
}

.persona.is-removed {
    display: none;
}

.persona {
    padding: 22px;
    border-radius: var(--radius-md);
    text-align: start;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease,
        border-color 0.18s ease;
}

.persona::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #fff) 35%, transparent), transparent 55%);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.persona > * { position: relative; z-index: 1; }

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

.persona__icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent, #fff) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, #fff) 40%, transparent);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.persona h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.persona p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.persona--pro { border-color: rgba(var(--medlar-accent-rgb), 0.4); }

.persona__badge {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 20px rgba(var(--medlar-accent-rgb), 0.3);
}

.personas-note {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pricing-grid--four .plan { padding: 22px; }

.pricing-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 22px;
    padding: 12px 18px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(var(--medlar-accent-rgb), 0.4);
    background: linear-gradient(135deg, rgba(var(--medlar-accent-rgb), 0.18), rgba(var(--medlar-accent-rgb), 0.06));
    color: var(--text);
    font-weight: 800;
    font-size: 0.92rem;
    text-align: center;
}

.plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.plan__price del {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.8;
}

.plan {
    padding: 28px;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 16px;
    position: relative;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.plan--featured {
    border-color: rgba(var(--medlar-accent-rgb), 0.42);
    box-shadow: 0 30px 70px rgba(var(--medlar-accent-rgb), 0.16);
    background: linear-gradient(160deg, rgba(var(--medlar-accent-rgb), 0.16), rgba(var(--medlar-accent-rgb), 0.06)), var(--surface);
}

.plan__ribbon {
    position: absolute;
    inset-block-start: -12px;
    inset-inline-end: 18px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--on-accent);
    font-size: 0.74rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(var(--medlar-accent-rgb), 0.32);
}

.plan__tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent-2);
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid var(--border);
}

.plan__head h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.plan__head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.plan__price strong {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.plan__price span {
    margin-inline-start: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.plan__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.plan__list li {
    padding-inline-start: 22px;
    position: relative;
    color: var(--text);
    font-size: 0.92rem;
}

.plan__list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.plan .btn { justify-self: stretch; }

.pricing-note {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* FAQ */
.faq-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.faq {
    display: grid;
    gap: 12px;
}

.faq__item {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.2s, border-color 0.2s;
}

.faq__item[open] {
    border-color: rgba(var(--medlar-sage-rgb), 0.42);
    background: linear-gradient(140deg, rgba(var(--medlar-sage-rgb), 0.1), var(--surface));
}

.faq__item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: "+";
    color: var(--accent-2);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s;
}

.faq__item[open] summary::after { content: "−"; }

.faq__item p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

/* CTA */
.cta {
    padding: 0 0 clamp(56px, 8vw, 96px);
}

.cta__inner {
    padding: clamp(28px, 5vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 24px;
    align-items: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--medlar-accent-rgb), 0.14), rgba(var(--medlar-accent-rgb), 0.1)), var(--surface);
    border: 1px solid rgba(var(--medlar-accent-rgb), 0.32);
}

.cta__inner h2 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: -0.025em;
}

.cta__inner p { margin: 0; color: var(--muted); }

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Footer */
.site-footer {
    padding: 0 0 clamp(22px, 4vw, 34px);
}

.site-footer__box {
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 8% 0%, rgba(var(--medlar-accent-rgb), 0.12), transparent 34%),
        linear-gradient(145deg, var(--surface-strong), var(--surface));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

/* Creative bento footer grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "brand brand brand cta"
        "plat  start trust contact";
    gap: 12px;
}

.footer-cell {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-cell:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        radial-gradient(circle at 8% 0%, rgba(var(--medlar-accent-rgb), 0.14), transparent 42%),
        rgba(255, 255, 255, 0.03);
}

.footer-brand .brand { flex: 0 0 auto; }

.footer-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.85;
    max-width: 52ch;
}

.footer-brand__tags {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-brand__tags li {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text);
    background: var(--surface-strong);
    border: 1px solid var(--border);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-col__title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--accent-2);
}

.footer-col a {
    padding: 6px 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    width: fit-content;
    transition: color 0.16s, transform 0.16s;
}

.footer-col a:hover {
    color: var(--text);
    transform: translateX(-4px);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    border-color: rgba(var(--medlar-accent-rgb), 0.4);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--medlar-accent-rgb), 0.22), transparent 55%),
        linear-gradient(160deg, rgba(var(--medlar-accent-rgb), 0.14), rgba(var(--medlar-accent-rgb), 0.04));
}

.footer-cta__eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--accent-2);
}

.footer-cta__title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text);
}

.footer-cta__text {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.footer-cta .btn { justify-self: start; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.7;
    transition: color 0.16s;
}

a.footer-contact__item:hover {
    color: var(--text);
}

.footer-contact__icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--accent-2);
}

.footer-contact__text {
    min-width: 0;
    word-break: break-word;
}

.footer-contact__item--addr {
    align-items: flex-start;
}

.footer-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.footer-trust__label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.site-footer__bottom {
    position: relative;
    margin-top: 16px;
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    color: var(--muted);
    font-size: 0.78rem;
}

/* Animated gradient hairline instead of a flat border */
.site-footer__bottom::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--medlar-accent-rgb), 0.55) 20%,
        rgba(var(--medlar-sage-rgb, var(--medlar-accent-rgb)), 0.45) 50%,
        rgba(var(--medlar-accent-rgb), 0.55) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: footerHairline 6s linear infinite;
    opacity: 0.7;
}

@keyframes footerHairline {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Live status pill */
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(110, 134, 98, 0.4);
    background: rgba(110, 134, 98, 0.12);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
}

.footer-status__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5fd08a;
    box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.55);
    animation: footerStatusPulse 2s ease-out infinite;
}

@keyframes footerStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(95, 208, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(95, 208, 138, 0); }
}

/* Company credit chip */
.footer-company {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    transition: color 0.18s, border-color 0.18s, transform 0.18s, background 0.18s;
}

.footer-company:hover {
    color: var(--text);
    border-color: rgba(var(--medlar-accent-rgb), 0.4);
    background: rgba(var(--medlar-accent-rgb), 0.1);
    transform: translateY(-1px);
}

.footer-company__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.footer-company svg {
    opacity: 0.8;
    transition: transform 0.18s;
}

.footer-company:hover svg {
    transform: translate(-2px, -2px);
}

.footer-meta__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-strong);
}

.footer-bottom__top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    transition: color 0.18s, border-color 0.18s, transform 0.18s;
}

.footer-bottom__top-link:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    min-width: 0;
}

.site-footer__enamad {
    display: inline-flex;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.site-footer__enamad:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--medlar-accent-rgb), 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.site-footer__enamad:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-footer__enamad img {
    display: block;
    width: auto;
    height: 72px;
    max-width: min(120px, 28vw);
    cursor: pointer;
    object-fit: contain;
}

/* Custom cursor (pointer:fine only) */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: transform;
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring {
    opacity: 1;
}

.cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(var(--medlar-accent-rgb), 0.7);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(var(--medlar-accent-rgb), 0.55);
    background: rgba(var(--medlar-accent-rgb), 0.04);
    transition:
        width 0.22s ease,
        height 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        opacity 0.25s ease;
}

.cursor-ring.is-hover {
    width: 56px;
    height: 56px;
    background: rgba(var(--medlar-accent-rgb), 0.1);
    border-color: rgba(var(--medlar-accent-rgb), 0.8);
}

.cursor-ring.is-down {
    width: 26px;
    height: 26px;
    background: rgba(var(--medlar-accent-rgb), 0.18);
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .persona-filter,
body.has-custom-cursor summary {
    cursor: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .primary-nav { display: none; }
    .mobile-nav-toggle { display: grid; place-items: center; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { min-height: auto; }
    .hero__chip { position: static; display: inline-flex; flex-direction: column; align-items: flex-start; margin-top: 16px; }
    .faq-wrap { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; }
    .keys-grid { grid-template-columns: 1fr; }
    .keys-perks { grid-template-columns: 1fr; }
    .cta__inner { grid-template-columns: 1fr; text-align: start; }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "brand   brand"
            "plat    start"
            "trust   trust"
            "cta     cta"
            "contact contact";
    }
}

@media (max-width: 640px) {
    .header-actions .btn { display: none; }
    .header-actions .btn--primary { display: inline-flex; padding: 9px 14px; font-size: 0.85rem; }
    .hero__stats { grid-template-columns: 1fr 1fr; }
    .pricing-grid--four { grid-template-columns: 1fr; }
    .back-to-top {
        inset-inline-end: 14px;
        inset-block-end: 14px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    .site-footer__box { padding: 14px; border-radius: 22px; }
    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "plat"
            "start"
            "trust"
            "cta"
            "contact";
    }
    .footer-cell { padding: 16px; }
    .site-footer__bottom {
        justify-content: center;
        text-align: center;
    }
    .hero__chip { min-width: 0; width: 100%; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001s !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
