/* ============================================================
   Corduroy Cloud -- AI Consulting Design System
   Midnight Violet palette + glass-morphism
   Headings: Space Grotesk | Body: Inter | Code: JetBrains Mono
   ============================================================ */

/* -- CSS Custom Properties -- */
:root {
  --bg-dark: #0f0e17;
  --bg-mid: #1a1825;
  --bg-light: #252336;
  --accent: #7085FF;
  --accent-hover: #9AABFF;
  --accent-glow: rgba(112, 133, 255, 0.15);
  --secondary: #e8c872;
  --secondary-light: #f0d88a;
  --white: #ffffff;
  --text-primary: #f0eff4;
  --text-secondary: #9896a8;
  --text-tertiary: #6b6880;
  --glass-bg: rgba(26, 24, 37, 0.7);
  --glass-border: rgba(112, 133, 255, 0.12);
  --glass-highlight: rgba(112, 133, 255, 0.04);
  --card-bg: rgba(37, 35, 54, 0.5);
  --card-border: rgba(112, 133, 255, 0.08);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --transition: 0.3s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.code-text {
  font-family: var(--font-code);
}

/* ============================================================
   Container & Section Utilities
   ============================================================ */

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

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-mid);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-secondary-color { color: var(--secondary); }
.text-muted { color: var(--text-secondary); }
.text-dim { color: var(--text-tertiary); }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* ============================================================
   Glass Card
   ============================================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(112, 133, 255, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--bg-dark);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 200, 114, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(15, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.nav-brand span {
  color: var(--accent);
}

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

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

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

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

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

.nav-cta {
  margin-left: 8px;
}

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

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

/* -- Mobile Menu Overlay -- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(15, 14, 23, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  z-index: 999;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 40%, var(--bg-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

/* Secondary glow -- warm sand accent on the opposite side */
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(232, 200, 114, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 40px 24px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 16px;
}

.hero-tagline .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Credential / Stats Bar
   ============================================================ */

.credential-bar {
  background: rgba(15, 14, 23, 0.8);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
}

.credential-bar .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.credential-item .icon {
  color: var(--accent);
  font-size: 1.1rem;
}

/* -- Stats Bar (numbered counters) -- */
.stats-bar {
  background: var(--bg-mid);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

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

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================================
   Section Header
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================================
   Grid Layouts
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

/* ============================================================
   Service / Talk Cards
   ============================================================ */

.service-card,
.talk-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Top accent bar -- violet-to-sand gradient */
.service-card::before,
.talk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.service-card:hover,
.talk-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(112, 133, 255, 0.15);
}

.service-card h3,
.talk-card h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.service-card .service-icon,
.talk-card .talk-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.talk-card .audience-tag,
.service-card .service-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  margin-right: 6px;
}

.service-card p,
.talk-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.talk-card .duration {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ============================================================
   Process Steps (numbered with connector lines)
   ============================================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
  counter-reset: step-counter;
}

.process-step {
  text-align: center;
  position: relative;
  counter-increment: step-counter;
  padding: 32px 24px;
}

/* Step number circle */
.process-step::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

/* Connector line between steps */
.process-step::after {
  content: '';
  position: absolute;
  top: 56px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  pointer-events: none;
}

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

.process-step h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================================
   Pricing Grid (3-card layout with featured card)
   ============================================================ */

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

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--secondary);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.pricing-card .price-note {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card ul li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--glass-border);
  padding-left: 24px;
  position: relative;
}

.pricing-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px 40px 20px 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   Portfolio / Case Study Cards
   ============================================================ */

.case-study-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.case-study-header {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-mid));
  padding: 32px;
  position: relative;
}

.case-study-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.case-study-header h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.case-study-header .case-study-client {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.case-study-body {
  padding: 32px;
}

.case-study-body p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.case-study-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.case-study-result {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
}

.case-study-result small {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

.case-study-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.case-study-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ============================================================
   Contact Form
   ============================================================ */

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239896a8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

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

/* ============================================================
   Footer (4-column grid)
   ============================================================ */

.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 24px;
}

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

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-tertiary);
  font-size: 1.1rem;
  transition: color var(--transition);
}

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

/* ============================================================
   Chatbot (FAB + Window + Messages)
   ============================================================ */

/* -- Floating Action Button -- */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(112, 133, 255, 0.4);
  z-index: 9999;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(112, 133, 255, 0.5);
}

/* -- Chat Window -- */
.chatbot-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 9998;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}

