/* ============================================
   Meridian Advisory - Styles
   Slate/Charcoal + Copper Accent
   ============================================ */

/* --- CSS Variables --- */
:root {
  --charcoal: #2D3436;
  --slate: #636E72;
  --copper: #B87333;
  --copper-light: #CD8B62;
  --copper-glow: rgba(184, 115, 51, 0.15);
  --bg-primary: #F5F6F8;
  --bg-secondary: #EDEEF0;
  --bg-white: #FFFFFF;
  --dark-section: #1A1D21;
  --dark-card: #22262B;
  --dark-border: #333840;
  --text-primary: #2D3436;
  --text-secondary: #636E72;
  --text-light: #9CA3AF;
  --text-on-dark: #E8E9EB;
  --border-color: #DFE1E5;
  --border-light: #EDEEF0;
  --font-serif: 'DM Serif Display', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --section-padding: 100px 0;
  --container-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

img {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

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

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}

.section-heading {
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-section);
  color: var(--text-on-dark);
  padding: 18px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 1px solid var(--dark-border);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--text-light);
  flex: 1;
  min-width: 280px;
}

.cookie-banner p a {
  color: var(--copper-light);
  border-bottom: 1px solid transparent;
}

.cookie-banner p a:hover {
  border-bottom-color: var(--copper-light);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.cookie-btn.accept {
  background: var(--copper);
  color: #fff;
}

.cookie-btn.accept:hover {
  background: var(--copper-light);
}

.cookie-btn.settings {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--dark-border);
}

.cookie-btn.settings:hover {
  border-color: var(--text-light);
  color: var(--text-on-dark);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--charcoal);
}

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--charcoal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--copper);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--charcoal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 24px;
  background: var(--charcoal);
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  border-radius: 4px;
  transition: all var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--copper) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
  display: block;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  padding: 160px 0 80px;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--copper-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--charcoal);
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
}

.hero h1 span {
  color: var(--copper);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--copper);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background: #A0632B;
  transform: translateY(-1px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.btn-text:hover {
  color: var(--copper);
}

.btn-text svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn-text:hover svg {
  transform: translateX(3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.hero-stat {
  flex: 1;
  text-align: left;
  position: relative;
}

.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
}

.hero-stat .number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  display: block;
}

.hero-stat .number span {
  color: var(--copper);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Hero AI Preview Card */
.hero-ai-card {
  background: var(--dark-section);
  border-radius: 12px;
  padding: 28px;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.hero-ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.ai-card-header .dot {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ai-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 90%;
}

.ai-msg.user {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  align-self: flex-end;
  color: var(--text-on-dark);
}

.ai-msg.bot {
  background: rgba(184, 115, 51, 0.1);
  border: 1px solid rgba(184, 115, 51, 0.2);
  align-self: flex-start;
}

.ai-msg.bot .highlight {
  color: var(--copper-light);
  font-weight: 600;
}

.ai-typing {
  display: flex;
  gap: 4px;
  padding: 8px 0 0;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* --- Services --- */
.services {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.service-card {
  background: var(--bg-white);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width 0.4s ease;
}

.service-card:hover::before {
  width: 100%;
}

.service-card:hover {
  background: var(--bg-white);
  z-index: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--copper);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.85rem;
  color: var(--copper);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

/* --- AI Diagnosis --- */
.ai-diagnosis {
  padding: 120px 0;
  background: var(--bg-white);
}

.ai-diagnosis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-chat-mockup {
  background: var(--dark-section);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.chat-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dark-border);
}

.chat-titlebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--copper), var(--copper-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.chat-titlebar-info h4 {
  font-size: 0.85rem;
  color: var(--text-on-dark);
  font-weight: 600;
}

.chat-titlebar-info span {
  font-size: 0.72rem;
  color: #4CAF50;
}

.chat-dots {
  display: flex;
  gap: 6px;
}

.chat-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-border);
}

.chat-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-msg.from-bot {
  align-items: flex-start;
}

.chat-msg.from-user {
  align-items: flex-end;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 85%;
}

.chat-msg.from-bot .chat-bubble {
  background: var(--dark-card);
  color: var(--text-on-dark);
  border: 1px solid var(--dark-border);
}

.chat-msg.from-user .chat-bubble {
  background: var(--copper);
  color: #fff;
}

.chat-bubble .metric {
  display: inline-block;
  color: var(--copper-light);
  font-weight: 600;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--dark-border);
  gap: 12px;
}

.chat-input-bar input {
  flex: 1;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-on-dark);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  outline: none;
}

.chat-input-bar input::placeholder {
  color: var(--text-light);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  background: var(--copper);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.chat-send-btn:hover {
  background: var(--copper-light);
}

/* AI Features list */
.ai-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ai-feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ai-feature-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--copper-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--copper);
}

.ai-feature-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-feature-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ai-diagnosis .btn-primary {
  margin-top: 12px;
}

/* --- Methodology --- */
.methodology {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.methodology-header {
  text-align: center;
  margin-bottom: 64px;
}

.methodology-header .section-desc {
  margin: 0 auto;
}

.process-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -10px;
  width: calc(100% - 80px);
  height: 1px;
  background: var(--border-color);
  left: calc(50% + 30px);
}

.process-icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--bg-white);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
  color: var(--copper);
}

.process-step:hover .process-icon {
  border-color: var(--copper);
  background: var(--copper-glow);
}

