/* ============================================================
   NEURAFORGE.AI - Shared theme ("Layered Paper")
   Warm cream paper shades, espresso ink type, molten copper accent.
   Linked by index.html, meet-our-team.html, summit.html.
   Loads AFTER the Tailwind v2 CDN so these rules win.
   ============================================================ */

:root {
  --background: oklch(0.966 0.009 85);   /* ivory paper base        */
  --surface: oklch(0.945 0.012 83);      /* deeper paper (bands)    */
  --card: oklch(0.986 0.006 85);         /* lifted near-white card  */
  --ink: oklch(0.925 0.015 80);          /* deepest paper strip     */
  --foreground: oklch(0.265 0.02 55);    /* espresso ink text       */
  --muted-foreground: oklch(0.47 0.022 55);
  --primary: oklch(0.52 0.15 48);        /* copper, deepened for AA */
  --primary-foreground: oklch(0.99 0.004 85);
  --accent: oklch(0.60 0.13 52);
  --border: oklch(0.30 0.02 55 / 14%);   /* warm ink, low alpha     */
  --primary-soft: color-mix(in oklab, var(--primary) 12%, transparent);
  --primary-softer: color-mix(in oklab, var(--primary) 7%, transparent);
  --primary-strong: color-mix(in oklab, var(--primary) 22%, transparent);
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.06);
  --shadow-lg: 0 18px 40px -18px rgba(60, 40, 20, 0.18);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  /* keep anchored section headings clear of the fixed 80px nav */
  scroll-padding-top: 6.5rem;
}
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}
/* belt-and-braces offset for every in-page anchor target */
section[id],
[id]:target {
  scroll-margin-top: 6.5rem;
}

h1, h2, h3, h4,
.gradient-text, .section-title, .hero-content h1, .stat-number {
  font-family: var(--font-display);
}

/* ============================================================
   Tailwind v2 light-utility -> paper remap
   Re-points the light color utilities baked into the markup
   onto the warm paper palette without touching every element.
   White text is intentionally left untouched (reads on copper).
   ============================================================ */
.bg-white { background-color: var(--card) !important; }
.bg-gray-50 { background-color: var(--surface) !important; }
.bg-gray-100 { background-color: var(--surface) !important; }

.text-gray-900, .text-black { color: var(--foreground) !important; }
.text-gray-800,
.text-gray-700,
.text-gray-600,
.text-gray-500,
.text-gray-400 { color: var(--muted-foreground) !important; }

.border-gray-100,
.border-gray-200,
.border-gray-300 { border-color: var(--border) !important; }

/* Accent utilities */
.bg-black { background-color: var(--primary) !important; }
.bg-blue-50 { background-color: var(--primary-soft) !important; }
.text-blue-600 { color: var(--primary) !important; }
.hover\:bg-blue-100:hover { background-color: var(--primary-strong) !important; }
.hover\:bg-gray-100:hover { background-color: var(--surface) !important; }
.hover\:bg-gray-800:hover { background-color: var(--accent) !important; }
.hover\:text-gray-800:hover,
.hover\:text-gray-300:hover { color: var(--primary) !important; }

/* Gradient stop remaps (Tailwind v2 uses --tw-gradient-* custom props) */
.from-gray-50 { --tw-gradient-from: var(--surface) !important; }
.to-white { --tw-gradient-to: var(--card) !important; }

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.gradient-text {
  color: var(--foreground);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gradient-text .accent,
.text-accent { color: var(--primary); }

/* ============================================================
   HERO (index.html)
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background:
    radial-gradient(color-mix(in oklab, var(--primary) 7%, transparent) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
}
/* soft copper aurora, top-right */
.hero-section::before {
  content: '';
  position: absolute;
  top: -12%;
  right: -6%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--primary) 16%, transparent) 0%, transparent 62%);
  filter: blur(50px);
  pointer-events: none;
  animation: floatBlob 16s ease-in-out infinite;
}
/* soft accent aurora, bottom-left */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -16%;
  left: -10%;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 13%, transparent) 0%, transparent 62%);
  filter: blur(60px);
  pointer-events: none;
  animation: floatBlob 22s ease-in-out infinite reverse;
}

