/*
Theme Name: AI Agency Stack
Theme URI: https://aiagencystack.com
Author: AI Agency Stack
Author URI: https://aiagencystack.com
Description: A blazing-fast, minimal FSE WordPress theme for AI agency directories and SaaS products. Built for 100/100 PageSpeed, GEO-optimized for 2026.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aiagencystack
Tags: full-site-editing, block-themes, dark, minimal, saas, one-column
*/

/* ==========================================================================
   CRITICAL CSS — Inlined for zero render-blocking
   ========================================================================== */

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #09090B;
  color: #FAFAFA;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100svh;
  overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY SCALE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: #FAFAFA;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

p {
  color: #A1A1AA;
  line-height: 1.75;
}

a {
  color: #818CF8;
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover { color: #FAFAFA; }

code, pre {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.875em;
}

/* ==========================================================================
   LAYOUT SYSTEM
   ========================================================================== */

.wp-site-blocks {
  padding-inline: max(1.5rem, (100% - 1200px) / 2);
}

/* Override for full-width sections */
.alignfull {
  margin-inline: calc(-1 * max(1.5rem, (100% - 1200px) / 2));
  padding-inline: max(1.5rem, (100% - 1200px) / 2);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(63, 63, 70, 0.5);
  padding-block: 1rem;
}

.site-header .wp-block-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #A1A1AA;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 150ms ease;
}
.site-header .wp-block-navigation a:hover {
  color: #FAFAFA;
  background: rgba(255,255,255,0.06);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: 8rem 6rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #818CF8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ==========================================================================
   BUTTONS / CTA
   ========================================================================== */

.wp-block-button .wp-block-button__link {
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Primary CTA */
.wp-block-button.is-style-primary .wp-block-button__link {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #FAFAFA;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
  font-size: 0.9375rem;
}
.wp-block-button.is-style-primary .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.5);
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
}

/* Ghost CTA */
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent;
  color: #A1A1AA;
  border: 1px solid #3F3F46;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  color: #FAFAFA;
  border-color: #71717A;
  background: rgba(255,255,255,0.04);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: #1C1C1F;
  border: 1px solid #3F3F46;
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 250ms ease;
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 40px rgba(99,102,241,0.12), 0 4px 12px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

/* ==========================================================================
   BADGE / LABEL
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-new    { background: rgba(99,102,241,0.15); color: #818CF8; border: 1px solid rgba(99,102,241,0.3); }
.badge-hot    { background: rgba(245, 158, 11, 0.12); color: #FCD34D; border: 1px solid rgba(245,158,11,0.25); }
.badge-free   { background: rgba(34, 197, 94, 0.12); color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.badge-pro    { background: rgba(99,102,241,0.2); color: #A5B4FC; border: 1px solid rgba(99,102,241,0.4); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366F1;
  margin-bottom: 1rem;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, transparent);
  border: none;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Stats bar */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  background: #1C1C1F;
  border: 1px solid #3F3F46;
  border-radius: 1rem;
}

.stat-item .stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FAFAFA;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.8125rem;
  color: #71717A;
  margin-top: 0.25rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #09090B;
  border-top: 1px solid #1C1C1F;
  padding-block: 4rem 2rem;
}

.footer-logo-tagline {
  font-size: 0.8125rem;
  color: #52525B;
  margin-top: 0.5rem;
  max-width: 220px;
  line-height: 1.5;
}

/* ==========================================================================
   AFFILIATE / AD SLOTS
   ========================================================================== */

.ad-slot {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px dashed #3F3F46;
  background: #1C1C1F;
}

.ad-slot-label {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #52525B;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-gradient {
  background: linear-gradient(135deg, #FAFAFA 30%, #818CF8 70%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: #818CF8; }
.text-muted  { color: #71717A; }
.text-ghost  { color: #A1A1AA; }

.glow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6366F1;
  box-shadow: 0 0 10px rgba(99,102,241,0.8);
  display: inline-block;
}

/* ==========================================================================
   SCROLLBAR — Minimal Dark
   ========================================================================== */

::-webkit-scrollbar               { width: 6px; }
::-webkit-scrollbar-track         { background: #09090B; }
::-webkit-scrollbar-thumb         { background: #3F3F46; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover   { background: #52525B; }

/* ==========================================================================
   FOCUS STATES — Accessibility
   ========================================================================== */

:focus-visible {
  outline: 2px solid #6366F1;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .hero-section { min-height: 75svh; padding-block: 5rem 4rem; }
  .stats-bar { gap: 1.5rem; }
  .stat-item .stat-value { font-size: 1.75rem; }
}

/* ==========================================================================
   PRINT — Strip decorative styles
   ========================================================================== */

@media print {
  .hero-section::before, .card::before { display: none; }
  body { background: white; color: black; }
}