.chatbot-window.open {
  display: flex;
}

.chatbot-header {
  background: var(--bg-mid);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.chatbot-header-text h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.chatbot-header-text p {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition);
}

.chatbot-close:hover {
  color: var(--text-primary);
}

/* -- Messages Area -- */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--card-bg);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--accent);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* -- Chat Input -- */
.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-mid);
  border-top: 1px solid var(--glass-border);
}

.chatbot-input input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.chatbot-input input::placeholder {
  color: var(--text-tertiary);
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}

.chatbot-input button:hover {
  background: var(--accent-hover);
}

/* -- Quick Reply Chips -- */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.quick-reply {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.quick-reply:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================================
   Scroll Reveal Animation
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delay helpers for grid children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Tech Stack Tags / Pill Badges
   ============================================================ */

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(112, 133, 255, 0.2);
  transition: all var(--transition);
}

.tech-tag:hover {
  background: rgba(112, 133, 255, 0.25);
  border-color: var(--accent);
}

.tech-tag .tech-icon {
  font-size: 0.9rem;
}

/* Secondary tag style (warm sand) */
.tech-tag.secondary {
  background: rgba(232, 200, 114, 0.1);
  color: var(--secondary);
  border-color: rgba(232, 200, 114, 0.2);
}

.tech-tag.secondary:hover {
  background: rgba(232, 200, 114, 0.2);
  border-color: var(--secondary);
}

/* ============================================================
   Testimonial Carousel
   ============================================================ */

.testimonial-section {
  background: var(--bg-mid);
  position: relative;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 24px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
}

.testimonial-author {
  color: var(--accent);
  font-weight: 600;
}

.testimonial-role {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-light);
  cursor: pointer;
  transition: background var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
}

/* ============================================================
   Client / Partner Logo Grid
   ============================================================ */

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  align-items: center;
}

.logo-item {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

/* ============================================================
   Rate / Comparison Table
   ============================================================ */

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.rate-table th,
.rate-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.rate-table th {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.rate-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.rate-table tr:hover td {
  background: var(--glass-highlight);
}

/* ============================================================
   Contract / Clause Blocks
   ============================================================ */

.clause {
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
}

.clause h4 {
  color: var(--accent);
  margin-bottom: 8px;
}

.clause p {
  color: var(--text-secondary);
}

/* ============================================================
   Video Embed / Placeholder
   ============================================================ */

.video-placeholder {
  background: var(--card-bg);
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 60px;
  text-align: center;
  color: var(--text-tertiary);
}

.video-placeholder .play-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ============================================================
   Book / Resource Showcase
   ============================================================ */

.book-showcase {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}

.book-cover {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-mid));
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.book-cover h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}

.book-cover .author {
  color: var(--accent);
  font-style: italic;
}

.book-info h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.book-info .book-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.book-meta-item {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.book-meta-item strong {
  color: var(--accent);
}

.book-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Timeline (About / History)
   ============================================================ */

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--secondary));
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-dark);
}

.timeline-item h4 {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-secondary);
}

/* ============================================================
   Floating Shape Decorations
   ============================================================ */

.decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.decoration-violet {
  background: var(--accent);
}

.decoration-sand {
  background: var(--secondary);
}

/* ============================================================
   Responsive -- 1024px (Tablets / Small Laptops)
   ============================================================ */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .pricing-card.featured {
    transform: none;
  }

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

  .book-showcase {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

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

  .process-step::after {
    display: none;
  }
}

/* ============================================================
   Responsive -- 768px (Mobile Landscape / Small Tablets)
   ============================================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta.desktop-only {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .section {
    padding: 60px 0;
  }

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

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

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

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

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

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

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

  .stat-number {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 2rem;
  }

  .chatbot-window {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 88px;
  }

  .chatbot-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .case-study-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================================
   Responsive -- 480px (Mobile Portrait)
   ============================================================ */

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

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .credential-bar .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    aspect-ratio: auto;
    padding: 32px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* ============================================================
   Print Styles
   ============================================================ */

@media print {
  .nav,
  .chatbot-fab,
  .chatbot-window,
  .mobile-toggle,
  .mobile-menu {
    display: none !important;
  }

  body {
    background: white;
    color: #333;
  }

  .hero {
    min-height: auto;
    background: #f5f5f5;
  }

  .card,
  .glass,
  .pricing-card,
  .service-card,
  .talk-card,
  .case-study-card {
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: none;
  }
}
