/* ═══════════════════════════════════════════
   ARGO Manager — Apple-Minimal Design System
   Light theme ONLY
   ═══════════════════════════════════════════ */

/* ── Screen Reader Only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Base ── */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: #1d1d1f;
  background: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

h1.font-display,
h2.font-display,
h3.font-display {
  line-height: 1.1;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card Hover ── */
.card-hover {
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.card-hover-dark {
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.card-hover-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ── FAQ Accordion ── */
.faq-answer {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
}
.faq-item.open .faq-answer {
  padding-bottom: 1.5rem;
  /* JS sets max-height dynamically */
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

/* ── FAQ Filter Pills ── */
.faq-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #86868b;
  background: transparent;
  border: 1px solid #e5e5e7;
  cursor: pointer;
  transition: all 0.25s ease;
}
.faq-pill:hover {
  color: #1d1d1f;
  border-color: #1d1d1f;
}
.faq-pill.active {
  color: #ffffff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}

/* ── FAQ Filter Transitions ── */
.faq-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.faq-item.faq-hidden {
  display: none;
}

/* ── Navbar ── */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Nav CTA sweep animation */
.nav-cta {
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2563eb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 0;
}
.nav-cta:hover::before {
  transform: scaleX(1);
}
.nav-cta > * {
  position: relative;
  z-index: 1;
}
.nav-cta:hover .nav-cta-text {
  color: #ffffff;
}
.nav-cta:hover .nav-cta-circle {
  background: #ffffff;
}
.nav-cta:hover .nav-cta-circle svg {
  color: #2563eb;
}

/* ── Dot Pattern ── */
.dot-pattern {
  background-image: radial-gradient(circle, #e5e5e7 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Ambient Gradient Orbs ── */
.orb-violet {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
}
.orb-blue {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

/* ── Noise Overlay ── */
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── Marquee ── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 40s linear infinite;
}
.marquee-container {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* ── Floating Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.floating {
  animation: float 8s ease-in-out infinite;
}

/* ── Radial Fade (hero image) ── */
.radial-fade {
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* ── Mobile Menu ── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}
.mobile-menu.open {
  max-height: 500px;
}

/* ── Section label star ── */
.section-star {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Focus styles ── */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #2563eb;
}

/* ── Selection ── */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: #1d1d1f;
}

/* ── Comparison table ── */
.comparison-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Pricing AI Block ── */
.ai-block {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.08));
  border-left: 3px solid #2563eb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1rem 0;
}
.ai-volume-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin: 0.5rem 0 0.25rem;
}
.ai-volume-fill {
  height: 100%;
  width: 80%;
  background: linear-gradient(90deg, #2563eb, #6366f1);
  border-radius: 3px;
}
.ai-block-disabled {
  background: #f8fafc;
  border-left: 3px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  color: #94a3b8;
  font-size: 0.85rem;
}
.ai-block-disabled a {
  color: #2563eb;
  font-weight: 600;
}

/* ── Login Dropdown ── */
.login-dropdown-panel {
  transform: translateY(-8px);
  pointer-events: none;
}
#login-dropdown.open .login-dropdown-panel {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto;
}
