/* ============================================================
   Mind Fox — AI Consulting Website
   Light theme · Warm orange palette · Futuristic · Clean
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --blue-50:  #fff7ed;
  --blue-100: #ffedd5;
  --blue-200: #fed7aa;
  --blue-300: #fdba74;
  --blue-400: #fb923c;
  --blue-500: #f97316;
  --blue-600: #ea580c;
  --blue-700: #c2410c;
  --blue-800: #9a3412;
  --blue-900: #7c2d12;

  --cyan-400: #fbbf24;
  --cyan-500: #f59e0b;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --white: #ffffff;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.04), 0 10px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.08);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---------- utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- typography ---------- */
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--slate-600); }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--slate-500); max-width: 640px; }

/* ---------- navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--slate-100);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 72px;
}
.navbar__logo {
  font-family: var(--font-mono);
  font-size: 1.1rem; font-weight: 700;
  color: var(--blue-600);
  display: flex; align-items: center; gap: 10px;
}
.navbar__logo-img {
  height: 36px;
  width: auto;
}
.navbar__logo span {
  color: var(--slate-800);
}
.navbar__links { display: flex; gap: 32px; align-items: center; }
.navbar__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--slate-600);
  transition: color var(--transition);
  position: relative;
}
.navbar__links a:hover { color: var(--blue-600); }
.navbar__links a::after {
  content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--blue-600); transition: width var(--transition);
}
.navbar__links a:hover::after { width: 100%; }

/* mobile nav */
.navbar__hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.navbar__hamburger span { display: block; width: 22px; height: 2px; background: var(--slate-700); transition: var(--transition); border-radius: 1px; }

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 24px; gap: 20px; border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 9999px;
  font-size: 0.95rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600); color: var(--white);
  box-shadow: 0 2px 8px rgba(234,88,12,.3);
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 4px 16px rgba(234,88,12,.4);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1.5px solid var(--blue-600); color: var(--blue-600);
}
.btn-outline:hover {
  background: var(--blue-50);
}
.btn-white {
  background: var(--white); color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ---------- hero ---------- */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--blue-200);
  border-radius: 9999px; padding: 6px 16px;
  font-size: 0.82rem; font-weight: 600; color: var(--blue-700);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero__badge::before {
  content: ""; display: block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--cyan-500);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { margin-bottom: 32px; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ASCII art container */
.ascii-hero {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--blue-200);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
  padding: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(234,88,12,.08);
  position: relative;
}
.ascii-hero pre {
  color: var(--blue-300);
  font-size: 11px;
  padding-top: 32px;
}
.ascii-hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 32px;
  background: var(--slate-800);
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 1;
}
.ascii-hero::after {
  content: "● ● ●";
  position: absolute; top: 8px; left: 14px;
  color: var(--slate-600);
  font-size: 10px; letter-spacing: 4px;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr; }
  .ascii-hero { height: 280px; }
}

/* ---------- trusted-by logos ---------- */
.trusted {
  padding: 60px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: var(--slate-50);
}
.trusted p {
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--slate-400); text-align: center;
  margin-bottom: 28px;
}
.trusted__logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
  align-items: center;
}
.trusted__logos span {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 700; color: var(--slate-300);
  white-space: nowrap;
}

/* ---------- section generic ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--slate-50); }
.section__header {
  text-align: center; max-width: 680px; margin: 0 auto 56px;
}
.section__header .overline {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blue-600); margin-bottom: 12px;
}
.section__header p { margin-top: 16px; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
  color: var(--blue-600);
  font-family: var(--font-mono);
}
.service-card h3 { margin-bottom: 10px; color: var(--slate-800); }
.service-card p  { font-size: 0.9rem; }

/* ---------- ASCII section (full-width decoration) ---------- */
.ascii-section {
  height: 200px;
  overflow: hidden;
  position: relative;
  contain: strict;
}
.ascii-section pre {
  color: var(--blue-200);
  font-size: 12px;
}
.ascii-section--dark {
  background: var(--slate-900);
}
.ascii-section--dark pre {
  color: var(--blue-400);
}
.ascii-section--light {
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
}
.ascii-section--light pre {
  color: var(--blue-400);
}

