/* Landing page of the OmniVista Cirrus MCP Server (src/landing/page.ts). OmniVista 2026 brand:
   violet #69479A, text #17131F, dark #0D0B12, a black-to-violet header band, light sections in
   #FFFFFF and #F6F4F9, the system font. Served under a CSP without inline styles: every rule
   lives in this file. */
:root {
  --violet: #69479A;
  --violet-hi: #8E6BC6;
  --violet-soft: #EFE8F8;
  --ink: #17131F;
  --ink-2: #4D4658;
  --ink-3: #6E6680;
  --dark: #0D0B12;
  --white: #FFFFFF;
  --tint: #F6F4F9;
  --line: #E4E0EA;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: var(--mono); }
code { font-size: .92em; background: var(--violet-soft); color: #3E2A63; border-radius: 4px; padding: .1em .35em; overflow-wrap: anywhere; }
pre { margin: 0; padding: 14px 16px; background: var(--dark); color: #F4F1F8; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Header band: navigation and hero, black to violet. */
.top { background: linear-gradient(120deg, var(--dark) 0%, #1E1530 45%, var(--violet) 100%); color: #F4F1F8; }
.top a { color: inherit; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 48px; height: auto; }
.brand b { display: block; font-size: 16px; }
.brand small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #C9C0D8; }
.links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; font-weight: 600; }
.links a { text-decoration: none; padding: 6px 0; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.langs { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.langs a { font-size: 12px; font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: 999px; color: #C9C0D8; }
.langs a[aria-current="true"] { background: var(--violet); color: var(--white); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 64px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.lead { font-size: 18px; color: #DCD4E8; max-width: 56ch; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 20px 0; }
.address span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.address code { font-size: 16px; padding: .45em .8em; }
.top .address span { color: #C9C0D8; }
.top .address code { background: rgba(255, 255, 255, .1); color: var(--white); border: 1px solid rgba(255, 255, 255, .22); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 10px; }
.button.primary { background: var(--white); color: var(--violet); }
.button.ghost { border: 1px solid rgba(255, 255, 255, .45); color: var(--white); }
.button:hover { filter: brightness(1.06); }

.thumb { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.thumb-frame { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); background: radial-gradient(120% 140% at 85% 10%, #3A2760 0%, #1A1326 45%, var(--dark) 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.thumb-mark { position: absolute; left: 6%; top: 9%; width: 16%; height: auto; opacity: .9; }
.play { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.play svg { width: 30px; height: 30px; fill: var(--violet); margin-left: 4px; }
.thumb:hover .play, .thumb:focus-visible .play { transform: scale(1.06); }
.thumb:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 4px; border-radius: 16px; }
.thumb-caption { font-size: 14px; font-weight: 600; color: #DCD4E8; text-align: center; }

/* Sections. */
.band { padding-block: 56px; background: var(--white); }
.band.tint { background: var(--tint); }
.band > .wrap > p { color: var(--ink-2); max-width: 75ch; }
.grid { display: grid; gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tint .card { border-color: #E6E1EE; }
.card p { margin: 0; color: var(--ink-2); }
.card img { border-radius: 10px; border: 1px solid var(--line); }
.tool-id { align-self: flex-start; font-size: 12px; }
.sub { margin-top: 36px; }
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 12px; padding: 0; list-style: none; }
.examples li { background: var(--violet-soft); color: #3E2A63; border-radius: 12px 12px 12px 4px; padding: 12px 16px; font-weight: 600; }
.note { font-size: 14px; color: var(--ink-3); }
.num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: var(--white); font-weight: 700; font-size: 15px; }
.cards-numbered .num { margin-bottom: 4px; }

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
figure img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(23, 19, 31, .08); }
figcaption { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.callout { margin-top: 24px; padding: 16px 20px; border-left: 4px solid var(--violet); background: var(--tint); border-radius: 0 12px 12px 0; color: var(--ink); max-width: 75ch; }

.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.client h3 { font-size: 20px; }
#clients .address code { background: var(--white); border: 1px solid var(--line); }

/* Footer. */
.foot { background: var(--dark); color: #C9C0D8; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: #E3D8F5; }

/* minmax(0, 1fr), never a bare 1fr: a long unbreakable line (the headers block) must scroll
   inside its card, not widen the column past the screen. */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 32px 48px; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .grid.two, .grid.three, .grid.four, .examples, .figures { grid-template-columns: minmax(0, 1fr); }
  .links { width: 100%; }
  .band { padding-block: 40px; }
}
