/* ==========================================================================
   Neotyk Matrix — Editorial Light Aesthetics & Interaction Styles
   ========================================================================== */

:root {
  --bg: #fcfbf9;
  --fg: #121316;
  --fg-muted: #5e626e;
  --fg-subtle: #8a8f9d;
  --border-color: rgba(18, 19, 22, 0.08);
  --border-subtle: rgba(18, 19, 22, 0.04);
  --accent: #000000;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Subtle selection */
::selection {
  background: #111;
  color: #fff;
}

/* Editorial Button Physics */
.editorial-btn {
  appearance: none;
  min-height: 40px;
  cursor: pointer;
  border-radius: 9999px;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.editorial-btn:active {
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.96);
}

.editorial-btn.primary {
  color: #000;
  background: linear-gradient(#f7f6f5 0%, #e6e5e2 87.5%);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.editorial-btn.primary:hover {
  background: linear-gradient(#ffffff 0%, #ebeae7 87.5%);
  border-color: rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.editorial-btn.plain {
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.editorial-btn.plain:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.18);
}

/* Audience switcher tabs */
.audience-tab {
  padding: 8px 20px;
  border-radius: 9999px;
  color: rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  background: transparent;
}

.audience-tab:hover {
  color: #000;
}

.audience-tab.active {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1, h2, h3 {
  text-wrap: balance;
}

table td, table th {
  letter-spacing: -0.01em;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.22);
}

/* Pricing Grid (Cursor Inspired) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pricing-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
  border: 2px solid #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card.enterprise-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(0, 0, 0, 0.2);
}

.popular-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.coming-soon-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 600;
  margin-bottom: 6px;
}

.tier-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
}

.tier-desc {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.45;
  min-height: 44px;
}

.pricing-price-box {
  margin: 20px 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-amount .currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
}

.pricing-amount .val {
  font-size: 2.35rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-amount .unit {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono, monospace);
}

.pricing-period {
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
  color: rgba(0, 0, 0, 0.5);
  margin-top: 6px;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  padding: 10px 16px;
  margin-bottom: 24px;
}

.pricing-features-title {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.4;
}

.check-icon {
  width: 15px;
  height: 15px;
  stroke: #000000;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Resources Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger {
  color: #000000;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
  display: flex;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-dropdown-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
}

.nav-dropdown-item-desc {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 2px;
  line-height: 1.35;
}

/* Active navigation state */
.nav-link.active {
  color: #000000;
  font-weight: 600;
}
