:root {
    --bg: #fdf7ef;
    --bg-soft: #f6e9d8;
    --surface: #fffaf2;
    --surface-strong: #f9efe0;
    --text: #3f2410;
    --muted: #7a5a3d;
    --primary: #b97828;
    --primary-strong: #8a5518;
    --accent: #dca753;
    --line: #e7d1b3;
    --shadow: 0 20px 40px rgba(84, 51, 19, 0.12);
    --page-gutter: clamp(0.75rem, 2.2vw, 1.5rem);
    --section-space-y: clamp(2.4rem, 5.2vw, 4.5rem);
    --block-gap: clamp(1rem, 2.4vw, 1.6rem);
    --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);
    --anim-fast: 180ms;
    --anim-base: 320ms;
    --anim-slow: 720ms;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --shadow-soft: 0 10px 26px rgba(84, 51, 19, 0.1);
}

:root.dark {
    --bg: #1a1109;
    --bg-soft: #22160d;
    --surface: #2c1c10;
    --surface-strong: #352215;
    --text: #f7e9d6;
    --muted: #d2baa0;
    --primary: #d89c49;
    --primary-strong: #b7772b;
    --accent: #efc06a;
    --line: #5c3f28;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

main [id] {
    scroll-margin-top: 88px;
}

body {
    font-family: "Cairo", sans-serif;
    background:
        radial-gradient(920px 520px at 80% -10%, rgba(185, 120, 40, 0.22), transparent 60%),
        radial-gradient(620px 420px at 10% 95%, rgba(106, 64, 24, 0.18), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(115, 71, 29, 0.035) 0.7px, transparent 0.7px);
    background-size: 3px 3px;
    opacity: 0.4;
    z-index: -1;
}

::selection {
    background: color-mix(in srgb, var(--primary) 32%, transparent);
    color: var(--text);
}

h1,
h2,
h3,
p,
dt,
dd,
a,
button {
    overflow-wrap: anywhere;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -50px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    z-index: 50;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(10px) saturate(1.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
    box-shadow: 0 12px 30px rgba(55, 34, 16, 0.2);
    border-bottom-color: color-mix(in srgb, var(--line) 100%, transparent);
}

.nav-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 0.75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    flex: 0 0 auto;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    box-shadow: 0 8px 20px rgba(90, 54, 20, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand-logo {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(90, 54, 20, 0.34);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: min(100%, 420px);
}

.brand-title {
    font-size: clamp(1.2rem, 2.6vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    color: var(--muted);
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 75%, transparent), color-mix(in srgb, var(--accent) 72%, transparent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--anim-fast) var(--ease-emphasis);
}

.nav-link:hover {
    border-color: var(--line);
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="true"]::after {
    transform: scaleX(1);
}

.nav-link.active,
.nav-link[aria-current="true"] {
    border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
    color: var(--primary-strong);
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}

:where(a, button, .btn):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 45%, white);
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    min-height: 48px;
    padding: 12px 20px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform var(--anim-fast) var(--ease-emphasis), box-shadow var(--anim-fast) ease, background-color var(--anim-fast) ease;
    text-align: center;
    line-height: 1.35;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 38%, white);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 10px 24px rgba(121, 74, 28, 0.34);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    right: -130%;
    width: 58%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-20deg);
    transition: right 0.5s ease;
}

.btn-primary:hover::after {
    right: 150%;
}

.btn-secondary {
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
    color: var(--text);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
}

.hero {
    padding: clamp(3.2rem, 6vw, 5rem) 0 var(--section-space-y);
}

.hero-inner {
    text-align: center;
    position: relative;
    max-width: 980px;
    margin-inline: auto;
}

.hero-logo {
    width: clamp(140px, 24vw, 210px);
    margin: 0 auto 18px;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    box-shadow: 0 20px 36px rgba(89, 53, 21, 0.25);
    animation: logo-float 5.8s ease-in-out infinite;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: dot-pulse 1.9s var(--ease-emphasis) infinite;
}

.hero h1 {
    margin: 24px 0 14px;
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    background: linear-gradient(160deg, color-mix(in srgb, var(--text) 86%, var(--primary-strong) 14%), var(--text));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0 auto;
    width: min(720px, 100%);
    color: var(--muted);
    font-size: clamp(1rem, 2.4vw, 1.17rem);
    text-wrap: pretty;
    line-height: 1.9;
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.owner-prompt {
    margin: clamp(1rem, 2.8vw, 1.6rem) auto 0;
    width: min(760px, 100%);
    background:
        radial-gradient(420px 140px at 85% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2.8vw, 1.4rem);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-align: center;
    backdrop-filter: blur(2px);
}

.owner-prompt-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    font-weight: 800;
}

.owner-prompt h2 {
    margin: 8px 0;
    font-size: clamp(1.05rem, 2.8vw, 1.45rem);
    line-height: 1.4;
    text-wrap: balance;
}