.hero-content {
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  padding: 2rem;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 2.5rem;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-badge i {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  color: var(--primary);
  animation: float 3s ease-in-out infinite;
}

.hero-content h1 {
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  text-align: center;
  font-weight: 800;
  color: var(--foreground);
  animation: fadeInUp 0.9s ease-out both;
  position: relative;
}
.hero-content h1 .accent { color: var(--primary); }
.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
}

.hero-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.2s backwards;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 0.6s backwards;
  width: 100%;
  padding: 0 1rem;
}
.hero-cta .primary-btn,
.hero-cta .secondary-btn {
  padding: 1.25rem 3rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}
.hero-cta .primary-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px color-mix(in oklab, var(--primary) 35%, transparent);
}
.hero-cta .primary-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in oklab, var(--primary) 45%, transparent);
}
.hero-cta .secondary-btn {
  background: transparent;
  border: 2px solid color-mix(in oklab, var(--primary) 45%, transparent);
  color: var(--foreground);
}
.hero-cta .secondary-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 5rem;
  padding: 0 1rem;
  animation: fadeInUp 1s ease-out 0.8s backwards;
}
.hero-feature {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.hero-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-feature:hover {
  transform: translateY(-8px);
  border-color: color-mix(in oklab, var(--primary) 35%, transparent);
  box-shadow: var(--shadow-lg);
}
.hero-feature:hover::before { opacity: 1; }
.hero-feature i {
  font-size: 2.75rem;
  margin-bottom: 1.75rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.hero-feature:hover i { transform: scale(1.1); }
.hero-feature h3 {
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.hero-feature p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  animation: fadeInUp 1s ease-out 1s backwards;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1;
  position: relative;
}
.stat-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.stat-label {
  color: var(--muted-foreground);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ============================================================
   OUR PRODUCTS (index.html)
   ============================================================ */
.products-section {
  padding: 6rem 1rem;
  background: var(--background);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.product-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card) 0%, var(--ink) 100%);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  box-shadow: 0 26px 60px -22px rgba(60, 40, 20, 0.2);
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in oklab, var(--primary) 28%, transparent);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.product-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.product-card .product-tagline {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
  font-size: 0.98rem;
}
.product-features li i {
  color: var(--primary);
  font-size: 1rem;
}
.product-visit {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.product-visit:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in oklab, var(--primary) 40%, transparent);
}

/* ============================================================
   ABOUT US (index.html) — recreates CREDEX "Company at a glance"
   ============================================================ */
.about-section {
  padding: 6rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in oklab, var(--primary) 28%, transparent);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.about-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.about-copy h2 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 1.5rem 0 0;
}
.about-copy h2 .accent { color: var(--primary); }
.about-copy p {
  color: var(--muted-foreground);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.facts-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card) 0%, var(--ink) 100%);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
}
.facts-panel::before {
  content: '';
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: var(--primary-soft);
  filter: blur(60px);
  pointer-events: none;
}
.facts-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--primary) 22%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  pointer-events: none;
}
.facts-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.facts-head i { color: var(--primary); }
.facts-grid {
  position: relative;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.fact { background: var(--card); padding: 1.25rem; }
.fact .fact-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
}
.fact .fact-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted-foreground);
}
.facts-foot {
  position: relative;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

/* ============================================================
   SERVICE CARDS (index.html)
   ============================================================ */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 3rem;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in oklab, var(--primary) 35%, transparent);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }
.service-card h3 {
  color: var(--foreground);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1.3;
}
.service-card h3 i {
  color: var(--primary);
  font-size: 2rem;
  transition: transform 0.3s ease;
}
.service-card:hover h3 i { transform: scale(1.1); }
.service-card p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  flex-grow: 1;
}
.service-card a {
  margin-top: auto;
  position: relative;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  padding: 0.5rem 0;
}
.service-card a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.service-card a:hover { color: var(--accent); }
.service-card a:hover::after { width: 100%; }

/* ---------- Section title ---------- */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 4rem;
  color: var(--foreground);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 3.5rem;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}
.section-title:hover::after { width: 150px; }

/* ============================================================
   CONTACT FORM (index.html)
   ============================================================ */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: all 0.3s ease;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-foreground); }
.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--ink);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  outline: none;
  transform: translateY(-2px);
}
.contact-form label {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.contact-form button {
  position: relative;
  overflow: hidden;
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  padding: 1.25rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px color-mix(in oklab, var(--primary) 35%, transparent);
}
.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}
.contact-form button:hover::before { left: 100%; }
.contact-form button:hover {
  background: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in oklab, var(--primary) 45%, transparent);
}

