/* ═══════════════════════════════════════════════════════════════════
   NexaOS website
   Colours, fonts and animations are the NexaOS desktop app's own
   (src/renderer/src/App.css in the NexaOS repo).
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --accent:        #0060e4;
  --accent-hover:  #0052c2;
  --accent-active: #0047b3;
  --accent-bright: #0c84f0;
  --accent-light:  #18b4fc;
  --accent-deep:   #00246c;
  --accent-tint:   #e8f2fe;
  --accent-tint-2: #d3e6fd;

  --bg:            #ffffff;
  --bg-soft:       #f1f5f9;
  --bg-elevated:   #f8fafc;
  --border:        #e2e8f0;
  --border-light:  #edf2f7;
  --text:          #0f2344;
  --text-2:        #475569;
  --text-muted:    #94a3b8;

  --positive:      #059669;
  --negative:      #dc2626;
  --warning:       #d97706;

  --grad-brand:    linear-gradient(135deg, #0a6ce8 0%, #0047b3 100%);
  --shadow-window: 0 -10px 60px -20px rgba(0,96,228,.35);
  --shadow-card:   0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-btn:    0 1px 2px rgba(0,36,108,.20), 0 4px 12px -4px rgba(12,132,240,.42);
  --shadow-btn-hv: 0 2px 4px rgba(0,36,108,.24), 0 10px 22px -8px rgba(12,132,240,.58);
  --ring:          0 0 0 3px rgba(12,132,240,.34);
  --ease:          cubic-bezier(.4,0,.2,1);

  --font:      'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: 80px;
  --max:    1280px;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); }
a:hover { color: var(--accent-active); }
h1, h2, h3 { margin: 0; color: var(--accent-deep); }
p { margin: 0; }
.mono { font-family: var(--font-mono); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hv); }
.btn-lg { font-size: 18px; padding: 17px 30px; border-radius: 14px; }
.btn-primary  { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-gradient { background: var(--grad-brand); color: #fff; }
.btn-gradient:hover { color: #fff; }
.btn-outline  { border-color: var(--accent-deep); color: var(--accent-deep); background: transparent; }
.btn-outline:hover { color: var(--accent-deep); background: var(--accent-tint); }
.btn-white    { background: #fff; color: var(--accent-deep); }
.btn-white:hover { color: var(--accent-deep); }

.btn-sm { font-size: 15px; padding: 10px 16px; }
/* The Cal.com embed reads the clicked element itself, so clicks on icons must land on the link */
.cal-btn > * { pointer-events: none; }

/* ── Header ───────────────────────────────────────────────────────── */
.header-ctas { display: flex; align-items: center; gap: 10px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0,36,108,.25); }
.header-row { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--accent-deep); font-weight: 800; font-size: 25px; letter-spacing: -.5px; }
.brand:hover { color: var(--accent-deep); }
.brand img { width: 42px; height: 39px; object-fit: contain; }
.brand-os { color: var(--accent-bright); }
.brand-sm { font-size: 21px; }
.brand-sm img { width: 34px; height: 32px; }
.brand-sm small { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }

.nav { display: flex; gap: 40px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--text-2); text-decoration: none; transition: color .15s var(--ease); }
.nav a:hover { color: var(--accent); }
.nav-cta-mobile { display: none; }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--accent-deep); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-inner { position: relative; padding-top: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }

.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-active); border: 1px solid var(--accent-tint-2); background: var(--accent-tint); border-radius: 999px; padding: 9px 16px 9px 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dot-pulse 1.8s ease-out infinite; }

.hero h1 { font-weight: 800; font-size: clamp(42px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -.035em; max-width: 1080px; }
.accent { color: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 720px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.mono-note { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); }

.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(12,132,240,.22); opacity: 0; pointer-events: none; transform: translate(-50%, -50%); animation: ring-pulse 3s ease-out infinite; }
.ring-1 { width: 900px; height: 900px; left: 92%; top: 120px; }
.ring-2 { width: 900px; height: 900px; left: 92%; top: 120px; animation-delay: 1.5s; }
.ring-3 { width: 700px; height: 700px; left: 8%; top: 560px; animation-delay: .8s; }

