/* =========================================
   Crown Consulting Team - Styles
   Apple-inspired dark theme
   ========================================= */

:root {
  --color-bg: #0a0a0a;
  --color-text: #ffffff;
  --color-text-muted: #888888;
  --color-accent: #39FF14;
  --color-surface: #111111;
  --color-border: #222222;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-logo {
  width: 60%;
  height: auto;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-headline .line-1 {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-headline .line-2 {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 3rem auto 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 1.4s forwards;
}

.hero-credibility {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 1.6s forwards;
}

/* Chat Input */
.chat-input-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 1.2s forwards;
}

.chat-input-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  text-align: center;
}

.chat-input {
  width: 100%;
  padding: 1.5rem 4.5rem 1.5rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.4;
  background: var(--color-surface);
  border: 2px solid rgba(57, 255, 20, 0.4);
  border-radius: 20px;
  color: var(--color-text);
  caret-color: transparent;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: subtlePulse 3s ease-in-out infinite;
}

.chat-input::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
  opacity: 0.7;
}

.chat-input:focus {
  border-color: var(--color-accent);
  animation: intensePulse 1.5s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0), 0 0 10px rgba(57, 255, 20, 0.1);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1), 0 0 20px rgba(57, 255, 20, 0.15);
  }
}

@keyframes intensePulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.2), 0 0 30px rgba(57, 255, 20, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(57, 255, 20, 0.3), 0 0 40px rgba(57, 255, 20, 0.4);
  }
}

.chat-input-wrapper {
  position: relative;
}

.chat-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.chat-submit:hover {
  color: var(--color-accent);
  background: rgba(57, 255, 20, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.5s forwards;
  transition: opacity 0.3s ease;
}

.scroll-indicator svg {
  animation: bounce 2s infinite;
}

/* =========================================
   Report Modal
   ========================================= */

.report-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.report-modal.active {
  opacity: 1;
  visibility: visible;
}

.report-modal-content {
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease-out);
}

.report-modal.active .report-modal-content {
  transform: translateY(0) scale(1);
}

.report-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.report-close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
}

/* Loading State */
.report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
}

.report-loading.hidden {
  display: none;
}

.report-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.report-loading p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Report Result */
.report-result {
  display: none;
}

.report-result.show {
  display: block;
}

.report-section {
  margin-bottom: 2.5rem;
}

.report-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.report-issue {
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.5;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: 12px;
  border-left: 3px solid var(--color-accent);
}

.report-recommendation {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.7;
}

.report-recommendation p {
  margin-bottom: 1rem;
}

.report-recommendation p:last-child {
  margin-bottom: 0;
}

.report-recommendation a {
  color: var(--color-accent);
  text-decoration: none;
}

.report-recommendation a:hover {
  text-decoration: underline;
}

.report-cta {
  display: block;
  width: 100%;
  padding: 1.25rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.3);
}

.report-disclaimer {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.report-disclaimer strong {
  color: var(--color-text);
}

/* =========================================
   Consultation Form Modal
   ========================================= */

.form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-modal.active {
  opacity: 1;
  visibility: visible;
}

.form-modal-content {
  width: 100%;
  max-width: 500px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease-out);
}

.form-modal.active .form-modal-content {
  transform: translateY(0) scale(1);
}

