:root {
  --navy: #0B1220;
  --navy-2: #0F172A;
  --card: #141C2B;
  --blue: #1297E6;
  --green: #86D931;
  --white: #FFFFFF;
  --light: #E5E7EB;
  --muted: #94A3B8;
  --border: #1E293B;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.2rem;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-soft), background 0.4s;
}
nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 18, 32, 0.92);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
}
.nav-brand img {
  width: 38px;
  height: 38px;
  animation: logoFloat 5s ease-in-out infinite;
}
.nav-brand span {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #0d7fc7 !important;
  transform: translateY(-1px);
}

/* Language selector */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  letter-spacing: 0.04em;
}
.lang-switch button.active {
  background: var(--blue);
  color: var(--white);
}
.lang-switch button:hover:not(.active) {
  color: var(--white);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -15%, rgba(18, 151, 230, 0.2), transparent),
    radial-gradient(ellipse 50% 35% at 85% 70%, rgba(134, 217, 49, 0.07), transparent);
  pointer-events: none;
}
.hero-logo-wrap {
  position: relative;
  margin-bottom: 1.8rem;
}
.hero-logo {
  width: 150px;
  height: 150px;
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  animation: logoReveal 1.6s var(--ease-out) 0.1s forwards,
             logoBreath 6s ease-in-out 1.8s infinite;
}
.hero-logo-ring {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(18, 151, 230, 0.25);
  opacity: 0;
  animation: ringFadeIn 1.4s 0.5s var(--ease-out) forwards;
}
.hero-logo-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(134, 217, 49, 0.15);
  animation: ringPulse 5s ease-in-out 1.8s infinite;
}
@keyframes logoReveal {
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes logoBreath {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(18,151,230,0.2)); }
  50% { filter: drop-shadow(0 0 18px rgba(18,151,230,0.35)); }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes ringFadeIn {
  to { opacity: 1; }
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.7rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s var(--ease-out) forwards;
}
.hero h1 .accent { color: var(--green); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s var(--ease-out) forwards;
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s 0.9s var(--ease-out) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 22px rgba(18, 151, 230, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(18, 151, 230, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-3px);
}

/* ========== PAGE LAYOUT ========== */
.page-hero {
  padding: 8rem 2rem 3rem;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(18,151,230,0.12), transparent);
  pointer-events: none;
}
.page-hero .section-label { margin-bottom: 0.5rem; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.page-hero p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

section {
  padding: 3.5rem 2rem 5rem;
  max-width: 1060px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 750;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2.2rem;
  font-size: 1.02rem;
}

/* ========== MODERN SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.9s var(--ease-soft),
    transform 0.9s var(--ease-soft),
    filter 0.9s var(--ease-soft);
  will-change: opacity, transform, filter;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== CARDS ========== */
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.about-card p {
  color: var(--light);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}
.about-card p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
}
.domain-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.15rem;
  text-align: center;
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s;
}
.domain-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(18, 151, 230, 0.12);
}
.domain-card:nth-child(even):hover {
  border-color: var(--green);
  box-shadow: 0 16px 40px rgba(134, 217, 49, 0.1);
}
.domain-icon {
  width: 46px; height: 46px;
  margin: 0 auto 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.domain-card:nth-child(odd) .domain-icon { background: rgba(18,151,230,0.14); color: var(--blue); }
.domain-card:nth-child(even) .domain-icon { background: rgba(134,217,49,0.14); color: var(--green); }
.domain-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.35rem; }
.domain-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