.owner-prompt p {
    margin: 0 auto;
    width: min(620px, 100%);
    color: var(--muted);
    font-size: 0.96rem;
}

.owner-prompt-points {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.owner-prompt-points li {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.owner-prompt-btn {
    margin-top: 12px;
    min-width: 180px;
}
.owner-prompt-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stats {
    margin-top: clamp(1.35rem, 3.5vw, 2.2rem);
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat-item {
    background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow);
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item dt {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 700;
}

.stat-item dd {
    margin: 6px 0 0;
    font-weight: 800;
    font-size: 0.98rem;
}

.section {
    padding: var(--section-space-y) 0;
    position: relative;
}

.section::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--line) 65%, transparent), transparent);
}

.section-head {
    text-align: center;
    margin-bottom: var(--block-gap);
}

.section-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.section-head h2 {
    margin: 10px 0;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.3;
    text-wrap: balance;
}

.section-head p {
    margin: 0 auto;
    width: min(720px, 100%);
    color: var(--muted);
    line-height: 1.9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    text-align: center;
    transition: transform var(--anim-base) var(--ease-emphasis), box-shadow var(--anim-base) ease, border-color var(--anim-base) ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset-inline: 18px;
    top: 0;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 56%, transparent), color-mix(in srgb, var(--accent) 64%, transparent));
    opacity: 0.5;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 32%, var(--line));
    box-shadow: 0 24px 44px rgba(84, 51, 19, 0.16);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: color-mix(in srgb, var(--primary) 14%, var(--surface));
    box-shadow: var(--shadow-soft);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.step {
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    text-align: center;
    transition: transform var(--anim-base) var(--ease-emphasis), border-color var(--anim-base) ease;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 58%, transparent), transparent);
}

.step:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
}