.form-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.form-close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-group .optional {
  opacity: 0.6;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

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

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

.form-submit {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success.show {
  display: block;
}

.form-success svg {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.form-success p {
  font-size: 1.125rem;
  color: var(--color-text);
}

#consultationForm.hidden {
  display: none;
}

/* =========================================
   Case Studies Section
   ========================================= */

.case-studies {
  padding: 0;
}

.case-study {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.case-study.visible {
  opacity: 1;
  transform: translateY(0);
}

.case-content {
  flex: 1;
  max-width: 600px;
}

.case-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.case-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.case-description {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Case Study Visuals */
.case-visual {
  flex: 0 0 350px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 01 - Compliance AI Visual */
.compliance-visual .doc-container {
  position: relative;
  width: 200px;
}

.compliance-visual .doc-page {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compliance-visual .doc-line {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  width: 100%;
}

.compliance-visual .doc-line.updating {
  animation: docUpdate 3s infinite;
}

.compliance-visual .doc-line.delay-1 {
  animation-delay: 1s;
}

.compliance-visual .doc-line.delay-2 {
  animation-delay: 2s;
}

.compliance-visual .reg-indicator {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
}

.compliance-visual .reg-label {
  font-size: 0.7rem;
  color: var(--color-accent);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

.compliance-visual .reg-label::after {
  content: 'PG&E';
  animation: cycleRegs 6s infinite;
}

@keyframes docUpdate {
  0%, 40%, 100% {
    background: var(--color-border);
  }
  20% {
    background: var(--color-accent);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
  }
}

@keyframes cycleRegs {
  0%, 30% { content: 'PG&E'; }
  33%, 63% { content: 'Cal-OSHA'; }
  66%, 96% { content: 'CA Labor'; }
}

/* 02 - Certification Pipeline Visual */
.pipeline-visual {
  flex-direction: column;
  gap: 1.5rem;
}

.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
}

.pipeline-node {
  width: 80px;
  height: 80px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.pipeline-node span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-display);
}

.pipeline-node.certified {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.pipeline-node.certified svg {
  color: var(--color-accent);
}

.pipeline-node.certified span {
  color: var(--color-accent);
}

.pipeline-connector {
  width: 40px;
  height: 2px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.pipeline-pulse {
  position: absolute;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: pulseLine 2s infinite;
}

.pipeline-pulse.delay-1 {
  animation-delay: 1s;
}

@keyframes pulseLine {
  0% { transform: translateX(-20px); }
  100% { transform: translateX(40px); }
}

.cert-badges {
  display: flex;
  gap: 0.75rem;
}

.cert-badge {
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-accent);
  opacity: 0.8;
}

/* 03 - Bid Intelligence Visual */
.bid-visual .bid-cards {
  display: flex;
  gap: 1rem;
}

.bid-card {
  width: 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bid-card-header {
  height: 6px;
  width: 60%;
  background: var(--color-text-muted);
  border-radius: 3px;
  opacity: 0.5;
}

.bid-card-line {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
}

.bid-card-line.short {
  width: 70%;
}

.bid-status {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  padding: 0.25rem;
  border-radius: 4px;
}

.bid-status.go {
  background: rgba(57, 255, 20, 0.15);
  color: var(--color-accent);
}

.bid-status.nogo {
  background: rgba(255, 100, 100, 0.1);
  color: #ff6464;
}

.bid-status.pending {
  color: var(--color-text-muted);
  animation: pendingPulse 1.5s infinite;
}

.bid-card.evaluating {
  animation: cardEvaluate 3s infinite;
}

@keyframes pendingPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes cardEvaluate {
  0%, 80%, 100% {
    border-color: var(--color-border);
  }
  40% {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
  }
}

/* 04 - Living Documents Visual */
.docs-visual .docs-stack {
  position: relative;
  width: 180px;
  height: 220px;
}

.docs-visual .docs-page {
  position: absolute;
  width: 160px;
  height: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.docs-visual .docs-page.back-2 {
  top: 8px;
  left: 16px;
  opacity: 0.3;
}

.docs-visual .docs-page.back-1 {
  top: 4px;
  left: 8px;
  opacity: 0.5;
}

.docs-visual .docs-page.front {
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: docSlide 4s infinite;
}

.docs-visual .docs-line {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
}

.docs-visual .docs-line.highlight {
  background: var(--color-accent);
  opacity: 0.6;
  animation: highlightPulse 2s infinite;
}

.docs-visual .docs-timestamp {
  margin-top: auto;
  font-size: 0.6rem;
  color: var(--color-accent);
  font-family: var(--font-display);
  opacity: 0.8;
}

@keyframes docSlide {
  0%, 90%, 100% {
    transform: translateY(0);
  }
  95% {
    transform: translateY(-5px);
  }
}

@keyframes highlightPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* =========================================
   Services Section
   ========================================= */

.services {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.services.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem;
  max-width: 1000px;
}

.service-item {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
  cursor: default;
}

.service-item:hover {
  color: var(--color-accent);
}

.service-divider {
  width: 6px;
  height: 6px;
  background: var(--color-text-muted);
  border-radius: 50%;
}

/* =========================================
   Founders Section
   ========================================= */

.founders {
  padding: 8rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.founder {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.founder.visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.founder-bio {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =========================================
   CTA Section
   ========================================= */

.cta {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
}

.cta-button {
  display: inline-block;
  padding: 1.25rem 3rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  background: var(--color-accent);
  color: #000;
  text-decoration: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.4);
}

.cta-alt {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.cta-input-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.cta-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15);
}

.cta-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.cta-submit:hover {
  color: var(--color-accent);
}

/* =========================================
   Footer
   ========================================= */

.footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* =========================================
   Animations
   ========================================= */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

@keyframes typingPulse {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================
   Scrollbar
   ========================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* =========================================
   Selection
   ========================================= */

::selection {
  background: var(--color-accent);
  color: #000;
}

/* =========================================
   Mobile Adjustments
   ========================================= */

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
  }

  .hero-logo {
    max-width: 90%;
    margin-bottom: 2rem;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .chat-input {
    font-size: 1rem;
    padding: 1.25rem 3.5rem 1.25rem 1.25rem;
  }

  .chat-modal-content {
    max-height: 90vh;
    border-radius: 20px;
  }

  .chat-messages {
    padding: 3.5rem 1rem 1rem;
  }

  .chat-message {
    max-width: 90%;
  }

  .case-study {
    flex-direction: column;
    min-height: auto;
    padding: 6rem 1.5rem;
    gap: 3rem;
  }

  .case-visual {
    flex: 0 0 auto;
    height: auto;
    width: 100%;
    max-width: 300px;
  }

  .service-divider {
    display: none;
  }

  .services-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .founders {
    padding: 4rem 1.5rem;
    gap: 3rem;
  }

  .cta {
    min-height: auto;
    padding: 6rem 1.5rem;
  }

  .form-modal-content {
    padding: 2rem 1.5rem;
  }
}