.modes { display: flex; flex-direction: column; gap: 1.15rem; }
.mode-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.35s;
}
.mode-card:hover { transform: translateX(8px); }
.mode-card.mode-1 { border-left: 3px solid var(--blue); }
.mode-card.mode-1:hover { border-color: var(--blue); }
.mode-card.mode-2 { border-left: 3px solid var(--green); }
.mode-card.mode-2:hover { border-color: var(--green); }
.mode-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}
.mode-1 .mode-num { background: rgba(18,151,230,0.1); color: var(--blue); }
.mode-2 .mode-num { background: rgba(134,217,49,0.1); color: var(--green); }
.mode-body { padding: 1.35rem 1.4rem; }
.mode-body h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.mode-body p { color: var(--muted); font-size: 0.9rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.45s var(--ease-out), border-color 0.35s;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--blue); }
.pillar:nth-child(2):hover { border-color: var(--green); }
.pillar-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
}
.pillar:nth-child(1) .pillar-dot { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.pillar:nth-child(2) .pillar-dot { background: var(--green); box-shadow: 0 0 14px var(--green); }
.pillar:nth-child(3) .pillar-dot { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.pillar h3 { font-size: 0.98rem; margin-bottom: 0.45rem; }
.pillar p { color: var(--muted); font-size: 0.86rem; }

/* CTA */
.cta-box {
  background: linear-gradient(145deg, rgba(18,151,230,0.12), rgba(134,217,49,0.06));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.8rem 2rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: conic-gradient(from 0deg, transparent, rgba(18,151,230,0.06), transparent 40%);
  animation: spinSlow 14s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-box p { color: var(--muted); margin-bottom: 1.4rem; }

/* Contact form */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
  display: block;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
footer img {
  width: 30px;
  height: 30px;
  margin-bottom: 0.5rem;
  opacity: 0.75;
  animation: logoFloat 5.5s ease-in-out infinite;
}

/* Mobile */
@media (max-width: 800px) {
  nav { padding: 0.7rem 1rem; }
  .nav-links { display: none; }
  .hero-logo { width: 110px; height: 110px; }
  section { padding: 2.8rem 1.15rem 3.5rem; }
  .mode-card { grid-template-columns: 52px 1fr; }
  .page-hero { padding: 7rem 1.2rem 2.2rem; }
}

/* ========== ENHANCED VISUALS & PRO ANIMATIONS ========== */

.hero-pattern {
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  opacity: 0.5;
  pointer-events: none;
  animation: patternSpin 40s linear infinite;
  z-index: 0;
}
@keyframes patternSpin {
  to { transform: translate(-50%, -55%) rotate(360deg); }
}

.hero-logo-wrap,
.hero h1,
.hero-sub,
.hero-actions {
  position: relative;
  z-index: 1;
}

/* Domain icons as images */
.domain-icon img,
.domain-icon-img {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s var(--ease-out);
}
.domain-card:hover .domain-icon img,
.domain-card:hover .domain-icon-img {
  transform: scale(1.12);
}

.domain-detail-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  transition: transform 0.5s var(--ease-out);
}
.domain-detail:hover .domain-detail-icon {
  transform: scale(1.08);
}

/* Grid background for sections */
.section-grid-bg {
  position: relative;
}
.section-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18,151,230,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,151,230,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* Floating orbs (subtle) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 280px; height: 280px;
  background: rgba(18, 151, 230, 0.12);
  top: 10%; right: -5%;
  animation-delay: 0s;
}
.orb-2 {
  width: 200px; height: 200px;
  background: rgba(134, 217, 49, 0.08);
  bottom: 15%; left: -3%;
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

/* Card shine on hover */
.domain-card,
.pillar,
.mode-card,
.about-card,
.diff-item,
.collab-block {
  position: relative;
  overflow: hidden;
}
.domain-card::after,
.pillar::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.03) 45%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}
.domain-card:hover::after,
.pillar:hover::after {
  transform: translateX(100%);
}

/* Stagger children more smoothly */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.33s; }

/* Page hero logo small */
.page-hero-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  opacity: 0;
  animation: logoReveal 1.2s var(--ease-out) 0.1s forwards,
             logoBreath 6s ease-in-out 1.4s infinite;
}