/* ============================================================
   WHATSAPP FLOAT (brand green intentionally kept)
   ============================================================ */
.whatsapp-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #25D366;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 45px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
}
.whatsapp-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--surface);
  color: var(--foreground);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid var(--border);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--surface);
}
.whatsapp-icon:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}
.whatsapp-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ============================================================
   GENERIC CARD GRID + achievement/impact/feature (index.html)
   ============================================================ */
.grid { display: grid; gap: 2rem; width: 100%; }

.achievement-card,
.impact-card,
.feature-card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1 !important;
  visibility: visible !important;
}
.achievement-card:hover,
.impact-card:hover,
.feature-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in oklab, var(--primary) 35%, transparent) !important;
  box-shadow: var(--shadow-lg) !important;
}
.impact-card .text-5xl,
.achievement-card h3,
.impact-card h3,
.feature-card h3 { color: var(--foreground) !important; }
.impact-card .text-5xl { color: var(--primary) !important; }

/* Icon tiles that were bg-black -> copper, icon stays light */
.feature-card .w-16.h-16 { background: var(--primary) !important; }
.feature-card .w-16.h-16 i { color: var(--primary-foreground) !important; }

#why-choose-us { display: block !important; visibility: visible !important; opacity: 1 !important; }
#why-choose-us .feature-card { opacity: 1 !important; visibility: visible !important; }

.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================================
   TEAM GRID (meet-our-team.html) - CREDEX-style photo cards
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.person-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.person-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--primary) 35%, transparent);
  box-shadow: var(--shadow-lg);
}
.person-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.person-card:hover .person-photo { transform: scale(1.05); }
.person-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem 1rem;
  background: linear-gradient(to top, rgba(22, 13, 6, 0.86) 0%, rgba(22, 13, 6, 0.35) 52%, transparent 100%);
}
.person-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}
.person-role {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.82 0.12 72);
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }

/* ============================================================
   LEADERSHIP (meet-our-team.html)
   ============================================================ */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in oklab, var(--primary) 35%, transparent);
  box-shadow: var(--shadow-lg);
}
.team-image-container { width: 100%; height: 320px; overflow: hidden; position: relative; }
.team-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-image { transform: scale(1.05); }
.team-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }

.founder-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 4px 10px color-mix(in oklab, var(--primary) 40%, transparent);
}
.skill-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}
.skill-tag:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: color-mix(in oklab, var(--primary) 35%, transparent);
}
.role-text {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.founder-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--ink) 100%);
  border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 26px 60px -24px rgba(60, 40, 20, 0.22);
  margin-bottom: 4rem;
}
.founder-content { display: grid; grid-template-columns: 400px 1fr; gap: 3rem; padding: 3rem; }
.founder-image-container { width: 100%; height: 500px; overflow: hidden; border-radius: 1.5rem; position: relative; }
.founder-image-container .founder-badge { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10; }
.founder-image { width: 100%; height: 100%; object-fit: cover; }
.founder-info { display: flex; flex-direction: column; }
.founder-badge-large {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.detail-section { margin-bottom: 1.5rem; }
.detail-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.detail-value { color: var(--foreground); font-size: 1rem; line-height: 1.6; }
.achievement-list { list-style: none; padding: 0; margin: 0; }
.achievement-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.achievement-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   SUMMIT (summit.html)
   ============================================================ */
.summit-header {
  background: linear-gradient(135deg, var(--ink) 0%, var(--surface) 100%);
  color: var(--foreground);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.summit-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23c67b43" fill-opacity="0.05" points="0,0 0,500 500,1000 1000,500 1000,0"/></svg>');
  background-size: 100px 100px;
  animation: moveBackground 20s linear infinite;
}
.summit-content { position: relative; z-index: 2; }

.meeting-interface {
  background: linear-gradient(135deg, var(--ink) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.meeting-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; color: var(--foreground); }
.meeting-info { display: flex; gap: 2rem; color: var(--foreground); font-size: 0.9rem; }
.meeting-info .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
}
.participants-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.participant-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}
.participant-card:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--primary) 35%, transparent); }
.participant-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-foreground);
  border: 3px solid color-mix(in oklab, var(--primary) 30%, transparent);
  overflow: hidden;
}
.participant-name { color: var(--foreground); font-weight: 600; margin-bottom: 0.5rem; }
.participant-role { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 0.5rem; }
.participant-status {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
}
.agenda-section { background: var(--card); border: 1px solid var(--border); margin: 2rem 0; padding: 2rem; border-radius: 1rem; box-shadow: var(--shadow-sm); }
.agenda-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 1rem;
  background: var(--surface);
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}
.agenda-item:hover { transform: translateX(5px); }
.agenda-time { font-weight: 600; color: var(--primary); min-width: 120px; font-family: var(--font-mono); }
.agenda-content { flex: 1; margin-left: 1.5rem; }
.agenda-title { font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.agenda-description { color: var(--muted-foreground); font-size: 0.9rem; }
.session-highlight {
  background: linear-gradient(135deg, var(--ink) 0%, var(--surface) 100%);
  border: 1px solid color-mix(in oklab, var(--primary) 22%, transparent);
  color: var(--foreground);
  padding: 3rem 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
  text-align: center;
}
.session-highlight h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.session-highlight p { font-size: 1.2rem; color: var(--muted-foreground); margin-bottom: 2rem; }
.cta-button {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}
.cta-button:hover { background: var(--accent); transform: translateY(-2px); }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; }
.detail-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detail-card h3 { color: var(--foreground); font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.detail-card h3 i { color: var(--primary) !important; }
.detail-card p { color: var(--muted-foreground); line-height: 1.6; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2.5rem, 2rem) scale(1.06); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes moveBackground {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-100px); }
}

