/* =========================================================================
   Notably — marketing page
   Design system: warm "document" paper, product indigo, restrained mint for
   confirmed decisions, JetBrains Mono meta-labels echoing the app.
   Display: Bricolage Grotesque · Body: Inter · Utility: JetBrains Mono
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --paper:        #F6F5F2;
  --surface:      #FFFFFF;
  --surface-2:    #FCFBF9;
  --ink:          #191921;
  --ink-soft:     #3D3D49;
  --muted:        #6C6C7A;
  --line:         #E7E4DE;
  --line-soft:    #EFEDE8;

  --indigo:       #5D5BF0;
  --indigo-deep:  #4A47D6;
  --indigo-tint:  #ECEBFD;
  --mint:         #0E9E8E;
  --mint-tint:    #E1F4EF;
  --amber:        #B4762A;
  --amber-tint:   #F5EEE1;

  --r-xs: 7px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(25,25,33,.05), 0 1px 3px rgba(25,25,33,.04);
  --shadow:    0 10px 34px -14px rgba(25,25,33,.20);
  --shadow-lg: 0 34px 70px -28px rgba(38,36,86,.34);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---- Reset / base ------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.06; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--indigo); color: #fff; }

:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Shared bits ------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--indigo-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--indigo);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 18px; }
.section-head p  { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }

.btn {
  --btn-bg: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px -6px rgba(74,71,214,.55); }
.btn--primary:hover { background: var(--indigo-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(74,71,214,.62); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }

.tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-stuck { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.03em; }
.brand__tile {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, #7B6DF6 0%, var(--indigo) 55%, var(--indigo-deep) 100%);
  color: #fff; font-size: 17px; font-weight: 700; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.28);
}

.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav__links a { position: relative; padding: 4px 0; transition: color .2s ease; }
.nav__links a:hover { color: var(--indigo-deep); }
.nav__right { display: flex; align-items: center; gap: 14px; }

/* =========================================================================
   HERO + transformation signature
   ========================================================================= */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(60% 70% at 78% 12%, rgba(93,91,240,.10), transparent 70%),
    radial-gradient(50% 60% at 12% 0%, rgba(14,158,142,.06), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 68px); align-items: center;
}
.hero__title { font-size: clamp(2.55rem, 5.6vw, 4.5rem); font-weight: 700; margin-top: 22px; letter-spacing: -0.035em; }
.hero__title em { font-style: normal; color: var(--indigo); position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.14em;
  background: var(--indigo-tint); z-index: -1; border-radius: 3px;
}
.hero__lead { margin-top: 24px; font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 32ch; line-height: 1.55; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: "›"; color: var(--indigo); font-weight: 700; }

/* -- transformation card (THE signature) -- */
.xform { margin: 0; display: grid; gap: 12px; }
.xform__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.xform__card--in { transform: rotate(-0.5deg); }
.xform__card--out { transform: rotate(0.4deg); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--indigo) 22%, var(--line)); }
.xform__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.xform__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.tag--mono { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.tag--num  { background: var(--indigo); color: #fff; }

.xform__raw { font-size: 15.5px; line-height: 1.7; color: var(--muted); font-style: italic; }
.raw-term { color: var(--ink-soft); border-bottom: 1.5px dashed color-mix(in srgb, var(--amber) 60%, transparent); font-style: normal; }

.xform__arrow { display: flex; align-items: center; justify-content: center; position: relative; height: 8px; }
.xform__arrow::before { content: ""; position: absolute; inset: 0 40px; border-left: 2px dashed var(--line); left: 50%; height: 22px; top: -22px; }
.xform__spark {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--indigo-deep); background: var(--indigo-tint); padding: 5px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow-sm); z-index: 1;
}
.xform__spark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 3px rgba(93,91,240,.2); }

.prot { display: grid; gap: 10px; }
.prot__row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; padding: 11px 13px; border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.5; }
.prot__row--decision { background: var(--mint-tint); }
.prot__row--task { background: var(--amber-tint); }
.prot__label { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.prot__row--decision .prot__label { color: var(--mint); }
.prot__row--task .prot__label { color: var(--amber); }
.prot__row p { color: var(--ink-soft); }
.term { color: var(--ink); box-shadow: inset 0 -0.5em 0 color-mix(in srgb, var(--mint) 16%, transparent); }
.term__abbr { color: var(--muted); font-size: 0.92em; }
.prot__owner { color: var(--muted); }

.xform__foot { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.glossnote { font-family: var(--mono); font-size: 11.5px; color: var(--mint); display: inline-flex; align-items: center; gap: 7px; }

/* =========================================================================
   APP SHOWCASE — recreated Hub (fictional data)
   ========================================================================= */
.showcase { padding-block: clamp(56px, 8vw, 104px); }
.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.window__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window__url { margin-left: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--paper); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-soft); }