/* Stat / highlight row */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  transition: border-color 0.35s, transform 0.4s var(--ease-out);
}
.highlight:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}
.highlight .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.highlight .lbl {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* Industry tags */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.industry-tags span {
  background: rgba(18,151,230,0.1);
  border: 1px solid rgba(18,151,230,0.2);
  color: var(--light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  transition: background 0.3s, border-color 0.3s;
}
.industry-tags span:hover {
  background: rgba(18,151,230,0.2);
  border-color: var(--blue);
}

/* Image row */
.visual-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}
.visual-strip .vs-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 0.5rem;
  text-align: center;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.visual-strip .vs-item:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
}
.visual-strip .vs-item:nth-child(even):hover { border-color: var(--green); }
.visual-strip img {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
}
.visual-strip p {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 700px) {
  .visual-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-pattern { width: 280px; height: 280px; }
}

/* ========== BURGER MENU ========== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 210;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 18, 32, 0.97);
  backdrop-filter: blur(20px);
  z-index: 205;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--green); }
.mobile-menu .nav-cta {
  background: var(--blue);
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}
.mobile-menu .lang-switch {
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .burger { display: flex; }
  .nav-links { display: none !important; }
  .nav-right > .lang-switch { display: none; }
  .mobile-menu { display: flex; }
}

/* ========== CONTENT IMAGES ========== */
.content-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}
.content-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  position: relative;
}
.content-img-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.content-img-wrap:hover img {
  transform: scale(1.04);
}
.content-img-wrap.tall img { height: 280px; }
.content-img-wrap.short img { height: 180px; }

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}
.split-section.reverse {
  direction: rtl;
}
.split-section.reverse > * {
  direction: ltr;
}
.split-section .text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.split-section .text p {
  color: var(--muted);
  font-size: 0.95rem;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.img-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.img-grid img:hover {
  transform: scale(1.03);
  border-color: var(--blue);
}

.domain-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.2rem;
  align-items: start;
}
.domain-detail .domain-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

@media (max-width: 800px) {
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .img-grid { grid-template-columns: 1fr 1fr; }
  .domain-detail { grid-template-columns: 1fr; }
  .domain-detail .domain-img {
    width: 100%;
    height: 160px;
  }
  .content-img-wrap img { height: 200px; }
}

.domain-detail {
  grid-template-columns: 120px 1fr !important;
}
.domain-detail .domain-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.domain-text h3 { margin-top: 0; }
@media (max-width: 800px) {
  .domain-detail { grid-template-columns: 1fr !important; }
  .domain-detail .domain-img { width: 100%; height: 180px; }
}

/* Domain images — compact tech thumbnails */
.domain-detail {
  display: grid !important;
  grid-template-columns: 88px 1fr !important;
  gap: 1rem !important;
  align-items: start;
}
.domain-detail .domain-img {
  width: 88px !important;
  height: 88px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.domain-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.domain-text .lead {
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}
.domain-text p {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Tech image accents — rare, small */
.tech-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.25rem 0 0.5rem;
}
.tech-img-row img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.tech-img-row img:hover {
  opacity: 1;
  transform: scale(1.02);
}

@media (max-width: 800px) {
  .domain-detail {
    grid-template-columns: 64px 1fr !important;
    gap: 0.75rem !important;
  }
  .domain-detail .domain-img {
    width: 64px !important;
    height: 64px !important;
  }
  .tech-img-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .tech-img-row img { height: 72px; }
}


/* === SIZE FIXES: smaller icons & controlled tech images === */
.domain-icon {
  width: 36px !important;
  height: 36px !important;
  margin: 0 auto 0.65rem !important;
  border-radius: 8px !important;
}
.domain-icon img,
.domain-icon-img {
  width: 22px !important;
  height: 22px !important;
}
.domain-card h3 { font-size: 0.88rem !important; }
.domain-card p { font-size: 0.75rem !important; }

.domain-detail {
  display: grid !important;
  grid-template-columns: 64px 1fr !important;
  gap: 0.9rem !important;
  align-items: start;
}
.domain-detail .domain-img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.domain-detail-icon {
  width: 28px !important;
  height: 28px !important;
  margin-bottom: 0.5rem !important;
}

/* Tech content images — controlled height, not huge */
.tech-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
.tech-banner-wrap {
  margin: 1.25rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.tech-banner-wrap img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.tech-banner-wrap:hover img { transform: scale(1.03); }

.tech-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.tech-pair img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.tech-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.25rem 0;
}
.tech-trio img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

@media (max-width: 800px) {
  .domain-detail { grid-template-columns: 52px 1fr !important; }
  .domain-detail .domain-img { width: 52px !important; height: 52px !important; }
  .tech-banner-wrap img { height: 120px; }
  .tech-pair { grid-template-columns: 1fr 1fr; }
  .tech-pair img { height: 100px; }
  .tech-trio { grid-template-columns: repeat(3, 1fr); }
  .tech-trio img { height: 72px; }
  .domain-icon { width: 32px !important; height: 32px !important; }
  .domain-icon img { width: 18px !important; height: 18px !important; }
}

/* HARD LIMIT: never let SVG icons blow up */
img[src*="assets/icons/"]:not(.hero-pattern) {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
}
.hero-pattern {
  width: 420px !important;
  height: 420px !important;
  max-width: 420px !important;
  max-height: 420px !important;
}
.vs-item, .visual-strip { display: none !important; }

.page-hero-logo {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}

.domain-img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: cover !important;
}