/* Respect users who prefer reduced motion: keep content visible, drop motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .container { max-width: 1200px; margin: 0 auto; }
}

@media (max-width: 968px) {
  .founder-content { grid-template-columns: 1fr; }
  .founder-image-container { height: 400px; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 3rem; }
  .hero-content p { font-size: 1.25rem; }
  .service-card { padding: 2rem; margin: 0.5rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-copy h2 { font-size: 2.1rem; }
  .contact-form { padding: 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1rem; }
  .hero-stats { flex-direction: column; gap: 2rem; }
  .achievement-card, .impact-card, .feature-card { padding: 1.5rem; }
  .section-title { font-size: 2.5rem; }
  .whatsapp-icon { width: 60px; height: 60px; font-size: 35px; bottom: 20px; right: 20px; }
  .hero-feature { padding: 1.5rem; margin: 0.5rem; }
  .hero-feature h3 { font-size: 1.25rem; }
  .hero-feature p { font-size: 1rem; }
  .hero-feature i { font-size: 2rem; margin-bottom: 1rem; }
  .summit-header { padding: 4rem 0 2rem; }
  .meeting-info { flex-direction: column; gap: 1rem; }
  .participants-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .agenda-item { flex-direction: column; align-items: flex-start; }
  .agenda-content { margin-left: 0; margin-top: 1rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.1rem; }
  .hero-cta { flex-direction: column; gap: 1rem; }
  .hero-cta .primary-btn, .hero-cta .secondary-btn { width: 100%; padding: 1rem 2rem; }
  .service-card { padding: 1.5rem; margin: 0.25rem; }
  .service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
  .service-card p { font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.6; }
  .service-card a { font-size: 0.95rem; padding: 0.5rem 0; }
  .product-card h3 { font-size: 1.6rem; }
  .hero-feature { padding: 1.25rem; margin: 0.25rem; }
  .hero-feature h3 { font-size: 1.1rem; }
  .hero-feature p { font-size: 0.95rem; line-height: 1.5; }
  .hero-feature i { font-size: 1.75rem; margin-bottom: 0.75rem; }
  .whatsapp-icon { width: 50px; height: 50px; font-size: 30px; bottom: 15px; right: 15px; }
  .whatsapp-tooltip { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 { font-size: 4rem; }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 3rem; }
}

@media (hover: none) {
  .service-card:active, .hero-feature:active { transform: scale(0.98); }
  .service-card a:active { opacity: 0.8; }
}

/* iOS / notch safe-area */
@supports (-webkit-touch-callout: none) {
  .whatsapp-icon { position: fixed; bottom: env(safe-area-inset-bottom, 30px); right: env(safe-area-inset-right, 30px); }
}
@supports (padding: max(0px)) {
  .nav { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
}