/* Hero media: app window + optional demo video */
.hero-media { position: relative; width: 100%; max-width: 1200px; margin-top: 36px; display: flex; flex-direction: column; align-items: center; }
.hero-media .app-window { margin-top: 0; }
.win-video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-soft); border-radius: 10px 10px 0 0; }
.watch-btn { position: absolute; right: 28px; bottom: 28px; box-shadow: 0 10px 30px -10px rgba(0,36,108,.55); }
.watch-btn svg { color: var(--accent); }

/* Video lightbox */
.lightbox { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; background: #0f2344; overflow: visible; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lightbox::backdrop { background: rgba(10,21,38,.78); backdrop-filter: blur(6px); }
.lightbox[open] { animation: rise .3s var(--ease) both; }
.lightbox-video { display: block; width: 100%; max-height: calc(100vh - 32px); border-radius: 16px; background: #000; }
.lightbox-close { position: absolute; top: -18px; right: -18px; z-index: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: var(--accent-deep); cursor: pointer; box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); }
.lightbox-close:focus-visible { border-radius: 50%; }

/* Stats strip */
.stats-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 16px; text-align: center; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-item .count { font-weight: 800; font-size: clamp(36px, 4vw, 54px); line-height: 1; letter-spacing: -.035em; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.stat-item > span { font-size: 16px; color: var(--text-2); }

/* App window */
.app-window { margin-top: 36px; width: 100%; max-width: 1200px; background: #0f2344; border-radius: 20px 20px 0 0; padding: 12px 12px 0; text-align: left; box-shadow: var(--shadow-window); }
.win-bar { height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 8px; }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #34405a; }
.win-bar span { margin-left: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.win-body { display: flex; min-height: 560px; background: var(--bg-soft); border-radius: 10px 10px 0 0; overflow: hidden; }
.win-side { width: 220px; flex-shrink: 0; background: var(--accent-deep); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--accent-tint-2); }
.win-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; }
.win-brand img { width: 26px; height: 24px; object-fit: contain; }
.win-brand b { font-weight: 800; font-size: 17px; color: #fff; }
.win-nav { padding: 9px 12px; border-radius: 8px; }
.win-nav.is-on { background: var(--grad-brand); color: #fff; font-weight: 600; }
.win-working { margin-top: auto; align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(52,211,153,.14); color: #6ee7b7; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.dot-green { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: dot-pulse-green 1.8s ease-out infinite; }
.win-main { flex: 1; min-width: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.win-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-card); }
.stat-l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.stat-l i { width: 8px; height: 8px; border-radius: 50%; }
.stat-v { font-size: 32px; font-weight: 800; color: var(--text); margin-top: 6px; }
.win-table { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; padding: 13px 20px; font-size: 15px; border-bottom: 1px solid var(--border-light); color: var(--text-2); }
.tr.th { background: var(--bg-elevated); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); border-bottom-color: var(--border); }
.tr .mono { font-size: 14px; }
.who { display: flex; align-items: center; gap: 10px; color: var(--text); }
.who b { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.st { font-style: normal; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.st.on   { background: #ecfdf5; color: #047857; }
.st.late { background: #fef3c7; color: #92400e; }
.st.off  { background: #f1f5f9; color: var(--text-2); }
.tr.row { animation: row-in .45s var(--ease) both; }
.tr.row:nth-child(2) { animation-delay: .90s; }
.tr.row:nth-child(3) { animation-delay: .99s; }
.tr.row:nth-child(4) { animation-delay: 1.08s; }
.tr.row:nth-child(5) { animation-delay: 1.17s; }
.tr.row:nth-child(6) { animation-delay: 1.26s; }
.tr.row:nth-child(7) { animation-delay: 1.35s; }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 120px 0; }
.section-white { background: #fff; }
.section h2 { font-weight: 800; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; letter-spacing: -.035em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; }
.section-head h2 { max-width: 700px; }
.section-head p { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 420px; }

.card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-card); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent-tint-2); box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 12px 32px -8px rgba(0,96,228,.22); }
.card h3 { font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--text); }
.card p { font-size: 17px; line-height: 1.6; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.features .card { display: flex; flex-direction: column; gap: 14px; }
.num { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 500; font-size: 15px; }

/* See it in action */
.demo { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.demo-tabs { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab { flex-shrink: 0; font-family: inherit; font-weight: 600; font-size: 16px; color: var(--text-2); background: transparent; border: 0; border-radius: 10px; padding: 11px 22px; cursor: pointer; transition: color .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.demo-tab:hover { color: var(--accent); background: var(--accent-tint); }
.demo-tab[aria-selected="true"] { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-btn); }
/* No overflow:hidden on the frame, so hotspot tooltips near an edge are not clipped */
.demo-frame { display: grid; width: 100%; max-width: 1200px; aspect-ratio: 16 / 10; border-radius: 20px; background: #0f2344; box-shadow: var(--shadow-window); }
.demo-panel { position: relative; grid-area: 1 / 1; min-width: 0; border-radius: inherit; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.demo-panel.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.demo-panel img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: top left; }

/* Tour hotspots */
.hs { position: absolute; left: var(--x); top: var(--y); z-index: 1; }
.hs.is-front { z-index: 3; }
.hotspot { position: relative; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px -4px rgba(0,36,108,.55); animation: dot-pulse 2.2s ease-out infinite; transition: transform .2s var(--ease), background .2s var(--ease); }
.hotspot:hover, .hs.is-open .hotspot { transform: scale(1.12); background: var(--accent-active); }
.hotspot:focus-visible { border-radius: 50%; box-shadow: var(--ring); }
.tip { position: absolute; top: 26px; left: -24px; width: 240px; padding: 14px 16px; background: #fff; color: var(--text-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(0,36,108,.35); font-size: 14px; line-height: 1.5; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s; pointer-events: none; }
.tip b { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 700; color: var(--text); }
.hs.tip-left .tip { left: auto; right: -24px; }
.hs.tip-up .tip { top: auto; bottom: 26px; transform: translateY(4px); }
.hs.is-open .tip,
.hs:has(.hotspot:focus-visible) .tip { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s; }
@media (hover: hover) {
  .hs:hover { z-index: 3; }
  .hs:hover .tip { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s; }
}

/* Why NexaOS — cards */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.why { display: flex; flex-direction: column; gap: 14px; }
.why-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-tint); }

/* Trusted by */
.trusted { padding-top: 96px; padding-bottom: 96px; }
.trusted-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); }
.logo-row { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 56px; }
.logo-row img { height: 36px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .2s var(--ease), opacity .2s var(--ease); }
.logo-row img:hover { filter: none; opacity: 1; }
.logo-ph { display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 40px; border: 1.5px dashed var(--border); border-radius: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.testimonial { position: relative; max-width: 860px; margin: 56px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); padding: 48px 52px; }
.quote-mark { color: var(--accent-tint-2); margin-bottom: 12px; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: clamp(20px, 2vw, 25px); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.t-avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 15px; overflow: hidden; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial figcaption b { display: block; font-weight: 700; font-size: 16px; color: var(--text); }
.testimonial figcaption b + span { font-size: 15px; color: var(--text-2); }

/* ROI calculator */
.roi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-card); overflow: hidden; }
.roi-inputs { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 48px; }
.roi-inputs .field > span:first-child { font-size: 15px; }
.roi-inputs input { font-size: 22px; font-weight: 700; padding: 14px 16px; font-variant-numeric: tabular-nums; }
.input-prefix { position: relative; display: block; }
.input-prefix > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 700; color: var(--text-muted); pointer-events: none; }
.input-prefix input { padding-left: 36px; }
.roi-result { position: relative; background: var(--grad-brand); color: #fff; padding: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-content: center; }
.roi-figure { display: flex; flex-direction: column; gap: 8px; }
.roi-label { font-size: 14px; font-weight: 600; letter-spacing: .4px; color: var(--accent-tint-2); }
.roi-figure b { font-weight: 800; font-size: clamp(38px, 4.4vw, 60px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.roi-note { grid-column: 1 / -1; font-size: 14px; line-height: 1.55; color: var(--accent-tint-2); }
.roi-cta { grid-column: 1 / -1; justify-self: start; }

/* Built for healthcare data */
.section-calm { background: #0f2344; }
.section-calm h2 { color: #fff; }
.section-calm .section-head p { color: #b6c3d6; }
.section-calm .eyebrow { color: var(--accent-light); }
.calm-head { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.safeguards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.safeguard { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 8px; padding: 32px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); transition: border-color .25s var(--ease), background .25s var(--ease); }
.safeguard:hover { border-color: rgba(24,180,252,.35); background: rgba(255,255,255,.06); }
.sg-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent-light); background: rgba(24,180,252,.10); border: 1px solid rgba(24,180,252,.22); }
.safeguard h3 { align-self: center; font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: #fff; }
.safeguard p { font-size: 16px; line-height: 1.6; color: #b6c3d6; }
.calm-foot { margin-top: 40px; font-size: 15px; line-height: 1.6; color: #8a9bb4; }
.calm-foot a { color: var(--accent-light); }
.calm-foot a:hover { color: #fff; }

/* Telegram */
.tg { display: flex; gap: 96px; align-items: center; }
.tg-copy { flex: 1; display: flex; flex-direction: column; gap: 22px; max-width: 580px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.tg-copy > p { font-size: 19px; line-height: 1.6; color: var(--text-2); }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks li::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }

.chat { width: 440px; flex-shrink: 0; min-height: 560px; background: linear-gradient(180deg, var(--accent-tint) 0%, var(--accent-tint-2) 100%); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; }
.chat-head { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; }
.chat-avatar img { width: 16px; height: 15px; object-fit: contain; }
.bubble { max-width: 320px; padding: 14px 16px; font-size: 16px; line-height: 1.45; opacity: 0; transform: translateY(40px); }
.bubble.in  { align-self: flex-start; background: #fff; color: var(--text); border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bubble.out { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; font-family: var(--font-mono); }
.chat.is-visible .bubble { animation: bubble-in .5s cubic-bezier(.34,1.56,.64,1) forwards; }
.chat.is-visible .b2 { animation-delay: .6s; }
.chat.is-visible .b3 { animation-delay: 1.2s; }
.report { width: 320px; font-size: 15px; line-height: 1.7; }
.report-title { font-weight: 700; margin-bottom: 6px; color: var(--accent-deep); }
.report-row { display: flex; justify-content: space-between; }
.warn { color: var(--warning); }
.pos  { color: var(--positive); }
.neg  { color: var(--negative); }
.acc  { color: var(--accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 36px; }
.step-n { font-weight: 800; font-size: 64px; line-height: 1; }
.n1 { color: var(--accent-bright); } .n2 { color: var(--accent); } .n3 { color: var(--accent-active); }

/* Why NexaOS — comparison */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); }
.compare-scroll:focus-visible { box-shadow: var(--ring); border-radius: 20px; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.compare th, .compare td { padding: 20px 28px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--bg-elevated); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); border-bottom-color: var(--border); }
.compare thead .col-us { color: var(--accent); }
.compare tbody th { font-weight: 600; font-size: 17px; color: var(--text); }
.compare .col-us { background: var(--accent-tint); text-align: center; width: 18%; }
.compare thead .col-us { background: var(--accent-tint-2); }
.compare td { font-size: 15px; color: var(--text-2); }
.compare td:last-child { width: 36%; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; flex-shrink: 0; }
.mark.yes  { background: var(--accent); color: #fff; }
.mark.no   { background: #fee2e2; color: var(--negative); }
.mark.some { background: #fef3c7; color: var(--warning); }
.mark-note { display: inline-block; max-width: calc(100% - 48px); margin-left: 12px; vertical-align: middle; line-height: 1.45; }
.compare-foot { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.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; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px; }
.plan-for { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.plan-price b { font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.035em; color: var(--accent-deep); }
.plan-price span { font-size: 15px; color: var(--text-2); }
.plan-list { flex: 1; margin: 8px 0 12px; font-size: 16px; color: var(--text); }
.plan .btn { width: 100%; }
.plan-popular { border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 12px 32px -8px rgba(0,96,228,.22); }
.plan-popular:hover { border-color: var(--accent); }
.plan-badge { position: absolute; top: 0; left: 36px; transform: translateY(-50%); background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-btn); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq-intro { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 120px; }
.faq-intro p { font-size: 19px; line-height: 1.6; color: var(--text-2); }
.faq { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--border-light); }
.faq-item h3 { margin: 0; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; font-family: inherit; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--text); background: none; border: 0; padding: 24px 28px; cursor: pointer; transition: color .15s var(--ease), background .15s var(--ease); }
.faq-q:hover { color: var(--accent); background: var(--bg-elevated); }
.faq-q:focus-visible { border-radius: 0; box-shadow: inset 0 0 0 3px rgba(12,132,240,.34); }
.faq-q::after { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230060e4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); transition: transform .25s var(--ease); }
.faq-q[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s var(--ease), visibility 0s linear .3s; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 28px 24px; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s var(--ease), visibility 0s; }

/* Cal.com booking links */
.plan-cal { align-self: center; margin-top: -4px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-tint-2); }
.plan-cal:hover { text-decoration-color: currentColor; }
.cta-copy .cta-book { align-self: flex-start; margin-top: 8px; }
.cta-book svg { color: var(--accent); }

/* Mobile sticky "Book a demo" bar (shown ≤ 760px) */
.mobile-bar { display: none; }

/* Floating Telegram button */
.tg-float { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border-radius: 999px; background: #229ed9; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 10px 28px -8px rgba(0,36,108,.45); transition: transform .2s var(--ease), box-shadow .2s var(--ease), bottom .3s var(--ease); }
.tg-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(0,36,108,.55); }
.tg-float:focus-visible { border-radius: 999px; }

/* CTA */
.cta-wrap { padding-bottom: 120px; }
.cta { position: relative; overflow: hidden; background: var(--grad-brand); color: #fff; border-radius: 28px; padding: 88px 80px; display: flex; justify-content: space-between; align-items: center; gap: 40px; box-shadow: 0 20px 60px -20px rgba(0,71,179,.55); }
.cta h2 { color: #fff; font-weight: 800; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.cta-copy { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.cta-copy p { font-size: 19px; line-height: 1.6; color: var(--accent-tint-2); }
.cta .btn { position: relative; flex-shrink: 0; }

/* Demo request form */
.demo-form { position: relative; flex-shrink: 0; width: 520px; max-width: 100%; background: #fff; color: var(--text); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-card); }
.demo-form h3 { font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--text); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.field small { font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 500; color: var(--text); background: var(--bg-elevated); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); }
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; padding-right: 40px; cursor: pointer; background: var(--bg-elevated) no-repeat right 14px center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.field select:invalid { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--accent-bright); box-shadow: var(--ring); }
.field [aria-invalid="true"] { border-color: var(--negative); }
.demo-form .btn { width: 100%; margin-top: 4px; }
.demo-form .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 15px; font-weight: 600; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-ok  { color: var(--positive); }
.form-status.is-err { color: var(--negative); }
.cta-mark { position: absolute; right: 360px; top: 30px; width: 260px; opacity: .12; animation: float 6s ease-in-out infinite; pointer-events: none; }
.sheen { position: absolute; inset: 0 auto 0 0; width: 30%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0)); animation: sheen 4.5s ease-in-out infinite; pointer-events: none; }

/* Legal pages */
.legal { background: #fff; }
.legal-inner { max-width: calc(820px + var(--gutter) * 2); padding-top: 88px; padding-bottom: 120px; }
.legal h1 { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin-top: 14px; }
.legal-date { margin-top: 14px; font-family: var(--font-mono); font-size: 14px; color: var(--text-2); }
.legal-note { margin: 32px 0 8px; padding: 18px 20px; background: #fef3c7; border: 1px solid #fde68a; border-radius: 14px; color: #92400e; font-size: 16px; line-height: 1.55; }
.legal-note strong { font-weight: 700; }
.legal h2 { font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin: 48px 0 14px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.legal p + p { margin-top: 14px; }
.legal b { font-weight: 700; color: var(--text); }
.legal ul { margin: 14px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal li::marker { color: var(--accent); }
.footer-links a[aria-current="page"] { color: var(--accent); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); }
.footer-row { padding-top: 56px; padding-bottom: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 32px; font-size: 15px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ── Animations (the NexaOS app's own) ────────────────────────────── */
.rise { animation: rise .7s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .4s; } .d5 { animation-delay: .55s; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise            { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes row-in          { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes bubble-in       { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes ring-pulse      { 0% { transform: translate(-50%,-50%) scale(.7); opacity: .85; } 100% { transform: translate(-50%,-50%) scale(1.3); opacity: 0; } }
@keyframes dot-pulse       { 0% { box-shadow: 0 0 0 0 rgba(0,96,228,.45); } 70% { box-shadow: 0 0 0 8px rgba(0,96,228,0); } 100% { box-shadow: 0 0 0 0 rgba(0,96,228,0); } }
@keyframes dot-pulse-green { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes float           { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes sheen           { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(320%) skewX(-20deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .bubble { opacity: 1; transform: none; }
}

/* ── Responsive ───────────────────────────────────────────────────── */
/* Below this width the header has no room for a second button */
@media (max-width: 1240px) {
  .header-ctas .cal-btn { display: none; }
}

@media (max-width: 760px) {
  .has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--border);
    transition: transform .3s var(--ease);
  }
  .mobile-book { width: 100%; }
  .form-in-view .mobile-bar { transform: translateY(110%); }

  .tg-float { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 54px; height: 54px; padding: 0; justify-content: center; }
  .tg-float .tg-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .form-in-view .tg-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .nav { gap: 26px; }
  .features, .steps, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 32px; }
  .safeguard { padding: 28px; }
  .tg { gap: 48px; }
  .cta { padding: 64px 48px; flex-direction: column; align-items: flex-start; }
  .cta-mark { right: 200px; }
}

@media (max-width: 1000px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: 0; right: 0; top: 88px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px; box-shadow: 0 16px 32px -16px rgba(0,36,108,.25);
  }
  .nav.is-open a { padding: 12px 0; font-size: 17px; }
  .nav.is-open .nav-cta-mobile { display: inline-flex; margin-top: 8px; padding: 14px 22px; color: #fff; }
}

@media (max-width: 900px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .roi { grid-template-columns: minmax(0, 1fr); }
  .faq-intro { position: static; }
  .tg { flex-direction: column; align-items: stretch; }
  .chat { width: 100%; min-height: 460px; }
  .win-side { display: none; }
  .win-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta-mark { right: -40px; top: auto; bottom: -40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-row { height: 72px; }
  .nav.is-open { top: 72px; }
  html { scroll-padding-top: 72px; }
  .hero-inner { padding-top: 56px; gap: 22px; }
  .legal-inner { padding-top: 56px; padding-bottom: 80px; }
  .legal h2 { font-size: 22px; margin-top: 40px; }
  .legal p, .legal li { font-size: 16px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .ring-1, .ring-2 { width: 520px; height: 520px; }
  .ring-3 { display: none; }
  .section { padding: 80px 0; }
  .features, .steps { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .safeguards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq { border-radius: 16px; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .trusted { padding-top: 64px; padding-bottom: 64px; }
  .logo-row { gap: 16px 28px; }
  .logo-row img { height: 28px; }
  .testimonial { padding: 28px 22px; border-radius: 16px; margin-top: 40px; }
  .roi { border-radius: 18px; }
  .roi-inputs, .roi-result { padding: 26px 22px; }
  .roi-result { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .roi-cta { justify-self: stretch; }
  .watch-btn { position: static; margin-top: 16px; width: 100%; }
  .lightbox-close { top: -54px; right: 0; }
  .stats-row { grid-template-columns: minmax(0, 1fr); }
  .stat-item { padding: 26px 16px; }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid var(--border); }
  .hotspot { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 12px; }
  .tip { width: 200px; font-size: 13px; top: 22px; }
  .hs.tip-up .tip { bottom: 22px; }
  .compare-scroll { border-radius: 16px; }
  .compare th, .compare td { padding: 16px 18px; }
  .compare tbody th { font-size: 15px; position: sticky; left: 0; z-index: 1; background: #fff; min-width: 170px; box-shadow: 1px 0 0 var(--border-light); }
  .compare thead th:first-child { position: sticky; left: 0; z-index: 2; }
  .faq-q { font-size: 17px; padding: 20px; }
  .faq-a p { padding: 0 20px 20px; font-size: 16px; }
  .safeguard { padding: 24px; column-gap: 16px; }
  .sg-icon { grid-row: auto; width: 44px; height: 44px; }
  .safeguard p { grid-column: 1 / -1; }
  .plan { padding: 28px 24px; }
  .plan-badge { left: 24px; }
  .demo { gap: 20px; }
  .demo-tabs { align-self: stretch; }
  .demo-tab { flex: 1 0 auto; font-size: 15px; padding: 10px 16px; }
  .demo-frame { border-radius: 14px; }
  .win-body { min-height: 0; }
  .win-main { padding: 14px; }
  .tr { grid-template-columns: 1.4fr 1fr; padding: 12px 14px; font-size: 14px; }
  .tr > :nth-child(2), .tr > :nth-child(3) { display: none; }
  .cta { padding: 48px 24px; border-radius: 22px; }
  .cta .btn { width: 100%; }
  .demo-form { padding: 22px; border-radius: 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
