* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --background: #fbfaf8;
    --foreground: #171214;
    --muted: #756d70;
    --accent: #981f32;
    --accent-light: #bd2941;
    --border: rgba(23, 18, 20, 0.11);
    --card: rgba(255, 255, 255, 0.7);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img, svg, video, canvas { max-width: 100%; height: auto; }

body {
    min-height: 100vh;
    min-height: 100svh;
    background: radial-gradient(circle at 82% 12%, rgba(152, 31, 50, 0.07), transparent 32%), var(--background);
    color: var(--foreground);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

.page {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - clamp(32px, 6vw, 96px)));
    min-height: 100svh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { color: var(--accent); font-size: 17px; font-weight: 650; letter-spacing: -0.035em; transition: color 180ms ease; }
.logo:hover { color: var(--accent-light); }

nav { display: flex; gap: 28px; }
.nav-link { color: var(--muted); font-size: 12px; transition: color 180ms ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); }

main { flex: 1; }

.eyebrow {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

h1 {
    max-width: 980px;
    overflow-wrap: break-word;
    font-size: clamp(40px, 9vw + 4px, 112px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.065em;
}
h1 .accent, h1 span { color: var(--accent); }

h2 {
    font-size: clamp(28px, 4.4vw + 6px, 58px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.lead { max-width: 540px; margin-top: 40px; color: var(--muted); font-size: 17px; line-height: 1.7; letter-spacing: -0.01em; }

section { padding: clamp(56px, 9vw, 120px) 0 0; }
.hero { padding-top: clamp(48px, 9vw, 120px); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-size: 13px; font-weight: 600;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button:hover { background: var(--accent-light); border-color: var(--accent-light); }
.button.ghost { background: transparent; color: var(--foreground); border-color: var(--border); }
.button.ghost:hover { color: var(--accent); border-color: rgba(152, 31, 50, 0.35); background: transparent; }

/* Product cards */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head p { max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }

.card {
    display: flex; flex-direction: column; gap: 14px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--card);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
a.card:hover { border-color: rgba(152, 31, 50, 0.35); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(152, 31, 50, 0.35); }

.badge {
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(152, 31, 50, 0.09);
    color: var(--accent);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.04em;
}
.badge.soon { background: rgba(23, 18, 20, 0.06); color: var(--muted); }

.card h3 { font-size: 26px; font-weight: 550; letter-spacing: -0.04em; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.card .more { margin-top: auto; padding-top: 10px; color: var(--accent); font-size: 13px; font-weight: 600; }
.card.placeholder { border-style: dashed; background: transparent; justify-content: center; }

/* Principles */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid3 h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.grid3 p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.num { display: block; margin-bottom: 18px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; }

/* CTA */
.cta {
    margin-top: clamp(64px, 9vw, 120px);
    padding: 56px 0;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
}
.cta h2 { max-width: 520px; }
.cta a.mail { font-size: clamp(18px, 2.4vw, 28px); letter-spacing: -0.025em; transition: color 180ms ease; }
.cta a.mail:hover { color: var(--accent); }
.cta small { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; }

/* Footer */
footer {
    min-height: 90px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 20px 0;
    color: var(--muted);
    font-size: 12px;
}
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { transition: color 180ms ease; }
.footer-links a:hover { color: var(--accent); }

/* Document pages (privacy, product detail) */
.doc { max-width: 720px; padding: 0 0 40px; }
.doc h1 { font-size: clamp(44px, 7vw, 84px); }
.doc .meta { margin-top: 28px; color: var(--muted); font-size: 13px; }
.doc h2 { margin-top: 56px; font-size: 24px; letter-spacing: -0.03em; line-height: 1.2; }
.doc h3 { margin-top: 28px; font-size: 16px; font-weight: 600; }
.doc p, .doc li { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.doc ul { padding-left: 22px; }
.doc a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--foreground); font-weight: 600; }

.toc { margin-top: 36px; padding: 22px 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.toc strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.toc ol { margin-top: 10px; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-top: 6px; font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 40px; }
.features .card { padding: 26px; }
.features .card h3 { font-size: 18px; margin: 0; }

::selection { background: var(--accent); color: #fff; }

@media (max-width: 800px) {
    .grid3 { grid-template-columns: 1fr; gap: 32px; }
    .section-head { flex-direction: column; align-items: start; }
    .toc ol { columns: 1; }
}

@media (max-width: 700px) {
    .page { width: calc(100% - max(32px, env(safe-area-inset-left) + env(safe-area-inset-right))); }
    header { height: 68px; }
    nav { gap: 20px; }
    .lead { margin-top: 24px; font-size: 15px; }
    .card { padding: 24px; }
    .products { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    nav { gap: 14px; }
    .actions .button { width: 100%; justify-content: center; }
    .toc { padding: 18px; }
}

@media (min-width: 1600px) {
    .page { width: min(1360px, 80%); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    a.card:hover { transform: none; }
}

/* Product logo */
.app-logo { display: block; width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.app-logo.lg { width: clamp(96px, 16vw, 148px); height: auto; aspect-ratio: 1; border-radius: 28px; margin-bottom: 28px; box-shadow: 0 24px 48px -28px rgba(23, 18, 20, 0.35); }
.app-hero { display: flex; flex-direction: column; align-items: flex-start; }

/* Featured product card */
.card.featured { border-color: rgba(152, 31, 50, 0.3); box-shadow: 0 24px 48px -32px rgba(152, 31, 50, 0.4); }
.card.featured .actions { margin-top: auto; padding-top: 10px; }
.msicon { flex: none; }
