/* =========================================================================
   TALENRY — Shared component styles (Syphon Labs light editorial system)
   Used by index, pricing, features, contact.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: rgba(37,99,235,0.18); color: var(--brand-accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ============================ BACKGROUND BANDS ============================ */
/* Marketing rhythm: white <-> paper, with ink / ink-2 dark interludes.
   Never introduce a third light tone (DESIGN_SYSTEM §2.5). */
.bg-paper { background: var(--paper); }
.bg-alt   { background: var(--paper); }   /* legacy alias */
.bg-ink   { background: var(--ink); }
.bg-ink-2 { background: var(--ink-2); }

/* Any dark section flips text + accent color. */
.on-dark { color: #EEF2FB; --accent-color: var(--brand-dark); }
.on-dark .section-head p,
.on-dark p { color: #AEB6CC; }
.on-dark .section-head h2,
.on-dark h2, .on-dark h3 { color: #F4F6FC; }
.on-dark .eyebrow { color: #8A94AC; }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med), background var(--dur-med);
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,0.88); }
.nav .inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 28px; width: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { color: var(--neutral-600); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-md); transition: color var(--dur-fast), background var(--dur-fast); }
.nav-links a:hover, .nav-links a.active { color: var(--foreground); background: var(--neutral-100); }
.nav-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.nav-signin { color: var(--neutral-600); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color var(--dur-fast); }
.nav-signin:hover { color: var(--foreground); }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin: -8px -8px -8px 0;
  align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: var(--radius-md);
  color: var(--neutral-700); cursor: pointer; transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-toggle:hover { color: var(--foreground); background: var(--neutral-100); }
.nav-toggle i { width: 22px; height: 22px; }

/* Center the nav links in the header on desktop, independent of the
   brand (left) and actions (right) widths. Mobile keeps its dropdown panel. */
@media (min-width: 881px) {
  .nav .inner { position: relative; }
  .nav-links {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ============================ BUTTONS ============================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer;
  padding: 11px 22px; border-radius: var(--radius-pill); border: none;
  background: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  font-family: inherit;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-primary svg { transition: transform var(--dur-med); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary.sm { padding: 8px 15px; font-size: 14px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--foreground); text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--neutral-300);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  font-family: inherit;
}
.btn-ghost:hover { background: var(--neutral-50); border-color: var(--neutral-400); }
.btn-ghost .play { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.btn-ghost.sm { padding: 8px 14px; font-size: 14px; }

/* Ghost button on dark surfaces (hero) */
.on-dark .btn-ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #EEF2FB; }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.30); }

/* ============================ TYPE HELPERS ============================ */
/* Eyebrow — JetBrains Mono, uppercase, with optional 4px leading rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--neutral-500);
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: currentColor; opacity: 0.5; flex: none; }
.eyebrow svg { display: none; }  /* eyebrows are text-only labels */

/* Italic-serif accent — the signature Syphon typographic moment */
.accent, .grad-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-color);
}

/* Badge — small status pill */
.badge {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: #C3CBDD;
  padding: 6px 14px 6px 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.on-dark .badge .dot { background: #34D399; }
.badge .tag { font-size: 11px; font-weight: 600; color: var(--brand-sky); background: rgba(37,99,235,0.20); padding: 2px 8px; border-radius: var(--radius-pill); }
/* Badge on light surfaces */
.badge.light { background: #fff; border-color: var(--neutral-200); color: var(--neutral-700); box-shadow: var(--shadow-sm); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.section-head .eyebrow { margin-bottom: 0; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: 1.12; margin: 0; }
.section-head p { color: var(--neutral-600); font-size: 18px; line-height: 1.6; margin: 0 auto; max-width: 600px; }

section { position: relative; z-index: 1; }
.sec-pad { padding: 96px 0; }
.hairline { height: 1px; background: var(--border); border: none; margin: 0; }

/* ============================ REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .frow .fr-copy, .frow .fr-demo { opacity: 1 !important; transform: none !important; }
}

/* ===================== KEYBOARD FOCUS ===================== */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================ FOOTER ============================ */
.footer { padding: 72px 0 40px; background: var(--ink); color: #EEF2FB; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer .brand { margin-bottom: 18px; }
.footer .brand-logo { height: 28px; filter: brightness(0) invert(1); }
.footer .tagline { color: #8A94AC; font-size: 14.5px; line-height: 1.6; max-width: 280px; }
.footer .socials { display: flex; gap: 10px; margin-top: 22px; }
.footer .socials a, .footer .socials .social-icon { width: 36px; height: 36px; border-radius: var(--radius-md); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); display: grid; place-items: center; color: #8A94AC; transition: all var(--dur-fast); text-decoration: none; }
.footer .socials a:hover { color: #fff; border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.10); }
.footer .socials svg { width: 17px; height: 17px; }
.footer .col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: #6A7488; text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); margin: 0 0 18px; }
.footer .col a { display: block; color: #AEB6CC; text-decoration: none; font-size: 14.5px; margin-bottom: 13px; transition: color var(--dur-fast); }
.footer .col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.10); color: #6A7488; font-size: 13.5px; flex-wrap: wrap; gap: 12px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-signin { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    padding: 10px; margin: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 13px 16px; font-size: 16px; border-radius: var(--radius-md); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
