/* ============================================================
   Maestro365 — standalone product landing page
   Self-contained: palette + type mirror the product design system,
   but this page stands on its own (no external brand attribution).
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Borna';
  src: url('./assets/fonts/Borna-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --blue-1: #182556;
  --blue-2: #122887;
  --blue-3: #2C49EF;
  --blue-4: #7D96FF;
  --blue-5: #76EFFF;
  --navy-deep: #0B1330;
  --navy-900: #0E1838;
  --navy-800: #131D42;
  --navy-700: #16204A;

  --white: #FFFFFF;
  --ink-1: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.60);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.20);

  --success: #34C07D;
  --danger: #F26D6D;

  --font-display: 'Borna', 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --maxw: 1120px;
  --gutter: 24px;

  --grad-brand: linear-gradient(115deg, var(--blue-1) 0%, var(--blue-2) 42%, var(--blue-3) 100%);
  --grad-accent: linear-gradient(120deg, var(--blue-3) 0%, var(--blue-4) 100%);

  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink-1); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; padding: 10px 16px; background: var(--blue-3); color: #fff;
  border-radius: var(--radius-sm); z-index: 200;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; line-height: 1;
  padding: 11px 18px; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 13px 24px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-3); color: #fff; box-shadow: 0 8px 24px rgba(44, 73, 239, 0.35); }
.btn--primary:hover { background: var(--blue-2); box-shadow: 0 10px 30px rgba(44, 73, 239, 0.45); }
.btn--outline { border-color: var(--line-strong); color: #fff; background: rgba(255,255,255,0.04); }
.btn--outline:hover { border-color: var(--blue-4); background: rgba(125, 150, 255, 0.12); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: #fff; }
.btn:focus-visible { outline: 2px solid var(--blue-5); outline-offset: 2px; }

.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue-4); margin-bottom: 14px;
}

/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { height: 22px; width: auto; }
.brand__name { font-family: var(--font-display); font-size: 19px; color: #fff; letter-spacing: 0.01em; }
.brand__accent { color: var(--blue-4); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 19, 48, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { font-size: 14px; color: var(--ink-2); transition: color .2s ease; white-space: nowrap; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s ease; }
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 6vw, 72px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(44, 73, 239, 0.45), transparent 70%),
    radial-gradient(closest-side at 72% 30%, rgba(118, 239, 255, 0.20), transparent 70%),
    radial-gradient(closest-side at 55% 80%, rgba(125, 150, 255, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; }
.hero__title {
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__title-accent {
  display: block;
  background: linear-gradient(100deg, var(--blue-4) 0%, var(--blue-5) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(15px, 1.7vw, 17px); color: var(--ink-2); max-width: 640px; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 20px 44px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__proof li { display: flex; flex-direction: column; gap: 4px; }
.hero__proof strong { font-family: var(--font-display); font-size: 28px; color: #fff; line-height: 1; }
.hero__proof span { font-size: 13px; color: var(--ink-3); max-width: 180px; }

/* ---------- Trust strip ---------- */
.strip { border-block: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.strip__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 36px; padding: 18px 0; }
.strip__label { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }
.strip__items { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.strip__items span { font-family: var(--font-sans); font-weight: 500; font-size: 14px; color: var(--ink-2); opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 84px) 0; }
.section--alt { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-deep) 100%); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.14; }
.section__lede { font-size: 15px; color: var(--ink-2); margin-top: 14px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 16px;
  color: var(--blue-4);
  background: rgba(44, 73, 239, 0.16); border: 1px solid rgba(125, 150, 255, 0.22);
}
.card__icon svg { width: 18px; height: 18px; }
.card__title { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 22px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.step__num { font-family: var(--font-display); font-size: 13px; color: var(--blue-4); letter-spacing: 0.08em; }
.step__title { font-size: 17px; margin: 10px 0 6px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* ---------- Governance split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--navy-deep);
  background: var(--blue-5);
}
.ladder {
  display: grid; gap: 12px; padding: 20px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.ladder__row {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue-4); background: rgba(255,255,255,0.03);
}
.ladder__row--auto { border-left-color: var(--blue-5); }
.ladder__row--approve { border-left-color: var(--blue-4); }
.ladder__row--escalate { border-left-color: #F2A65A; }
.ladder__tag { font-family: var(--font-display); font-size: 15px; color: #fff; }
.ladder__desc { font-size: 13px; color: var(--ink-3); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-sans); font-weight: 500; font-size: 14px; color: var(--ink-1);
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04);
}
.chip--more { color: var(--blue-4); border-style: dashed; }
.chip--sm { font-size: 13px; padding: 7px 14px; }

/* ---------- Tenant demo cards ---------- */
.tenants { display: grid; gap: 12px; }
.tenant {
  display: grid; gap: 5px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tenant:hover { transform: translateY(-2px); border-color: var(--blue-4); box-shadow: var(--shadow-md); }
.tenant__name { font-family: var(--font-display); font-size: 17px; color: var(--ink-1); }
.tenant__desc { font-size: 13px; color: var(--ink-3); }
.tenant__go { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--blue-4); }
.tenant:hover .tenant__go { color: var(--blue-5); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(64px, 8vw, 96px) 0; overflow: hidden; text-align: center; }
.cta__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(44, 73, 239, 0.40), transparent 72%),
    radial-gradient(closest-side at 50% 100%, rgba(118, 239, 255, 0.16), transparent 72%);
}
.cta__inner { position: relative; z-index: 1; max-width: 640px; }
.cta__title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; }
.cta__sub { font-size: 16px; color: var(--ink-2); margin: 16px auto 28px; max-width: 540px; }
.cta__form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta__input {
  flex: 1 1 260px; max-width: 340px; padding: 12px 18px; font-size: 15px;
  color: #fff; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-family: var(--font-sans);
}
.cta__input::placeholder { color: var(--ink-3); }
.cta__input:focus-visible { outline: 2px solid var(--blue-5); outline-offset: 2px; border-color: var(--blue-4); }
.cta__input--error { border-color: var(--danger); }
.cta__input:disabled { opacity: 0.6; }
.cta__status { margin-top: 14px; font-size: 14px; font-weight: 600; }
.cta__status:empty { display: none; }
.cta__status--success { color: var(--success); }
.cta__status--error { color: var(--danger); }
.cta__note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--navy-900); padding-top: 48px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 36px; }
.footer__tagline { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 260px; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col { display: grid; gap: 9px; align-content: start; }
.footer__col h4 { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: var(--ink-2); transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 20px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3);
}
.footer__legal-links { display: flex; gap: 22px; }
.footer__legal-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile {
    display: none; flex-direction: column; gap: 6px; padding: 14px var(--gutter) 22px;
    background: rgba(11, 19, 48, 0.98); border-bottom: 1px solid var(--line);
  }
  .nav__mobile.is-open { display: flex; }
  .nav__mobile a { padding: 12px 4px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  .nav__mobile a:last-child { border-bottom: 0; margin-top: 8px; }
  .nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__proof { gap: 24px; }
  .hero__proof li { flex: 1 1 40%; }
}
@media (max-width: 520px) {
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .footer__cols { gap: 40px; }
}
