/* Y22 Landing — glass + calm premium */

:root {
  --bg: #ffffff;               /* pure white */
  --bg-2: #f7f6f1;             /* section tint */
  --bg-dark: #1a1917;          /* deep near-black */
  --ink: #191817;              /* near-black charcoal */
  --ink-2: #3a3732;
  --muted: #6e6a63;
  --line: rgba(25, 24, 23, 0.08);
  --line-2: rgba(25, 24, 23, 0.14);

  --violet: #8033f3;           /* y22 brand purple */
  --violet-2: #9c5cff;
  --violet-ink: #3b1685;
  --accent-warm: #c96442;      /* warm terracotta primary accent */
  --green: #3fa07a;

  /* Glass tokens — tunable via Tweaks */
  --glass-tint: rgba(255, 255, 255, 0.55);
  --glass-tint-strong: rgba(255, 255, 255, 0.72);
  --glass-blur: 22px;
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(20, 18, 26, 0.04);
  --glass-shadow: 0 1px 1px rgba(20, 18, 26, 0.04), 0 10px 28px -12px rgba(60, 30, 160, 0.18), 0 30px 60px -24px rgba(60, 30, 160, 0.22);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --font-sans: "Inter Tight", "InterTight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(128, 51, 243, 0.7);
  outline-offset: 3px;
}

#product,
#product-detail,
#behavior-analysis,
#skill-gaps,
#use-cases,
#faq,
#cta,
#resources {
  scroll-margin-top: 120px;
}

/* --- Soft backdrop --- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f0eee6;
}
.aurora::before, .aurora::after { content: none; }
.aurora .orb-3 { display: none; }
.aurora .grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  mix-blend-mode: multiply;
}
@keyframes float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(30px, -20px, 0) scale(1.06); }
  100% { transform: translate3d(-20px, 30px, 0) scale(0.96); }
}

/* --- Surface primitives (editorial, minimal) --- */
.glass {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(25,24,23,0.03), 0 20px 40px -24px rgba(25,24,23,0.1);
  border-radius: var(--radius-lg);
}
.glass-strong {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(25,24,23,0.03), 0 24px 48px -24px rgba(25,24,23,0.12);
  border-radius: var(--radius-lg);
}
.glass-flat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
main { position: relative; z-index: 1; }
section { position: relative; }

/* --- Typography --- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-warm);
  font-weight: 500;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(44px, 6.2vw, 84px);
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.display em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--violet);
  font-variation-settings: "opsz" 72;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.08;
  font-size: clamp(32px, 4vw, 54px);
  overflow-wrap: break-word;
  /* Fallback for text-wrap: balance; */
  word-break: break-word;
  /* text-wrap: balance; removed for compatibility */
  font-variation-settings: "opsz" 60;
}
.h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--violet);
  font-variation-settings: "opsz" 60;
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 22px;
  line-height: 1.25;
}
.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
  letter-spacing: -0.005em;
}
.body {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.micro {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 14px -8px rgba(128,51,243,0.55);
}
.btn-primary:hover { background: #6d23de; }
.btn-violet {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 14px -8px rgba(128,51,243,0.55);
}
.btn-violet:hover { background: #6d23de; }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(25,24,23,0.04); }
.btn-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 500; font-size: 14.5px;
}
.btn-arrow:hover { color: var(--accent-warm); }

/* --- Utility --- */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; } .gap-xl { gap: 40px; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  border: 0;
}

/* --- Chip / pill --- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #ffffff;
  border: 1px solid var(--line);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px rgba(128,51,243,0.14); }

/* Scroll fade */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.fade-in.in { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 920px) {
  .container { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* --- Section contrast: subtle alternating tint for rhythm --- */
.section-tint {
  position: relative;
}
.section-tint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 245, 255, 0.5) 0%, rgba(245, 241, 255, 0.35) 100%);
  pointer-events: none;
  z-index: 0;
}
.section-tint > * { position: relative; z-index: 1; }
