:root {
    --ink: #101214;
    --muted: #636b74;
    --line: #e8eaf0;
    --surface: #ffffff;
    --soft: #f6f7fb;
    --brand: #4A5CF9;
    --brand-deep: #3445e6;
    --navy: #101525;
    --radius: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); border-bottom: 1px solid rgba(232,234,240,.78); backdrop-filter: blur(18px); }
.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 31px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 650; }
.text-link:hover { color: var(--brand); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 750; box-shadow: 0 10px 30px rgba(74,92,249,.22); transition: .2s ease; border: 1px solid var(--brand); }
.button:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(74,92,249,.28); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.button-ghost:hover { color: var(--brand); background: #fff; border-color: #cfd3ff; box-shadow: none; }
.hero { position: relative; overflow: hidden; padding: 104px 0 88px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -20%, rgba(74,92,249,.09), transparent 42%); pointer-events: none; }
.hero-glow { position: absolute; border-radius: 999px; filter: blur(70px); opacity: .23; pointer-events: none; }
.hero-glow-one { width: 360px; height: 360px; background: #8e77ff; right: -100px; top: 40px; }
.hero-glow-two { width: 300px; height: 300px; background: #73c4ff; left: -120px; bottom: -120px; opacity: .12; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 76px; align-items: center; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow span { width: 28px; height: 2px; border-radius: 9px; background: var(--brand); }
.hero h1 { margin: 0; max-width: 690px; font-size: clamp(52px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; font-weight: 820; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lede { max-width: 630px; margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.microcopy { margin: 22px 0 0; font-size: 13px; color: #828995; }
.hero-preview { perspective: 1100px; }
.preview-window { position: relative; max-width: 500px; margin-left: auto; padding: 18px; border: 1px solid rgba(216,219,230,.9); border-radius: 30px; background: rgba(255,255,255,.86); box-shadow: 0 40px 90px rgba(29,35,71,.14), 0 8px 24px rgba(29,35,71,.07); transform: rotateY(-4deg) rotateX(2deg); backdrop-filter: blur(18px); }
.preview-topbar { display: flex; align-items: center; gap: 10px; padding: 3px 4px 16px; font-size: 14px; font-weight: 750; }
.preview-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 850; }
.preview-dots { display: flex; gap: 4px; margin-left: auto; }
.preview-dots i { display: block; width: 4px; height: 4px; background: #b4b9c3; border-radius: 50%; }
.compose-card, .note-card { border: 1px solid var(--line); background: #fff; border-radius: 18px; }
.compose-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px; }
.compose-card div:last-child { display: flex; flex-direction: column; gap: 3px; }
.compose-card strong { font-size: 14px; }
.compose-card span { font-size: 12px; color: var(--muted); }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.avatar-purple { background: linear-gradient(135deg, #4A5CF9, #8d68ff); }
.avatar-dark { background: #151c2c; }
.avatar-blue { background: #2b92d3; }
.note-card { padding: 17px; margin-top: 12px; }
.note-card-muted { opacity: .82; }
.note-head { display: flex; gap: 10px; align-items: center; }
.note-head div:last-child { display: flex; flex-direction: column; }
.note-head strong { font-size: 14px; }
.note-head span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.note-card p { margin: 14px 0 16px; font-size: 15px; line-height: 1.5; }
.note-actions { display: flex; justify-content: space-between; color: #858b94; font-size: 11px; font-weight: 650; border-top: 1px solid #f0f1f5; padding-top: 12px; }
.principles { padding: 88px 0 112px; background: var(--soft); border-top: 1px solid #f0f1f5; border-bottom: 1px solid #f0f1f5; }
.principles .section-kicker { margin-bottom: 26px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { min-height: 260px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #dcdff5; border-radius: 13px; color: var(--brand); font-size: 11px; font-weight: 850; }
.feature-grid h2 { margin: 58px 0 10px; font-size: 22px; letter-spacing: -.025em; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.62; font-size: 15px; }
.operator { padding: 112px 0; }
.operator-card { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 52px; border-radius: 28px; color: #fff; background: var(--navy); position: relative; overflow: hidden; }
.operator-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(101,117,255,.5), transparent 64%); }
.operator .section-kicker { color: #8e98ad; }
.operator h2 { margin: 18px 0 0; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.06; }
.operator-copy { position: relative; z-index: 1; align-self: end; }
.operator-copy p { margin: 0; max-width: 520px; color: #bac1cf; font-size: 17px; line-height: 1.7; }
.operator-copy strong { color: #fff; }
.operator-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.operator-links a { color: #fff; font-size: 13px; font-weight: 750; }
.operator-links a:hover { color: #9ea8ff; }
.closing { padding: 38px 0 108px; }
.closing-inner { display: flex; justify-content: space-between; gap: 32px; align-items: end; border-top: 1px solid var(--line); padding-top: 68px; }
.closing h2 { margin: 12px 0 0; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.05em; line-height: 1; }
.landing-footer { padding: 30px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; }
.footer-grid strong { color: var(--ink); font-size: 14px; }
.footer-grid p { margin: 4px 0 0; }
.footer-grid nav { display: flex; gap: 18px; }
.footer-grid a:hover { color: var(--brand); }
.cookie-note { position: fixed; z-index: 90; left: 20px; right: 20px; bottom: 18px; max-width: 920px; margin: 0 auto; padding: 15px 16px; border: 1px solid rgba(214,217,230,.95); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(16,21,37,.16); backdrop-filter: blur(16px); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.cookie-note[hidden] { display: none; }
.cookie-note > div:first-child { display: grid; gap: 3px; }
.cookie-note strong { font-size: 13px; }
.cookie-note span { font-size: 12px; line-height: 1.45; color: var(--muted); }
.cookie-actions { display: flex; gap: 12px; align-items: center; flex: 0 0 auto; font-size: 12px; font-weight: 700; }
.cookie-actions a { color: var(--brand); }
.cookie-actions button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 14px; cursor: pointer; font: inherit; }
@media (max-width: 900px) {
    .hero { padding-top: 76px; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-preview { max-width: 620px; }
    .preview-window { margin: 0; transform: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid article { min-height: auto; }
    .feature-grid h2 { margin-top: 34px; }
    .operator-card { grid-template-columns: 1fr; gap: 38px; padding: 38px; }
    .footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-grid nav { flex-wrap: wrap; }
}
@media (max-width: 620px) {
    .shell { width: min(100% - 28px, 1180px); }
    .nav-shell { min-height: 64px; }
    .brand img { height: 26px; }
    .nav-actions { gap: 12px; }
    .nav-actions .text-link { display: none; }
    .hero { padding: 62px 0 66px; }
    .hero h1 { font-size: clamp(44px, 14vw, 60px); }
    .hero-lede { font-size: 17px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .preview-window { padding: 12px; border-radius: 22px; }
    .principles { padding: 68px 0 78px; }
    .operator { padding: 76px 0; }
    .operator-card { padding: 30px 24px; border-radius: 22px; }
    .closing { padding-bottom: 78px; }
    .closing-inner { align-items: stretch; flex-direction: column; }
    .closing-inner .button { width: 100%; }
    .cookie-note { align-items: stretch; flex-direction: column; gap: 12px; }
    .cookie-actions { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Brevisnota landing polish + light/dark appearance, 2026-09-06 */
:root {
    --card: #ffffff;
    --card-soft: #fbfcff;
    --header-bg: rgba(255,255,255,.9);
    --shadow: rgba(29,35,71,.14);
    --shadow-soft: rgba(29,35,71,.07);
}

html[data-theme="dark"] {
    --ink: #f5f7fb;
    --muted: #a4adba;
    --line: #29303d;
    --surface: #0c1017;
    --soft: #111722;
    --brand: #7785ff;
    --brand-deep: #6474ff;
    --navy: #080b12;
    --card: #151b26;
    --card-soft: #111722;
    --header-bg: rgba(12,16,23,.88);
    --shadow: rgba(0,0,0,.34);
    --shadow-soft: rgba(0,0,0,.22);
}

body,
.site-header,
.preview-window,
.compose-card,
.note-card,
.feature-grid article,
.button-ghost,
.cookie-note,
.landing-footer {
    transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.shell { width: min(1280px, calc(100% - 48px)); }
.site-header { background: var(--header-bg); border-bottom-color: var(--line); }
.nav-shell { min-height: 88px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand .brand-logo { width: 240px; height: auto; max-height: none; object-fit: contain; object-position: left center; }
.brand-logo-dark { display: none; }
.brand-name { display: none; }
html[data-theme="dark"] .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-dark { display: block; }

.theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(74,92,249,.45); }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

.hero { padding: 88px 0 66px; }
.hero-grid { grid-template-columns: .96fr 1.04fr; gap: 68px; }
.hero h1 { max-width: 720px; }
.hero-lede { max-width: 610px; }
.hero-preview { transform: translateY(-2px); }
.preview-window {
    max-width: 560px;
    padding: 20px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    border-color: var(--line);
    box-shadow: 0 42px 94px var(--shadow), 0 8px 26px var(--shadow-soft);
    transform: rotateY(-3deg) rotateX(1.5deg);
}
.compose-card, .note-card { background: var(--card); border-color: var(--line); }
.note-actions { border-top-color: var(--line); }
.microcopy { color: var(--muted); }
.button-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--card); }

.principles { padding: 76px 0 94px; background: var(--soft); border-color: var(--line); }
.feature-grid { gap: 22px; }
.feature-grid article {
    position: relative;
    overflow: hidden;
    min-height: 246px;
    padding: 30px;
    background: var(--card);
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(20,27,49,.025);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .22s ease;
}
.feature-grid article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    opacity: .75;
    background: linear-gradient(90deg, var(--brand), rgba(74,92,249,0));
}
.feature-grid article:hover { transform: translateY(-3px); border-color: rgba(74,92,249,.28); box-shadow: 0 18px 42px rgba(20,27,49,.07); }
.feature-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 15px;
    background: color-mix(in srgb, var(--brand) 9%, var(--card));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent);
}
.feature-icon::after { content: ""; position: absolute; width: 7px; height: 7px; right: 7px; top: 7px; border-radius: 50%; background: var(--brand); opacity: .32; }
.feature-grid h2 { margin-top: 48px; }

.operator { padding: 94px 0; }
.operator-card { padding: 54px 58px; gap: 72px; }

.closing { padding: 28px 0 92px; }
.closing-inner { align-items: center; padding-top: 58px; }
.closing-inner .button { margin-right: 4px; }

.landing-footer { padding: 34px 0 42px; font-size: 13px; background: var(--surface); }
.footer-grid { gap: 36px; }
.footer-grid strong { font-size: 15px; }
.footer-grid nav { gap: 22px; font-weight: 650; }

.cookie-note { background: color-mix(in srgb, var(--card) 96%, transparent); border-color: var(--line); }
.cookie-actions button { background: var(--ink); color: var(--surface); }

html[data-theme="dark"] .hero::before { background: radial-gradient(circle at 50% -20%, rgba(111,126,255,.17), transparent 44%); }
html[data-theme="dark"] .hero-glow-one { opacity: .17; }
html[data-theme="dark"] .hero-glow-two { opacity: .10; }
html[data-theme="dark"] .preview-dots i { background: #687184; }
html[data-theme="dark"] .note-card-muted { opacity: .88; }
html[data-theme="dark"] .operator-card { border: 1px solid #20283a; }

@media (max-width: 1100px) {
    .shell { width: min(1120px, calc(100% - 40px)); }
    .hero { padding-top: 76px; }
    .hero-grid { gap: 46px; grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: clamp(50px, 5.6vw, 70px); }
    .preview-window { max-width: 520px; }
    .operator-card { gap: 48px; }
}

@media (max-width: 900px) {
    .shell { width: min(760px, calc(100% - 36px)); }
    .brand .brand-logo { width: 205px; }
    .brand-name { display: none; }
    .hero { padding: 68px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-preview { max-width: 650px; }
    .preview-window { max-width: 620px; transform: none; margin: 0; }
    .principles { padding: 66px 0 78px; }
    .operator { padding: 74px 0; }
    .operator-card { padding: 40px; }
    .closing-inner { padding-top: 50px; }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 28px, 560px); }
    .nav-shell { min-height: 72px; }
    .brand { min-width: 0; }
    .brand .brand-logo { width: 175px; height: auto; max-height: none; }
    .brand-name { display: none; }
    .theme-toggle { width: 38px; height: 38px; flex-basis: 38px; }
    .nav-actions { gap: 9px; }
    .button-small { min-height: 38px; padding: 0 14px; font-size: 13px; }
    .hero { padding: 54px 0 54px; }
    .hero-grid { gap: 40px; }
    .feature-grid article { padding: 26px; }
    .feature-grid h2 { margin-top: 34px; }
    .operator-card { padding: 30px 24px; }
    .closing { padding-bottom: 68px; }
    .closing-inner { gap: 26px; }
    .landing-footer { font-size: 13px; }
}