/* ========== EXTRA ANIMATIONS ========== */

/* Nav brand logo subtle pulse on load */
.nav-brand img {
  animation: logoFloat 5s ease-in-out infinite, navLogoIn 0.8s var(--ease-out) forwards;
  opacity: 0;
}
@keyframes navLogoIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* CTA button glow pulse */
.btn-primary {
  position: relative;
  animation: ctaGlow 3.5s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 22px rgba(18, 151, 230, 0.3); }
  50% { box-shadow: 0 4px 32px rgba(18, 151, 230, 0.55); }
}

/* Section labels slide in */
.section-label {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
}
.reveal.visible .section-label,
.page-hero .section-label {
  opacity: 1;
  transform: translateX(0);
}
.page-hero .section-label {
  animation: labelIn 0.7s 0.2s var(--ease-out) forwards;
  opacity: 0;
}
@keyframes labelIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Page hero title */
.page-hero h1 {
  opacity: 0;
  animation: fadeUp 0.9s 0.35s var(--ease-out) forwards;
}
.page-hero p {
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease-out) forwards;
}

/* Cards stagger scale on hover more fluid */
.domain-card,
.pillar,
.mode-card,
.about-card,
.diff-item,
.collab-block,
.highlight {
  transition: transform 0.5s var(--ease-out), border-color 0.35s, box-shadow 0.5s var(--ease-out);
}

/* Tech images fade-up when revealed */
.tech-banner-wrap,
.tech-pair,
.tech-trio {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
.reveal.visible .tech-banner-wrap,
.reveal.visible .tech-pair,
.reveal.visible .tech-trio,
.tech-banner-wrap.visible,
.tech-pair.visible,
.tech-trio.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Industry tags pop */
.industry-tags span {
  opacity: 0;
  transform: scale(0.9);
  animation: tagIn 0.45s var(--ease-out) forwards;
}
.industry-tags span:nth-child(1) { animation-delay: 0.05s; }
.industry-tags span:nth-child(2) { animation-delay: 0.1s; }
.industry-tags span:nth-child(3) { animation-delay: 0.15s; }
.industry-tags span:nth-child(4) { animation-delay: 0.2s; }
.industry-tags span:nth-child(5) { animation-delay: 0.25s; }
.industry-tags span:nth-child(6) { animation-delay: 0.3s; }
@keyframes tagIn {
  to { opacity: 1; transform: scale(1); }
}

/* Mode number subtle bounce on reveal */
.mode-num {
  transition: transform 0.5s var(--ease-out);
}
.mode-card:hover .mode-num {
  transform: scale(1.08);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  z-index: 300;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Smooth link underline already exists — enhance active */
.nav-links a.active {
  color: var(--white);
}

/* Footer logo */
footer img {
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
footer img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-progress { display: none; }
}
