:root {
    --bg: #f6efe1;
    --bg-panel: rgba(255, 250, 240, 0.82);
    --bg-strong: #fff9ef;
    --ink: #16202b;
    --muted: #5e6875;
    --line: rgba(22, 32, 43, 0.12);
    --line-strong: rgba(22, 32, 43, 0.2);
    --accent: #ef6c38;
    --accent-deep: #c94a18;
    --accent-alt: #0c7b6a;
    --accent-soft: #ffd8b6;
    --shadow: 0 18px 60px rgba(63, 45, 23, 0.12);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(239, 108, 56, 0.13), transparent 30%),
        radial-gradient(circle at 85% 12%, rgba(12, 123, 106, 0.14), transparent 26%),
        linear-gradient(180deg, #fdf8ee 0%, #f6efe1 48%, #f1e7d3 100%);
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.page-glow,
.page-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.page-glow {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.6), transparent 22%),
        radial-gradient(circle at 78% 22%, rgba(255, 216, 182, 0.5), transparent 18%);
}

.page-grid {
    z-index: -1;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(22, 32, 43, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 32, 43, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(246, 239, 225, 0.72);
    border-bottom: 1px solid rgba(22, 32, 43, 0.08);
}

.nav-shell,
.section-shell,
.hero-shell,
.site-footer {
    width: min(var(--max-width), calc(100vw - 2rem));
    margin: 0 auto;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.wordmark-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #ffb067);
    color: #fff7ec;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(201, 74, 24, 0.2);
}

.wordmark-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.wordmark-copy strong {
    font-size: 0.96rem;
}

.wordmark-copy span {
    color: var(--muted);
    font-size: 0.82rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--ink);
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
    gap: 2rem;
    padding: 4.5rem 0 2.5rem;
    align-items: start;
}

.hero-copy {
    padding: 1.2rem 0 0;
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 7vw, 5.9rem);
}

.hero-text,
.section-copy,
.about-layout p,
.contact-card p,
.principle-card p,
.panel-note,
.signal-list {
    color: var(--muted);
}

.hero-text {
    max-width: 58ch;
    margin: 1.5rem 0 0;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 2rem 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), #ffb067);
    color: #fff9ef;
    box-shadow: 0 16px 28px rgba(201, 74, 24, 0.2);
}

.button-secondary {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.35);
    color: var(--ink);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 2.2rem 0 0;
}

.hero-stats div,
.hero-panel,
.principle-card,
.contact-card,
.app-card,
.toolbar-shell,
.about-layout,
.empty-state {
    border: 1px solid var(--line);
    background: var(--bg-panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-stats div {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
}

.hero-stats dt {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.hero-stats dd {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 700;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    border-radius: var(--radius-xl);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -3rem -3rem auto;
    width: 11rem;
    height: 11rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(12, 123, 106, 0.18), transparent 70%);
}

.panel-kicker {
    margin: 0 0 1rem;
    font-weight: 700;
}

.signal-list {
    margin: 0;
    padding-left: 1.15rem;
}

.signal-list li + li {
    margin-top: 0.75rem;
}

.panel-note {
    margin: 1.4rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.section-shell {
    padding: 3.5rem 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-heading h2,
.contact-card h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-copy {
    max-width: 34rem;
    margin: 0;
}

.toolbar-shell {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.4rem;
}

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

.featured-card {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
        var(--bg-panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.featured-card-head,
.featured-card-brand,
.featured-actions,
.contact-actions,
.footer-shell,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.featured-card-head,
.footer-shell {
    align-items: center;
    justify-content: space-between;
}

.featured-card-brand {
    align-items: center;
}

.featured-icon-shell {
    width: 5rem;
    height: 5rem;
    border-radius: 24px;
}

.featured-kicker {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.featured-tagline,
.featured-reason,
.featured-benefits {
    margin: 0;
    color: var(--muted);
}

.featured-tagline {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.featured-benefits {
    padding-left: 1.1rem;
}

.featured-benefits li + li {
    margin-top: 0.55rem;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-shell {
    display: grid;
    gap: 0.5rem;
}

.search-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--muted);
}

.search-shell input {
    width: 100%;
    min-height: 3rem;
    padding: 0 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink);
}

.search-shell input:focus-visible {
    outline: 2px solid rgba(239, 108, 56, 0.28);
    outline-offset: 2px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.filter-chip {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.4);
    color: var(--muted);
    border-radius: 999px;
    padding: 0.72rem 1rem;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    color: var(--ink);
}

.filter-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff8ef;
}

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

.app-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1.1rem;
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-card:hover,
.app-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(239, 108, 56, 0.28);
    box-shadow: 0 18px 42px rgba(63, 45, 23, 0.16);
}

.app-card.is-hidden {
    display: none;
}

.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-icon-shell {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(239, 108, 56, 0.16), rgba(12, 123, 106, 0.12));
    border: 1px solid rgba(239, 108, 56, 0.12);
}

.app-icon-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    text-align: center;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.platform-pill.macos {
    background: rgba(12, 123, 106, 0.12);
    color: var(--accent-alt);
}

.platform-pill.ios {
    background: rgba(239, 108, 56, 0.13);
    color: var(--accent-deep);
}

.platform-pill.multi {
    background: rgba(45, 108, 223, 0.12);
    color: #2d6cdf;
}

.app-card h3 {
    margin: 0;
    font-size: 1.18rem;
}

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

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(22, 32, 43, 0.06);
    color: var(--ink);
    font-size: 0.78rem;
}

.app-card-cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--accent-deep);
}

.empty-state {
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

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

.principle-card,
.contact-card,
.about-layout {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
}

.principle-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
}

.about-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-layout p {
    margin: 0;
}

.contact-card {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.contact-actions {
    align-items: center;
}

.contact-card p {
    max-width: 46rem;
    margin: 0;
}

.site-footer {
    padding: 0 0 3rem;
    color: var(--muted);
}

.footer-shell {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--ink);
}

.noscript-note {
    width: min(var(--max-width), calc(100vw - 2rem));
    margin: 0 auto 2rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 229, 211, 0.85);
    border: 1px solid rgba(201, 74, 24, 0.18);
}

@media (max-width: 980px) {
    .hero-shell,
    .section-heading,
    .about-layout,
    .principles-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        padding-top: 3rem;
    }

    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .nav-shell,
    .hero-shell,
    .section-shell,
    .site-footer {
        width: min(var(--max-width), calc(100vw - 1.25rem));
    }

    .nav-shell {
        flex-direction: column;
        align-items: start;
    }

    .nav-links {
        gap: 0.9rem;
    }

    .featured-actions,
    .contact-actions,
    .footer-shell {
        align-items: start;
        flex-direction: column;
    }

    .hero-copy h1 {
        max-width: 12ch;
    }

    .hero-stats,
    .app-grid {
        grid-template-columns: 1fr;
    }

    .toolbar-shell,
    .hero-panel,
    .principle-card,
    .contact-card,
    .about-layout,
    .app-card {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
