/* Aventran — Modern Editorial Studio styles
   Token names preserved; values updated to bone + ink + cobalt + peach. */

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #F5F1EA;
  color: #0A0A0B;
  font-feature-settings: "kern", "liga", "ss01", "tnum";
}
.font-display { font-family: 'Manrope', system-ui, sans-serif; letter-spacing: -0.025em; }
.font-serif   { font-family: 'DM Serif Display', Georgia, serif; letter-spacing: -0.01em; }

::selection { background: #0A0A0B; color: #F5F1EA; }

/* Italic editorial accent — used inside oversized headlines for a moment of personality */
.accent-italic {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #0E5DCF;
  letter-spacing: -0.01em;
}

/* Eyebrow tag — small uppercase label with leading cobalt rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0E5DCF;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #0E5DCF;
}

/* Subtle paper grain for hero — slightly cooler than before */
.grain {
  background-image:
    radial-gradient(rgba(10, 10, 11, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(14, 93, 207, 0.04) 1px, transparent 1px);
  background-size: 26px 26px, 18px 18px;
  background-position: 0 0, 9px 9px;
}

/* Marquee row — used in trust strip */
.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}

/* Chat bubbles — bone in, ink out */
.bubble-bot {
  background: #DCD7CB;
  color: #0A0A0B;
  border-radius: 16px 16px 16px 4px;
}
.bubble-user {
  background: #0A0A0B;
  color: #F5F1EA;
  border-radius: 16px 16px 4px 16px;
}
.bubble-user strong { color: #7BA6F2; font-weight: 600; }

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #737067;
  display: inline-block;
  animation: blink 1.4s infinite both;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-2px); }
}

/* Forms */
.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4F4D47;
  margin-bottom: 0.5rem;
}
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #BFBAAF;
  border-radius: 0.625rem;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  color: #0A0A0B;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: #0E5DCF;
  box-shadow: 0 0 0 3px rgba(14, 93, 207, 0.15);
}
.field-textarea { resize: vertical; min-height: 7rem; }
.field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #C03A2B;
}
.field-input.invalid,
.field-select.invalid,
.field-textarea.invalid { border-color: #C03A2B; }
.field-input.invalid + .field-error,
.field-select.invalid + .field-error,
.field-textarea.invalid + .field-error { display: block; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: #0A0A0B;
  color: #F5F1EA;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 0.15s, transform 0.05s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.93rem;
  letter-spacing: -0.005em;
}
.btn-primary:hover  { background: #1B1A1F; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: transparent;
  color: #0A0A0B;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #0A0A0B;
  transition: background-color 0.15s, color 0.15s;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.93rem;
}
.btn-secondary:hover { background: #0A0A0B; color: #F5F1EA; }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: #0E5DCF;
  color: #F5F1EA;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 0.15s;
  border: none;
  font-family: inherit;
  font-size: 0.93rem;
}
.btn-accent:hover { background: #0846A1; }

/* Brand wordmark — display sans with a tiny cobalt dot */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}
.wordmark .text {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
  color: #0A0A0B;
  line-height: 1;
}
.wordmark .dot {
  width: 0.4rem;
  height: 0.4rem;
  background: #0E5DCF;
  border-radius: 9999px;
  align-self: end;
  margin-bottom: 0.2rem;
}

/* Oversized numeral used in feature rows */
.numeral {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #0A0A0B;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

/* Bento card primitive */
.bento {
  background: #FFFFFF;
  border: 1px solid #DCD7CB;
  border-radius: 1.25rem;
}

/* Step indicator (signup wizard) */
.step-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: #DCD7CB;
  color: #4F4D47;
}
.step-dot.active { background: #0A0A0B; color: #F5F1EA; }
.step-dot.done   { background: #0E5DCF; color: #F5F1EA; }

/* Inline form-success surface */
.form-success {
  display: none;
  padding: 1.5rem;
  background: #EDE7DA;
  border: 1px solid #BFBAAF;
  border-radius: 0.75rem;
}
.form-success.visible { display: block; }

/* ============================
   Motion — gentle, professional
   ============================ */

/* Keyframes */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.75; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
@keyframes shimmerUnderline {
  from { background-size: 0% 2px; }
  to   { background-size: 100% 2px; }
}

/* Hero cascade — runs on page load */
.hero-enter > * {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.85s cubic-bezier(.2,.7,.2,1) both;
}
.hero-enter > *:nth-child(1) { animation-delay: 0.08s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.22s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.36s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.50s; }

/* Scroll-triggered reveal — class is added by IntersectionObserver in app.js */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* Staggered reveal — direct children animate one after another */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal-stagger].is-in > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].is-in > *:nth-child(1) { transition-delay: 0.04s; }
[data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: 0.20s; }
[data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: 0.28s; }
[data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: 0.36s; }
[data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: 0.44s; }
[data-reveal-stagger].is-in > *:nth-child(7) { transition-delay: 0.52s; }

/* Bento hover lift */
.bento {
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.3s cubic-bezier(.2,.7,.2,1),
              border-color 0.3s ease;
}
.bento.lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -10px rgba(10,10,11,0.12), 0 4px 10px -4px rgba(10,10,11,0.06);
  border-color: #BFBAAF;
}

/* Wordmark dot — gentle continuous pulse */
.wordmark .dot {
  animation: dotPulse 2.6s ease-in-out infinite;
  transform-origin: center;
}

/* Scroll cue — small bob on the "scroll for demo" text */
.scroll-bob { animation: bob 2.2s ease-in-out infinite; display: inline-block; }

/* Accent italic — underline that grows in on reveal */
[data-reveal].is-in .accent-italic,
.hero-enter .accent-italic {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 2px;
  animation: shimmerUnderline 1.4s cubic-bezier(.2,.7,.2,1) 0.6s both;
  padding-bottom: 0.05em;
}

/* Eyebrow rule grows in */
[data-reveal].is-in .eyebrow::before {
  animation: shimmerUnderline 0.9s cubic-bezier(.2,.7,.2,1) 0.15s both;
  background-size: 100% 1px;
}

/* Buttons — gentle press feel */
.btn-primary, .btn-secondary, .btn-accent {
  transition: background-color 0.2s, color 0.2s, transform 0.08s ease-out, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary:hover { transform: translateY(-1px); }
.btn-accent:hover { transform: translateY(-1px); }
.btn-primary:active, .btn-secondary:active, .btn-accent:active { transform: translateY(1px); }

/* Reduced motion override — disable everything */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-enter > *,
  [data-reveal],
  [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}