/* ---------- stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  text-align: center; padding: 36px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--slate-200);
}
.stat-card__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--blue-600);
  line-height: 1;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.stat-card__label {
  font-size: 0.85rem; font-weight: 500; color: var(--slate-500);
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- how we work ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--slate-200);
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 2.5rem; font-weight: 800;
  color: var(--blue-400);
  line-height: 1; margin-bottom: 16px; display: block;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p  { font-size: 0.9rem; }

/* ---------- testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.testimonial-card__stars {
  color: #fbbf24; font-size: 1rem; margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card__text {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--slate-700); flex: 1;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--slate-100); padding-top: 16px;
}
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-100); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--blue-700);
}
.testimonial-card__name { font-weight: 600; font-size: 0.9rem; color: var(--slate-800); }
.testimonial-card__role { font-size: 0.8rem; color: var(--slate-500); }


/* =========================
   TEAM GRID
========================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* =========================
   TEAM CARD
========================= */

.team-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
  transform: translateY(-4px);
}

/* =========================
   IMAGE
========================= */

.team-card__image {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--slate-100);
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.team-card:hover .team-card__image img {
  transform: scale(1.05);
}

/* =========================
   CONTENT
========================= */

.team-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-800);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--blue-600);
  font-weight: 500;
  margin-bottom: 14px;
}

.team-card__description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate-600);
  flex: 1;
}

/* =========================
   RESPONSIVENESS
========================= */

/* Tablet */
@media (max-width: 1024px) {
  .team-card__image {
    height: 220px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card__image {
    height: 200px;
  }

  .team-card__content {
    padding: 20px;
  }
}


/* ---------- case studies ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.case-card {
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  overflow: hidden; background: var(--white);
  transition: all var(--transition);
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.case-card__img {
  height: 140px;
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
  overflow: hidden;
  contain: strict;
}
.case-card__img pre {
  color: var(--blue-400);
  font-size: 8px;
  line-height: 1.15;
  padding: 8px;
}
.case-card__body { padding: 24px; }
.case-card__tag {
  display: inline-block;
  background: var(--blue-50); color: var(--blue-700);
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 9999px;
  margin-bottom: 12px;
}
.case-card h3 { margin-bottom: 8px; }
.case-card p  { font-size: 0.9rem; margin-bottom: 12px; }
.case-card__result {
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 600; color: var(--blue-600);
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-section .ascii-bg {
  position: absolute; inset: 0;
  opacity: 0.08;
  overflow: hidden;
}
.cta-section .ascii-bg pre {
  color: var(--white);
  font-size: 10px;
}

/* ---------- footer ---------- */
.footer {
  padding: 60px 0 32px;
  background: var(--slate-900);
  color: var(--slate-400);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand { max-width: 300px; }
.footer__brand-name {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 700; color: var(--blue-400);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.footer__logo-img {
  height: 32px;
  width: auto;
}
.footer__brand-name span { color: var(--white); }
.footer__brand p { font-size: 0.85rem; line-height: 1.7; }
.footer h4 {
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--slate-300);
  margin-bottom: 16px;
}
.footer a {
  display: block; font-size: 0.88rem; color: var(--slate-400);
  padding: 4px 0; transition: color var(--transition);
}
.footer a:hover { color: var(--blue-400); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- booking page ---------- */
.booking-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}
.booking-hero h1 { margin-bottom: 16px; }
.booking-form-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: flex-start;
}
.booking-form-wrapper > * {
  min-width: 0;
}
@media (max-width: 768px) {
  .booking-form-wrapper { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--slate-700); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem; color: var(--slate-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 32px;
}
.info-card h3 { margin-bottom: 16px; }
.info-card__item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px; font-size: 0.9rem;
}
.info-card__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--blue-600);
}
.info-card__item strong { display: block; color: var(--slate-800); margin-bottom: 2px; }
.info-card__item span { color: var(--slate-500); }

/* booking ascii decoration */
.booking-ascii {
  height: 180px;
  border-radius: var(--radius);
  border: 1px solid var(--blue-200);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
  padding: 8px;
  overflow: hidden;
  margin-top: 24px;
  contain: strict;
}
.booking-ascii pre { color: var(--blue-300); font-size: 9px; }

/* ---------- fade-in animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- form submission overlay ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.active { display: block; }
.form-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 20px;
}

/* ---------- scrollbar (subtle) ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate-50); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

.calendar-iframe {
  border-radius: var(--radius);
}