@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #F8F7F4;
  color: #1E293B;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: #fde68a; color: #0f172a; }

/* === CHART CONTAINERS === */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  height: 350px;
  max-height: 450px;
}
@media (min-width: 768px) { .chart-container { height: 400px; } }

/* === GLASS CARD === */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* === NAVIGATION === */
.avi-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: #0f172a;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(217, 119, 6, 0.3);
}
.avi-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .avi-nav-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .avi-nav-inner { padding: 0 2rem; } }
.avi-nav-flex {
  display: flex;
  justify-content: space-between;
  height: 4rem;
}
.avi-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avi-nav-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}
.avi-nav-brand .brand-accent { color: #f59e0b; }
.avi-nav-brand .brand-sub {
  display: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  border-left: 1px solid #475569;
  padding-left: 0.75rem;
  margin-left: 0.75rem;
}
@media (min-width: 768px) { .avi-nav-brand .brand-sub { display: block; } }

.avi-nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  overflow-x: auto;
}
@media (min-width: 768px) { .avi-nav-links { display: flex; } }
.avi-nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.avi-nav-links a:hover { background-color: #1e293b; color: #fff; }
.avi-nav-links a.nav-scorecard {
  background-color: #d97706;
  color: #fff;
}
.avi-nav-links a.nav-scorecard:hover { background-color: #f59e0b; }
.avi-nav-links a.nav-active { color: #f59e0b; }

/* Mobile nav toggle */
.avi-mobile-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (min-width: 768px) { .avi-mobile-toggle { display: none; } }
.avi-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: #0f172a;
  border-top: 1px solid #1e293b;
}
.avi-mobile-menu.open { display: flex; }
.avi-mobile-menu a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.avi-mobile-menu a:hover { background: #1e293b; color: #fff; }

/* === HERO === */
.avi-hero {
  padding-top: 6rem;
  padding-bottom: 3rem;
  background-color: #0f172a;
  color: #fff;
  border-bottom: 1px solid #1e293b;
}
.avi-hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .avi-hero-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .avi-hero-inner { padding: 0 2rem; } }
.avi-hero-content { max-width: 75%; }
@media (max-width: 1023px) { .avi-hero-content { max-width: 100%; } }
.avi-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.avi-hero .hero-desc {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.avi-verdict-box {
  background: rgba(30, 41, 59, 0.5);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  backdrop-filter: blur(8px);
}
.avi-verdict-box h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f59e0b;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.avi-verdict-box p { color: #e2e8f0; font-size: 0.95rem; line-height: 1.7; }

/* === MAIN CONTENT === */
.avi-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
@media (min-width: 640px) { .avi-main { padding: 3rem 1.5rem; } }
@media (min-width: 1024px) { .avi-main { padding: 3rem 2rem; } }
.avi-main > section { margin-bottom: 6rem; scroll-margin-top: 6rem; }

.avi-section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.avi-section-desc {
  color: #475569;
  max-width: 56rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* === GRID HELPERS === */
.avi-grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .avi-grid-2 { grid-template-columns: 1fr 1fr; } }
.avi-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .avi-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .avi-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* === CARDS === */
.avi-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
}
.avi-card-header {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

/* === TABS === */
.avi-tabs-wrap {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.avi-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.avi-tab-btn {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
  font-family: inherit;
}
.avi-tab-btn:hover { color: #0f172a; }
.avi-tab-btn.active {
  color: #b45309;
  font-weight: 600;
  border-bottom: 2px solid #d97706;
  background: #fff;
}
.avi-tabs-body { padding: 1.5rem; }
@media (min-width: 768px) { .avi-tabs-body { padding: 2rem; } }

.tab-content { display: none; animation: aviTabFadeIn 0.3s ease-in-out; }
.tab-content.active { display: block; }
@keyframes aviTabFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.avi-pain-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .avi-pain-grid { grid-template-columns: 1fr 1fr; } }
.avi-pain-card {
  background: rgba(251, 243, 219, 0.5);
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.avi-callout {
  font-size: 0.875rem;
  color: #475569;
  background: #f1f5f9;
  padding: 1rem;
  border-radius: 0.375rem;
  border-left: 4px solid #94a3b8;
  margin-bottom: 1.5rem;
}
.avi-callout strong { color: #0f172a; }

/* === TABLE === */
.avi-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}
.avi-table {
  width: 100%;
  font-size: 0.875rem;
  text-align: left;
  border-collapse: collapse;
}
.avi-table thead {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.avi-table th { padding: 1rem 1.5rem; font-weight: 700; }
.avi-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.avi-table tbody tr:hover { background: rgba(251, 243, 219, 0.3); }
.avi-table td { padding: 1rem 1.5rem; }
.avi-table .highlight-row { border-left: 4px solid #f59e0b; }
.avi-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.avi-badge-low { background: #dcfce7; color: #166534; }
.avi-badge-med { background: #fef3c7; color: #92400e; }
.avi-badge-high { background: #fecaca; color: #991b1b; }

/* === BUYER CARDS === */
.avi-buyer-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.avi-buyer-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.avi-buyer-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.avi-buyer-tag.amber { color: #d97706; }
.avi-buyer-tag.emerald { color: #059669; }
.avi-buyer-tag.rose { color: #e11d48; }
.avi-buyer-name { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin-top: 0.25rem; }
.avi-buyer-body { flex-grow: 1; }
.avi-buyer-body .field-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.avi-buyer-body .field-value { font-size: 0.875rem; color: #1e293b; }
.avi-buyer-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

/* === PRICING CARDS === */
.avi-pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .avi-pricing-grid { grid-template-columns: 1fr 1fr 1fr; } }
.avi-price-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  position: relative;
}
.avi-price-card.featured {
  background: #0f172a;
  border-color: #d97706;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
@media (min-width: 768px) { .avi-price-card.featured { transform: translateY(-1rem); } }
.avi-price-card.featured h3 { color: #fff; }
.avi-price-card.featured .price-sub { color: #94a3b8; }
.avi-price-card.featured .price-amount { color: #fff; }
.avi-price-card.featured .price-note { color: #94a3b8; }
.avi-price-card.featured ul { color: #cbd5e1; }
.avi-price-card.featured .check { color: #f59e0b; }
.avi-price-featured-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #d97706;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-amount { font-size: 1.875rem; font-weight: 800; color: #0f172a; }
.price-period { color: #64748b; }
.price-note { font-size: 0.75rem; color: #94a3b8; margin-top: 0.25rem; }
.price-sub { font-size: 0.875rem; color: #64748b; margin-bottom: 1rem; }
.avi-price-card ul { list-style: none; margin-bottom: 2rem; }
.avi-price-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.avi-price-card .check { color: #10b981; }
.avi-price-card .cross { color: #cbd5e1; }
.avi-price-btn {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  text-align: center;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}
.avi-price-btn-light { background: #f1f5f9; color: #1e293b; }
.avi-price-btn-light:hover { background: #e2e8f0; }
.avi-price-btn-accent { background: #d97706; color: #fff; }
.avi-price-btn-accent:hover { background: #f59e0b; }

/* === GTM === */
.avi-gtm-dark {
  background: #0f172a;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  color: #cbd5e1;
}
.avi-gtm-dark h3 { color: #fff; border-bottom: 1px solid #334155; padding-bottom: 0.5rem; margin-bottom: 1rem; }
.avi-outreach-box {
  padding: 1rem;
  background: #1e293b;
  border-radius: 0.375rem;
  border: 1px solid #334155;
  font-style: italic;
  font-size: 0.875rem;
}
.avi-outreach-note { font-size: 0.75rem; color: #f59e0b; margin-top: 1rem; }

/* === ACCORDION === */
.avi-accordion {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.avi-accordion-item { border-bottom: 1px solid #f1f5f9; }
.avi-accordion-item:last-child { border-bottom: none; }
.avi-accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-weight: 700;
  color: #1e293b;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background-color 0.15s;
}
.avi-accordion-btn:hover { background: #f8fafc; }
.avi-accordion-icon { color: #d97706; font-size: 1.25rem; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-content.expanded { max-height: 1000px; transition: max-height 0.5s ease-in; }
.avi-accordion-body { padding: 0 1rem 1rem; font-size: 0.875rem; color: #475569; }

/* === SCORECARD === */
.avi-score-box {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.avi-score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.avi-score-value { font-size: 3rem; font-weight: 800; color: #d97706; }
.avi-score-max { font-size: 1.5rem; color: #94a3b8; }
.avi-score-note { font-size: 0.75rem; color: #64748b; margin-top: 0.5rem; }
.avi-metric { margin-bottom: 1rem; }
.avi-metric-header { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.25rem; }
.avi-metric-name { font-weight: 700; color: #1e293b; }
.avi-metric-rating { color: #64748b; }
.avi-metric-desc { font-size: 0.75rem; color: #475569; }

/* === TAILWINDS/HEADWINDS === */
.avi-wind-title { font-weight: 600; display: flex; align-items: center; margin-bottom: 0.5rem; gap: 0.5rem; }
.avi-wind-title.up { color: #059669; }
.avi-wind-title.down { color: #e11d48; }
.avi-wind-list { list-style: none; }
.avi-wind-list li { font-size: 0.875rem; color: #334155; margin-bottom: 0.75rem; }

/* === COMPETITOR SECTION === */
.avi-comp-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .avi-comp-grid { grid-template-columns: 1fr 1fr; } }
.avi-comp-title { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.avi-comp-dot-red { color: #ef4444; }
.avi-comp-dot-green { color: #10b981; }
.avi-comp-list { list-style: none; }
.avi-comp-list li { padding-bottom: 0.75rem; border-bottom: 1px solid #f1f5f9; margin-bottom: 0.75rem; font-size: 0.875rem; color: #334155; }
.avi-comp-list li:last-child { border-bottom: none; margin-bottom: 0; }
.avi-comp-list em { font-style: italic; color: #64748b; }
.avi-whitespace {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}
.avi-ws-card {
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #a7f3d0;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 0.75rem;
}
.avi-ws-card:last-child { margin-bottom: 0; }
.avi-ws-card strong { color: #065f46; font-size: 0.875rem; display: block; margin-bottom: 0.25rem; }
.avi-ws-card p { font-size: 0.75rem; color: #475569; }

/* === FOOTER === */
.avi-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* === BACK LINK === */
.avi-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.avi-back-link:hover { color: #f59e0b; }

/* === PREMIUM ANIMATIONS === */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Smooth Scaling on Buttons & Tabs */
.avi-tab-btn, .avi-price-btn, .nav-scorecard, .glass-card, .avi-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.avi-tab-btn:hover {
  transform: scale(1.05);
}
.avi-price-btn:hover, .nav-scorecard:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.glass-card:hover, .avi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1);
}

/* Parallax Hero Background */
.avi-hero {
  position: relative;
  overflow: hidden;
}
.avi-hero-bg {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 70%);
  z-index: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.1s linear;
}
.avi-hero-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.avi-hero-inner {
  position: relative;
  z-index: 1;
}