.process-icon svg {
  width: 24px;
  height: 24px;
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Case Studies --- */
.case-studies {
  padding: 120px 0;
  background: var(--bg-white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.case-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 36px 30px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.case-card:hover::before {
  transform: scaleX(1);
}

.case-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}

.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--copper);
  background: var(--copper-glow);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.case-detail {
  margin-bottom: 12px;
}

.case-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.case-detail p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.case-metrics {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.case-metric {
  flex: 1;
}

.case-metric .value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper);
  display: block;
}

.case-metric .desc {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* --- Expert Team --- */
.team {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.team-header {
  text-align: center;
  margin-bottom: 56px;
}

.team-header .section-desc {
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--copper);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.team-card:nth-child(1) .team-avatar { background: var(--charcoal); }
.team-card:nth-child(2) .team-avatar { background: var(--copper); }
.team-card:nth-child(3) .team-avatar { background: var(--slate); }
.team-card:nth-child(4) .team-avatar { background: #8B7355; }

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  color: var(--copper);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.team-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: var(--bg-primary);
  border-radius: 3px;
  color: var(--text-secondary);
}

.team-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Trust --- */
.trust {
  padding: 60px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.trust-item {
  text-align: center;
}

.trust-item .value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--charcoal);
  display: block;
}

.trust-item .label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Insights --- */
.insights {
  padding: 120px 0;
  background: var(--bg-white);
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.insight-featured {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.insight-featured::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--copper-glow) 0%, transparent 70%);
  pointer-events: none;
}

.insight-featured:hover {
  border-color: var(--copper);
}

.insight-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--copper);
  background: var(--copper-glow);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
  width: fit-content;
}

.insight-featured h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.insight-featured p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.insight-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px 28px;
  transition: all var(--transition);
}

.insight-item:hover {
  border-color: var(--copper);
}

.insight-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.insight-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.insight-item .insight-meta {
  margin-top: 10px;
}

/* --- About --- */
.about {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--copper);
}

.value-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.value-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--dark-section);
  color: var(--text-on-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-text .section-label {
  color: var(--copper-light);
}

.contact-text h2 {
  color: var(--text-on-dark);
  margin-bottom: 20px;
}

.contact-text p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.contact-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--copper-light);
  flex-shrink: 0;
}

.contact-form {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-section);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  color: var(--text-on-dark);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  outline: none;
}

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

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--copper);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--copper-light);
}

/* --- Footer --- */
.footer {
  background: #151719;
  padding: 64px 0 32px;
  color: var(--text-light);
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand .nav-logo .logo-mark {
  background: var(--copper);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-light);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--copper-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--dark-border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-legal a:hover {
  color: var(--copper-light);
}

/* --- Floating AI Button --- */
.ai-float-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: var(--charcoal);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
}

.ai-float-btn:hover {
  background: var(--copper);
  transform: scale(1.05);
}

.ai-float-btn svg {
  width: 24px;
  height: 24px;
}

/* --- AI Chat Panel --- */
.ai-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ai-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ai-chat-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--dark-section);
  z-index: 1200;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--dark-border);
}

.ai-chat-panel.open {
  right: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dark-border);
}

.panel-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-header h3 {
  color: var(--text-on-dark);
  font-size: 1rem;
}

.panel-header span {
  font-size: 0.78rem;
  color: #4CAF50;
}

.panel-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.panel-close:hover {
  color: var(--text-on-dark);
}

.panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-msg.bot {
  align-items: flex-start;
}

.panel-msg.user {
  align-items: flex-end;
}

.panel-msg .bubble {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 85%;
}

.panel-msg.bot .bubble {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-on-dark);
}

.panel-msg.user .bubble {
  background: var(--copper);
  color: #fff;
}

.panel-input {
  display: flex;
  padding: 16px 24px;
  gap: 12px;
  border-top: 1px solid var(--dark-border);
}

.panel-input input {
  flex: 1;
  padding: 12px 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  color: var(--text-on-dark);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  outline: none;
}

.panel-input input:focus {
  border-color: var(--copper);
}

.panel-input input::placeholder {
  color: var(--text-light);
}

.panel-input button {
  padding: 0 18px;
  background: var(--copper);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: background var(--transition);
}

.panel-input button:hover {
  background: var(--copper-light);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-ai-card {
    max-width: 480px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-diagnosis-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-stat {
    flex: 0 0 calc(50% - 10px);
  }

  .hero-stat:not(:last-child)::after {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-flow {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .trust-grid {
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ai-chat-panel {
    width: 100%;
    right: -100%;
  }

  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Cookie Policy Page Styles --- */
.policy-page {
  padding: 120px 0 80px;
  background: var(--bg-white);
  min-height: 100vh;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.policy-updated {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.policy-section h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  margin-top: 20px;
}

.policy-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-section ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.policy-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--copper);
  border-radius: 50%;
}

.cookie-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.cookie-type-badge.essential {
  background: rgba(45, 52, 54, 0.1);
  color: var(--charcoal);
}

.cookie-type-badge.analytics {
  background: var(--copper-glow);
  color: var(--copper);
}

.cookie-type-badge.functional {
  background: rgba(99, 110, 114, 0.1);
  color: var(--slate);
}

.cookie-type-badge.marketing {
  background: rgba(139, 115, 85, 0.1);
  color: #8B7355;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.cookie-table th {
  background: var(--bg-primary);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  color: var(--charcoal);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-color);
}

.cookie-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.cookie-table tr:hover td {
  background: var(--bg-primary);
}

.policy-footer {
  padding: 32px 0;
  background: var(--dark-section);
  color: var(--text-light);
  text-align: center;
  font-size: 0.85rem;
}

.policy-footer a {
  color: var(--copper-light);
}
