/* AVA AI Design System */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* Base Theme - Dark charcoal with depth */
  --bg-primary: #0f0f12;
  --bg-secondary: #1a1a1f;
  --bg-tertiary: #24242b;
  --bg-card: #16161b;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  /* AVA AI Gradient Colors - Subtle waveform palette */
  --gradient-purple: #7c3aed;  /* Deep purple */
  --gradient-blue: #2563eb;     /* Bright blue */
  --gradient-green: #059669;    /* Vivid green */
  --gradient-orange: #ea580c;   /* Warm orange */
  --gradient-yellow: #ca8a04;   /* Golden yellow */
  
  /* Primary accent - use blue as main accent (middle of waveform) */
  --accent-primary: #2563eb;
  --accent-secondary: #7c3aed;  /* Purple for variety */
  
  /* BookBase Rose Gold/Copper */
  --rose-gold: #d4a574;
  --rose-gold-light: #e8c4a0;
  --rose-gold-dark: #b8935a;
  
  /* Gradients */
  --gradient-ava: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #059669 100%);
  --gradient-ava-subtle: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
  --gradient-bookbase: linear-gradient(135deg, #e8b88a 0%, #d4a574 50%, #b8935a 100%);
  --gradient-hero-glow: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  --gradient-card-hover: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-flow {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

/* Header & Navigation */
header {
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-ava-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-ava-subtle);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: var(--gradient-bookbase);
  color: #1a1a1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 165, 116, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(26, 26, 31, 0.98) 100%);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.card-icon.ava {
  background: var(--gradient-ava-subtle);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.card-icon.bookbase {
  background: var(--gradient-bookbase);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl) 0 var(--spacing-xl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero-glow);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  background: var(--gradient-ava-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Brisbane / location badge */
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rose-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-sm);
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(212, 165, 116, 0.35);
  border-radius: 100px;
}

/* Waveform Visual */
.waveform {
  width: 100%;
  max-width: 560px;
  height: 120px;
  margin: var(--spacing-lg) auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.waveform svg {
  width: 100%;
  height: 100%;
}

/* Hero waveform - divider below buttons, no overlap */
.hero-waveform {
  width: 100%;
  max-width: 400px;
  height: 60px;
  margin-top: var(--spacing-lg);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.hero-waveform svg {
  width: 100%;
  height: 100%;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

/* Problem cards - flow feel with connecting accent */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem-card {
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.problem-card:nth-child(1) { border-left-color: rgba(59, 130, 246, 0.6); }
.problem-card:nth-child(2) { border-left-color: rgba(6, 182, 212, 0.6); }
.problem-card:nth-child(3) { border-left-color: rgba(16, 185, 129, 0.6); }

.problem-card:hover {
  transform: translateX(4px);
}

/* Services flow - vertical rhythm between cards */
.services-flow {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Service cards - alternating layout */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-lg);
  align-items: start;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.service-card.alt {
  grid-template-columns: 1.2fr 1fr;
}

.service-card .service-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-wrap .card-icon {
  margin-bottom: 0;
}

.service-icon-large {
  font-size: 3rem;
  width: 5rem;
  height: 5rem;
  min-width: 5rem;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card.alt .service-icon-wrap {
  order: 2;
}

.service-card.alt .service-body {
  order: 1;
}

@media (max-width: 768px) {
  .service-card,
  .service-card.alt {
    grid-template-columns: 1fr;
  }
  .service-card.alt .service-icon-wrap { order: 1; }
  .service-card.alt .service-body { order: 2; }
}

.service-card .card {
  text-align: left;
  height: 100%;
}

.service-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-gold);
  margin-bottom: 0.5rem;
}

.service-meta {
  color: var(--rose-gold-light);
  font-weight: 600;
}

/* Flow Diagram */
.flow-diagram {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.flow-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  position: relative;
}

.flow-step::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 2.5rem;
  font-size: 1.25rem;
  color: var(--accent-primary);
  opacity: 0.6;
}

.flow-step:last-child::after {
  display: none;
}

.flow-step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-ava-subtle);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.footer-section h4 {
  margin-bottom: var(--spacing-sm);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--accent-primary);
}

.footer-section p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  border-color: rgba(59, 130, 246, 0.35);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-ava-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  margin: var(--spacing-md) 0;
  background: var(--gradient-ava-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* FAQ */
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
  border-color: rgba(59, 130, 246, 0.25);
}

.faq-question {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: var(--spacing-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .flow-step::after {
    display: none;
  }
  
  .flow-diagram {
    flex-direction: column;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.gradient-text {
  background: var(--gradient-ava-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-bookbase {
  background: var(--gradient-bookbase);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

