/* =========================================================
   ACTA INTELLIGENCE GROUP — Base (v2: YNM-blended)
   Light, sans-serif, pill buttons. Cyan/teal anchor with green CTA.
   Editorial signals retained: mono labels, italic ledes (sparing),
   two-column hero composition, generous white space.
   ========================================================= */

:root {
  /* Type */
  --font-display: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-italic: "Fraunces", Georgia, serif;

  /* Palette */
  --paper: #FFFFFF;
  --paper-soft: #F7F8FA;
  --paper-deep: #EDF0F4;
  --ink: #0E1116;
  --ink-soft: #4A5159;
  --ink-quiet: #8A8F96;
  --rule: #E5E7EB;
  --rule-dark: #D1D5DB;

  /* YNM accents */
  --cyan: #18BCEA;
  --cyan-deep: #0E96BC;
  --green: #22C55E;
  --green-deep: #16A34A;
  --coral: #ED7470;
  --purple: #9847EF;

  --gradient: linear-gradient(90deg, var(--cyan) 0%, var(--green) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(24, 188, 234, 0.08) 0%, rgba(34, 197, 94, 0.08) 100%);

  /* Type scale */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.85rem + 1.6vw, 3.25rem);
  --step-5: clamp(2.75rem, 2.2rem + 2.3vw, 4.5rem);
  --step-6: clamp(3.25rem, 2.5rem + 3.5vw, 5.75rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --space-8: 9rem;

  /* Layout */
  --max-content: 76rem;
  --max-prose: 38rem;
  --max-narrow: 56rem;

  /* Radii & shadow (rounded, soft — matches YNM) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 1px 1px rgba(14, 17, 22, 0.03);
  --shadow-md: 0 8px 24px rgba(14, 17, 22, 0.06), 0 2px 6px rgba(14, 17, 22, 0.04);
  --shadow-lg: 0 24px 48px rgba(14, 17, 22, 0.08), 0 6px 14px rgba(14, 17, 22, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
}
h1 { font-size: var(--step-6); font-weight: 700; letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h3 { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.015em; }
p { font-size: var(--step-1); max-width: var(--max-prose); }
strong { font-weight: 600; color: var(--ink); }

/* Gradient text — used 1x per page max */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Italic editorial lede — used in hero only */
.lede {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 350;
  font-size: var(--step-2);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 36ch;
}

/* Mono eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan-deep);
  margin-bottom: var(--space-3);
}
.eyebrow.muted { color: var(--ink-quiet); }
.eyebrow::before {
  content: '— ';
  margin-right: 0.25rem;
}

/* Layout primitives */
.wrap {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
@media (min-width: 48rem) {
  .wrap { padding: 0 var(--space-5); }
}

.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-6) 0; }
.section--alt { background: var(--paper-soft); }

/* Promo strip — gradient bar at the top, echoes YNM */
.promo-strip {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 0.7rem var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
}
.promo-strip strong { color: white; font-weight: 600; }
.promo-strip .sep {
  display: inline-block;
  margin: 0 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.promo-strip a {
  color: white;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 1px;
}
.promo-strip a:hover { border-bottom-color: white; }

/* Header — pill-style nav matching YNM */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header__bar {
  max-width: calc(var(--max-content) - 0.5rem);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.65rem 0.55rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 48rem) {
  .site-header__bar { padding: 0.65rem 0.75rem 0.65rem 1.75rem; margin: 0 var(--space-3); }
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  background: var(--gradient);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.logo em { font-style: normal; font-weight: 400; color: var(--ink-soft); }

.nav { display: none; gap: 0.25rem; align-items: center; }
@media (min-width: 56rem) { .nav { display: flex; } }
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: all 200ms ease;
}
.nav a:hover { color: var(--ink); background: var(--paper-soft); }
.nav a.active {
  color: var(--ink);
  background: var(--paper-deep);
}

.nav-cta { display: none !important; }
@media (min-width: 56rem) { .nav-cta { display: inline-flex !important; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.7rem;
  border-radius: 50%;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.75px;
  background: var(--ink);
  border-radius: 2px;
}
@media (min-width: 56rem) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  margin: 0.5rem var(--space-3) 0;
  padding: var(--space-2);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.nav-mobile a:hover { background: var(--paper-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition: all 200ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: white;
}
.btn--primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: white;
}
.btn--quiet {
  background: var(--paper-soft);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn--quiet:hover {
  background: var(--paper-deep);
  border-color: var(--rule-dark);
}
.btn--link {
  padding: 0.5rem 0;
  color: var(--cyan-deep);
  font-weight: 600;
  border-radius: 0;
  position: relative;
}
.btn--link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--cyan-deep);
  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform 200ms ease;
}
.btn--link:hover::after { transform: scaleX(1); }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-4); align-items: center; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-7) 0 var(--space-4);
  margin-top: var(--space-6);
}
.site-footer .wrap { color: var(--paper); }
.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .logo { color: white; margin-bottom: var(--space-2); }
.footer-brand .logo em { color: rgba(255, 255, 255, 0.55); }
.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 24rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 200ms ease;
}
.footer-col a:hover { color: var(--cyan); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Utilities */
.dim { color: var(--ink-soft); }
.quiet { color: var(--ink-quiet); }
.cyan-text { color: var(--cyan-deep); }
.mono { font-family: var(--font-mono); }
.serif-italic { font-family: var(--font-italic); font-style: italic; }
.center { text-align: center; }

/* Reveal animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.rise-1 { animation-delay: 80ms; }
.rise-2 { animation-delay: 180ms; }
.rise-3 { animation-delay: 280ms; }
.rise-4 { animation-delay: 380ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