.step-index {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.cta-strip {
    margin: clamp(0.9rem, 2.6vw, 1.5rem) auto clamp(2rem, 6vw, 5rem);
    width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
    border-radius: 32px;
    border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
    background:
        radial-gradient(620px 220px at 20% 10%, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(135deg, #8f561e, #4a2d17);
    color: #fff8ed;
    padding: 38px 20px;
    text-align: center;
    box-shadow: 0 24px 42px rgba(45, 27, 14, 0.34);
}

.cta-strip p {
    color: #f2dcc0;
    margin: 10px auto 0;
    width: min(620px, 100%);
}

.cta-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.app-download-actions .btn {
    min-width: 210px;
    font-size: 0.96rem;
    white-space: normal;
}

.download-note {
    margin-top: 14px;
    font-size: 0.84rem;
    color: #f6e3c8;
}

.final-note {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.final-note .section-head {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    padding: clamp(1.2rem, 3.2vw, 2.1rem);
}

.site-footer {
    margin-top: clamp(0.65rem, 2vw, 1rem);
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 40%, transparent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    padding: 34px 0 22px;
}

.footer-title {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2.8vw, 1.6rem);
}

.footer-text {
    margin: 0;
    color: var(--muted);
    max-width: 38ch;
}

.footer-col h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
    letter-spacing: 0.01em;
}

.footer-bottom {
    border-top: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
    background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
}

.footer-bottom-row {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.floating-back-to-top {
    position: fixed;
    left: clamp(10px, 2.2vw, 20px);
    bottom: clamp(14px, 3.2vw, 24px);
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 16px 34px rgba(77, 47, 21, 0.34);
    border: 1px solid color-mix(in srgb, var(--primary-strong) 72%, #000 8%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: opacity var(--anim-fast) ease, transform var(--anim-fast) var(--ease-emphasis), visibility var(--anim-fast) ease;
    z-index: 45;
}

.floating-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-back-to-top:hover {
    transform: translateY(-2px) scale(1.02);
}

@media (min-width: 1320px) {
    :root {
        --page-gutter: 2rem;
    }

    .container {
        width: min(1200px, calc(100vw - 4rem));
    }

    .hero {
        padding-top: clamp(4.5rem, 7vw, 6rem);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(4px);
    transition: opacity var(--anim-slow) var(--ease-emphasis), transform var(--anim-slow) var(--ease-emphasis), filter var(--anim-slow) ease;
    will-change: opacity, transform, filter;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@keyframes logo-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes dot-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    55% {
        transform: scale(1.28);
        opacity: 0.72;
    }
}

@media (max-width: 980px) {
    .nav-row {
        align-items: stretch;
    }

    .brand {
        flex: 1 1 100%;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-actions .nav-link,
    .nav-actions .btn {
        flex: 1 1 160px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero p,
    .section-head p,
    .cta-strip p {
        width: min(680px, 100%);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: static;
        top: auto;
    }

    main [id] {
        scroll-margin-top: 16px;
    }

    .nav-row {
        min-height: auto;
        gap: 12px;
        padding-block: 0.6rem;
    }

    .brand {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-sub {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-actions {
        display: grid;
        grid-template-columns: 42px 1fr 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .nav-actions .theme-toggle {
        width: 100%;
        height: 100%;
    }

    .nav-actions .nav-link,
    .nav-actions .btn {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-logo {
        width: 124px;
        margin-bottom: 12px;
    }

    .hero h1 {
        margin-top: 16px;
        font-size: clamp(1.9rem, 7vw, 3rem);
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 1.85;
    }

    .hero-cta,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .owner-prompt {
        border-radius: var(--radius-md);
        padding: 14px 12px;
    }

    .owner-prompt-btn {
        width: 100%;
    }

    .owner-prompt-points {
        gap: 6px;
    }

    .owner-prompt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .owner-prompt-actions .btn {
        width: 100%;
    }

    .app-download-actions .btn {
        min-width: 0;
    }

    .stats,
    .feature-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .section-head {
        margin-bottom: clamp(0.95rem, 3.2vw, 1.35rem);
    }

    .section-head p {
        font-size: 0.98rem;
        line-height: 1.85;
    }

    .feature-card,
    .step,
    .stat-item {
        border-radius: 18px;
        padding: 16px 14px;
    }

    .cta-strip {
        margin: clamp(0.8rem, 2.8vw, 1.15rem) auto clamp(1.4rem, 4.4vw, 2.75rem);
        padding: 24px 14px;
        border-radius: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 26px 0 14px;
    }

    .footer-bottom-row {
        min-height: auto;
        padding: 12px 0;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --page-gutter: clamp(0.75rem, 3.8vw, 1rem);
    }

    .container {
        width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .hero-logo {
        width: 112px;
        border-radius: 18px;
    }

    .hero {
        padding-top: 36px;
    }

    .hero-cta,
    .cta-actions,
    .nav-actions {
        width: 100%;
    }

    .hero-cta .btn,
    .cta-actions .btn,
    .nav-actions .nav-link,
    .nav-actions .btn {
        width: 100%;
        flex: 1 1 100%;
    }

    .nav-actions {
        grid-template-columns: 42px 1fr 1fr;
    }

    .nav-actions .btn-primary {
        grid-column: 1 / -1;
    }

    .nav-link,
    .btn {
        padding-inline: 16px;
    }

    .hero-logo {
        margin-bottom: 14px;
    }

    .badge {
        max-width: 100%;
        justify-content: center;
    }

    .hero h1 {
        margin-top: 14px;
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero p {
        font-size: 0.95rem;
    }

    .stat-item,
    .feature-card,
    .step {
        padding: 16px 14px;
    }

    .cta-strip {
        border-radius: 24px;
        padding: 22px 14px;
    }

    .badge {
        padding: 7px 12px;
        font-size: 0.74rem;
    }
}

@media (max-width: 420px) {
    :root {
        --page-gutter: clamp(0.65rem, 4vw, 0.85rem);
    }

    .container {
        width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
    }

    .brand-title {
        font-size: 1.02rem;
    }

    .brand-sub {
        display: none;
    }

    .nav-row {
        min-height: auto;
        padding-block: 0.6rem;
    }

    .nav-actions {
        grid-template-columns: 38px 1fr 1fr;
    }

    .nav-actions .btn-primary {
        grid-column: 1 / -1;
    }

    .theme-toggle {
        height: 38px;
        border-radius: 11px;
        font-size: 0.95rem;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-logo {
        width: 104px;
        border-radius: 16px;
    }

    .skip-link {
        right: 12px;
        left: 12px;
        text-align: center;
    }

    .section-head h2 {
        font-size: 1.45rem;
    }

    .hero h1 {
        font-size: 1.82rem;
    }

    .nav-link,
    .btn {
        min-height: 44px;
        padding-top: 11px;
        padding-bottom: 11px;
        border-radius: 14px;
    }

    .owner-prompt h2 {
        font-size: 1rem;
    }

    .owner-prompt p {
        font-size: 0.9rem;
    }

    .floating-back-to-top {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        left: 10px;
        bottom: 12px;
    }
}

@media (max-width: 360px) {
    :root {
        --page-gutter: clamp(0.6rem, 4.2vw, 0.8rem);
    }

    .container {
        width: min(1120px, calc(100vw - (var(--page-gutter) * 2)));
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section-head h2 {
        font-size: 1.28rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .brand-sub {
        display: none;
    }

    .cta-strip {
        border-radius: 20px;
        padding: 18px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .feature-card,
    .step,
    .btn {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }

    .floating-back-to-top {
        transition: none !important;
    }

    .btn-primary::after {
        display: none;
    }

    .hero-logo,
    .badge-dot {
        animation: none !important;
    }
}

@media (hover: none) {
    .feature-card:hover,
    .step:hover,
    .btn:hover {
        transform: none;
    }
}