:root {
    --bg: #f5efe6;
    --bg-strong: #e8dccb;
    --surface: rgba(255, 252, 246, 0.82);
    --surface-strong: #fffaf2;
    --text: #1c1a18;
    --muted: #675f57;
    --line: rgba(28, 26, 24, 0.1);
    --accent: #d9662b;
    --accent-dark: #8d3712;
    --accent-soft: #f5c8a9;
    --shadow: 0 24px 60px rgba(80, 48, 25, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(217, 102, 43, 0.18), transparent 26%),
        radial-gradient(circle at right 20%, rgba(63, 112, 84, 0.18), transparent 24%),
        linear-gradient(180deg, #fbf5ec 0%, #f3eadb 100%);
}

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

img {
    max-width: 100%;
    display: block;
}

.site-shell {
    min-height: 100vh;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.narrow {
    width: min(calc(100% - 32px), 860px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(251, 245, 236, 0.74);
    border-bottom: 1px solid rgba(28, 26, 24, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffb37b 100%);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong,
.hero h1,
.section-heading h2,
.page-hero h1,
.hero-card h2,
.about-grid h2,
.legal-card h2 {
    font-family: "Space Grotesk", sans-serif;
}

.brand-copy small,
.footer-text,
.hero-text,
.feature-card p,
.about-copy p,
.legal-card p,
.legal-card li {
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    background: rgba(217, 102, 43, 0.12);
    color: var(--accent-dark);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(28, 26, 24, 0.06);
    padding: 12px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero,
.page-hero {
    padding: 88px 0 44px;
}

.hero-grid,
.about-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(217, 102, 43, 0.18);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.6);
    color: var(--accent-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero h1,
.page-hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-text,
.page-hero p,
.about-copy p,
.feature-card p,
.legal-card p,
.legal-card li {
    font-size: 1.02rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ec8f56 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.button-secondary {
    border: 1px solid rgba(28, 26, 24, 0.12);
    background: rgba(255, 252, 246, 0.65);
}

.hero-card,
.feature-card,
.legal-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px;
}

.phone-frame {
    width: min(100%, 360px);
    margin: 0 auto;
    padding: 16px;
    border-radius: 38px;
    background: linear-gradient(180deg, #26211d 0%, #0f0d0c 100%);
}

.phone-screen {
    min-height: 520px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 195, 145, 0.3), transparent 28%),
        linear-gradient(180deg, #1f3027 0%, #111916 100%);
    color: #f7efe3;
}

.screen-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-card h2 {
    margin: 18px 0 20px;
    font-size: 1.95rem;
    line-height: 1.1;
}

.screen-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.section {
    padding: 44px 0 56px;
}

.section-accent {
    padding-bottom: 88px;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h2,
.about-grid h2 {
    margin: 16px 0 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card,
.legal-card {
    padding: 28px;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.about-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding: 36px;
    background: linear-gradient(135deg, rgba(255, 250, 242, 0.68), rgba(232, 220, 203, 0.9));
    border: 1px solid rgba(28, 26, 24, 0.08);
    border-radius: var(--radius-lg);
}

.page-hero-compact {
    padding-bottom: 16px;
}

.legal-card h2 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.legal-list {
    margin: 0;
    padding-left: 20px;
}

.apps-list {
    display: grid;
    gap: 18px;
}

.app-row-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.app-row-icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffb37b 100%);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.app-row-label {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.app-row-content h2 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.7rem;
    line-height: 1.08;
}

.app-row-content p:last-child {
    margin: 0;
    color: var(--muted);
}

.app-row-actions {
    display: flex;
    justify-content: flex-end;
}

.site-footer {
    padding: 24px 0 44px;
}

.footer-grid,
.footer-bar {
    border-top: 1px solid rgba(28, 26, 24, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    padding-top: 28px;
}

.footer-brand,
.footer-heading {
    margin: 0 0 10px;
    font-weight: 800;
}

.footer-bar {
    margin-top: 24px;
    padding-top: 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.is-menu-open .main-nav {
    display: flex;
}

@media (max-width: 980px) {
    .hero-grid,
    .about-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        order: -1;
    }

    .app-row-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .app-row-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: static;
    }

    .nav-wrap {
        min-height: 74px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        border: 1px solid rgba(28, 26, 24, 0.08);
        border-radius: 22px;
        background: rgba(255, 250, 242, 0.98);
        box-shadow: var(--shadow);
    }

    .main-nav a {
        text-align: center;
    }

    .nav-wrap {
        position: relative;
    }

    .is-menu-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .is-menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .is-menu-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero,
    .page-hero {
        padding-top: 48px;
    }

    .hero-card,
    .feature-card,
    .legal-card,
    .about-grid {
        padding: 22px;
    }

    .app-row-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}