.hub { display: grid; grid-template-columns: 190px 1fr 172px; min-height: 396px; font-size: 13px; }
.hub__side { background: var(--surface-2); border-right: 1px solid var(--line-soft); padding: 16px 12px; }
.hub__org { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; }
.hub__org .brand__tile { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }
.hub__org b { font-family: var(--display); font-size: 14px; color: var(--ink); display: block; letter-spacing: -0.02em; }
.hub__org span { font-size: 11px; color: var(--muted); }
.hub__search { font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 7px 10px; display: flex; justify-content: space-between; margin-bottom: 16px; }
.hub__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 8px; margin-bottom: 8px; }
.hub__proj { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; color: var(--ink-soft); margin-bottom: 2px; }
.hub__proj.is-active { background: var(--indigo-tint); color: var(--indigo-deep); font-weight: 600; }
.hub__proj-ic { width: 18px; height: 18px; border-radius: 6px; background: var(--line); color: var(--muted); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.hub__proj.is-active .hub__proj-ic { background: var(--indigo); color: #fff; }
.hub__proj-n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.hub__main { padding: 20px 22px; }
.hub__crumb { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 16px; }
.hub__crumb b { color: var(--ink-soft); font-weight: 500; }
.hub__gloss-head { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.hub__gloss-head h4 { font-family: var(--display); font-size: 18px; color: var(--ink); margin: 0; }
.hub__gloss-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--indigo-tint); display: grid; place-items: center; }
.hub__gloss-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.hub__tabs { display: flex; gap: 7px; margin-bottom: 16px; flex-wrap: wrap; }
.hub__tab { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; }
.hub__tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.hub__tab i { font-family: var(--mono); font-style: normal; font-size: 10px; opacity: .6; }
.hub__tab.is-active i { opacity: .8; }
.hub__entry { border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 13px; margin-bottom: 9px; background: var(--surface); }
.hub__entry-name { font-size: 13.5px; color: var(--ink); font-weight: 500; margin-bottom: 7px; }
.hub__vars { display: flex; gap: 6px; flex-wrap: wrap; }
.hub__var { font-size: 11px; color: var(--muted); background: var(--paper); border: 1px solid var(--line-soft); border-radius: 6px; padding: 3px 8px; }

.hub__recent { border-left: 1px solid var(--line-soft); padding: 16px 12px; }
.hub__recent-item { display: flex; gap: 9px; align-items: center; padding: 7px 6px; }
.hub__avatar { width: 26px; height: 26px; border-radius: 8px; background: var(--indigo-tint); color: var(--indigo-deep); font-family: var(--mono); font-size: 9px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.hub__recent-item b { font-size: 12px; color: var(--ink); font-weight: 500; display: block; line-height: 1.3; }
.hub__recent-item span { font-size: 10.5px; color: var(--muted); }

.showcase__cap { text-align: center; margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* =========================================================================
   STEPS
   ========================================================================= */
.steps { padding-block: clamp(56px, 8vw, 100px); }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: none; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--ink); }
.step__num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--indigo-deep); position: absolute; top: -12px; background: var(--paper); padding-right: 12px; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; }
.step__ic { margin-top: 18px; color: var(--indigo); }

/* =========================================================================
   FEATURES
   ========================================================================= */
.features { padding-block: clamp(56px, 8vw, 100px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--indigo) 24%, var(--line)); }
.feature__ic { width: 42px; height: 42px; border-radius: 11px; background: var(--indigo-tint); color: var(--indigo-deep); display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 1.16rem; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

/* =========================================================================
   PRIVACY band
   ========================================================================= */
.privacy { padding-block: clamp(52px, 7vw, 92px); }
.privacy__inner {
  background: linear-gradient(135deg, #14201E 0%, #12312C 100%);
  border-radius: var(--r-xl); padding: clamp(34px, 5vw, 64px);
  color: #DCE9E5; position: relative; overflow: hidden;
}
.privacy__inner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,158,142,.35), transparent 65%);
}
.privacy__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.privacy .eyebrow { color: #6BE3CE; }
.privacy .eyebrow::before { background: #6BE3CE; }
.privacy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: 18px; }
.privacy p { color: #B4CEC7; margin-top: 16px; font-size: 1.05rem; }
.privacy__list { display: grid; gap: 14px; }
.privacy__item { display: flex; gap: 13px; align-items: flex-start; padding: 15px 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r); }
.privacy__item svg { color: #6BE3CE; flex-shrink: 0; margin-top: 2px; }
.privacy__item b { color: #fff; font-weight: 600; display: block; font-size: 1rem; }
.privacy__item span { color: #9DBAB2; font-size: 0.92rem; }

/* =========================================================================
   CTA
   ========================================================================= */
.cta { padding-block: clamp(64px, 9vw, 120px); text-align: center; }
.cta__inner { max-width: 620px; margin-inline: auto; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta p { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
.cta .btn { margin-top: 30px; font-family: var(--mono); letter-spacing: -0.01em; }
.cta__fine { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { border-top: 1px solid var(--line); padding-block: 40px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot__brand { display: flex; align-items: center; gap: 11px; }
.foot__brand .brand__tile { width: 26px; height: 26px; font-size: 14px; }
.foot__brand span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.foot__meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.foot__links { display: flex; gap: 20px; font-size: 13.5px; }
.foot__links a { color: var(--muted); }
.foot__links a:hover { color: var(--ink); }

/* =========================================================================
   Reveal animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .feature:hover { transform: none !important; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__demo { max-width: 560px; }
  .privacy__grid { grid-template-columns: 1fr; gap: 32px; }
  .steps__list { grid-template-columns: 1fr; gap: 0; }
  .step { border-top: none; padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .step:first-child { border-top: 2px solid var(--ink); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .hub { grid-template-columns: 1fr; min-height: 0; }
  .hub__side, .hub__recent { display: none; }
  .hub__main { padding: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .prot__row { grid-template-columns: 1fr; gap: 5px; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}
