/* =========================================================
   Xeviqa — homepage styles (v3, premium SaaS pass)
   ========================================================= */

:root{
  --bg:            #05070D;
  --bg-soft:       #090C16;
  --surface:       #12162A;
  --surface-glass: rgba(18,22,42,0.55);
  --border:        rgba(255,255,255,0.08);
  --border-soft:   rgba(255,255,255,0.05);

  --text:          #F3F5FC;
  --text-muted:    #8B92AC;
  --text-faint:    #565C79;

  --blue:          #4C7DFF;
  --blue-soft:     #6E9BFF;
  --violet:        #8B5CF6;
  --violet-soft:   #A78BFA;

  --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);
  --grad-soft: linear-gradient(120deg, var(--blue-soft) 0%, var(--violet-soft) 100%);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --container: 1180px;

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.19,1,.22,1);
  --ease-soft: cubic-bezier(.33,1,.68,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family: var(--font-display); margin:0; color: var(--text); font-weight:700; }
p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

.eyebrow{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin: 0 0 16px;
}
.eyebrow-mark{ color: var(--violet-soft); }

.grad-text{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ambient backdrops ---------- */
.noise-overlay{
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.bg-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 50% at 50% 0%, #000 0%, transparent 78%);
}

.scroll-progress{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 300;
  background: transparent;
}
.scroll-progress span{
  display:block; height:100%; width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(139,92,246,0.6);
  transition: width .08s linear;
}

/* ---------- Load-in entrance (hero) ---------- */
.load-in{
  opacity: 0;
  transform: translateY(16px);
  animation: load-up .9s var(--ease-soft) forwards;
}
.load-1{ animation-delay: .05s; }
.load-2{ animation-delay: .16s; }
.load-3{ animation-delay: .26s; }
.load-4{ animation-delay: .38s; }
.load-5{ animation-delay: .5s; }
@keyframes load-up{ to{ opacity: 1; transform: translateY(0); } }

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s ease;
  white-space: nowrap;
  overflow: hidden;
}
.btn span{ position: relative; z-index: 1; }
.btn-primary{
  background: linear-gradient(120deg, var(--blue), var(--violet), var(--blue));
  background-size: 220% 100%;
  background-position: 0% 0%;
  color: #060312;
  box-shadow: 0 8px 26px -8px rgba(139,92,246,0.55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-position .6s var(--ease);
}
.btn-primary:hover{
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 14px 32px -8px rgba(139,92,246,0.75);
  background-position: 100% 0%;
}
.btn-ghost{
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover{ border-color: var(--blue-soft); background: rgba(76,125,255,0.1); transform: translateY(-2px); }
.btn-small{ padding: 9px 18px; font-size: 0.85rem; }
.btn-large{ padding: 16px 34px; font-size: 1rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(5,7,13,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled{
  background: rgba(5,7,13,0.86);
  border-bottom-color: var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  gap: 24px;
  height: 76px;
}
.logo{ display:flex; align-items:center; gap:10px; margin-right: auto; }
.logo-word{ font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }

.main-nav{ display:flex; align-items:center; gap: 26px; }
.main-nav a{
  font-size: 0.94rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}
.main-nav a span{ position: relative; }
.main-nav a span::after{
  content:"";
  position: absolute;
  left:0; right:0; bottom:-6px;
  height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover{ color: var(--text); }
.main-nav a:hover span::after{ transform: scaleX(1); }
.main-nav a.active{ color: var(--text); }
.main-nav a.active span::after{ transform: scaleX(1); }

.header-cta{ margin-left: 4px; }

.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor:pointer;
}
.menu-toggle span{
  display:block; width: 18px; height: 2px; margin: 0 auto;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 28px 24px;
  border-top: 1px solid var(--border-soft);
}
.mobile-menu.open{ display: flex; }
.mobile-menu a{ padding: 12px 4px; font-size: 1rem; color: var(--text-muted); border-bottom: 1px solid var(--border-soft); }
.mobile-menu a:hover{ color: var(--text); }
.mobile-cta{ margin-top: 14px; align-self: flex-start; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
}
.hero-blobs{ position:absolute; inset:0; z-index:0; }
.blob{
  position:absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: float 18s ease-in-out infinite;
}
.blob-a{ width: 480px; height: 480px; background: var(--violet); top: -180px; right: -140px; }
.blob-b{ width: 400px; height: 400px; background: var(--blue); bottom: -160px; left: -120px; animation-delay: -9s; }
@keyframes float{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(26px,-28px) scale(1.07); }
}

.hero-inner{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-title{
  display: block;
  font-size: clamp(2.5rem, 4.8vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero-title .line{ display: block; }
.hero-sub{
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions{ display:flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero visual: orbit rings + glass panel ---------- */
.hero-visual{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.orbit-rings{
  position: absolute;
  width: 130%;
  max-width: 560px;
  height: auto;
  opacity: 0.55;
  animation: spin-slow 60s linear infinite;
  pointer-events: none;
}
@keyframes spin-slow{ to{ transform: rotate(360deg); } }
.ring{ fill: none; stroke: rgba(139,92,246,0.28); stroke-width: 1; }
.ring-2{ stroke: rgba(76,125,255,0.22); stroke-dasharray: 2 8; }
.ring-3{ stroke: rgba(167,139,250,0.2); }

.hero-panel{
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.65);
  transition: box-shadow .3s ease;
  will-change: transform;
}
.panel-glow{
  position:absolute; inset:-1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(110,155,255,0.5), rgba(167,139,250,0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel-head{
  display:flex; align-items:center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 14px; font-weight: 500;
}
.live-dot{
  width: 7px; height:7px; border-radius: 50%;
  background: var(--blue-soft);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring{
  0%{ box-shadow: 0 0 0 0 rgba(110,155,255,0.55); }
  70%{ box-shadow: 0 0 0 8px rgba(110,155,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(110,155,255,0); }
}

.pipeline-svg{ width: 100%; height: auto; display:block; }
.pipe-path{ opacity: 0.8; }
.node-core circle:first-child{ filter: drop-shadow(0 0 10px rgba(139,92,246,0.55)); }

.pulse-dot{ offset-distance: 0%; animation: travel 3.2s linear infinite; filter: drop-shadow(0 0 4px rgba(167,139,250,0.9)); }
.pulse-dot-delay{ animation-delay: 1.6s; }
@keyframes travel{
  0%{ offset-distance: 0%; opacity: 0; }
  8%{ opacity: 1; }
  92%{ opacity: 1; }
  100%{ offset-distance: 100%; opacity: 0; }
}

.panel-labels{
  display:flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem; color: var(--text-faint);
  padding: 0 6px; margin-top: 2px;
}
.panel-tags{ display:flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tag{
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; background: rgba(255,255,255,0.02);
}

.section-divider{
  position: relative;
  height: 1px;
  margin-top: 40px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.35), transparent);
}

/* =========================================================
   SECTION SHARED
   ========================================================= */
section{ padding: 100px 0; position: relative; }
.section-head{ max-width: 600px; margin-bottom: 50px; }
.section-head h2{
  font-size: clamp(1.7rem, 2.9vw, 2.25rem);
  letter-spacing: -0.015em;
}
.section-sub{
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
}

/* =========================================================
   SERVICES — bento grid, interactive tilt cards
   ========================================================= */
.services{
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.bento{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.bento-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px 26px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
  transform: perspective(800px);
  will-change: transform;
}
.bento-card::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(220px 160px at var(--mx,50%) var(--my,0%), rgba(139,92,246,0.16), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.bento-card:hover{ border-color: rgba(139,92,246,0.4); box-shadow: 0 24px 50px -28px rgba(80,60,180,0.5); }
.bento-card:hover::before{ opacity: 1; }

.card-badge{
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--violet-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(139,92,246,0.08);
  z-index: 1;
}

.card-agents{ grid-column: span 7; }
.card-chat{ grid-column: span 5; }
.card-auto{ grid-column: span 5; }
.card-consult{ grid-column: span 7; }

.card-illo{ height: 130px; margin-bottom: 18px; margin-top: 8px; position: relative; z-index: 1; }
.card-illo svg{ width: 100%; height: 100%; }

.bento-card h3{ font-size: 1.16rem; margin-bottom: 8px; position: relative; z-index: 1; }
.bento-card p{ color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; position: relative; z-index: 1; }

.card-points{
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-points li{
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.card-points li::before{
  content:"";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad-soft);
}

/* card-specific illustration animation */
.orbit-slow{ transform-origin: 100px 70px; animation: spin 14s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }
.pulse-soft{ animation: soft-pulse 2.4s ease-in-out infinite; }
@keyframes soft-pulse{ 0%,100%{ opacity: 0.75; transform: scale(1); } 50%{ opacity: 1; transform: scale(1.12); } }

.typing-dot{ animation: bounce 1.4s ease-in-out infinite; }
.dot1{ animation-delay: 0s; } .dot2{ animation-delay: .18s; } .dot3{ animation-delay: .36s; }
@keyframes bounce{ 0%,60%,100%{ transform: translateY(0); opacity: .6; } 30%{ transform: translateY(-5px); opacity: 1; } }

.packet{ offset-path: path('M38 64 L162 64'); animation: packet-move 3s ease-in-out infinite; }
@keyframes packet-move{ 0%{ offset-distance: 0%; opacity: 0; } 10%{ opacity: 1; } 90%{ opacity: 1; } 100%{ offset-distance: 100%; opacity: 0; } }

.radar-sweep{ transform-origin: 100px 70px; animation: sweep 3.6s linear infinite; }
@keyframes sweep{ to{ transform: rotate(360deg); } }

/* =========================================================
   APPROACH — numbered timeline
   ========================================================= */
.timeline{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.timeline-track{
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border);
  z-index: 0;
  overflow: hidden;
}
.timeline-fill{
  display:block; height:100%; width:0%;
  background: var(--grad);
  transition: width 1.6s var(--ease);
}
.timeline-fill.filled{ width: 100%; }

.step{ position: relative; z-index: 1; opacity: 0.4; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.active{ opacity: 1; transform: translateY(0); }

.step-index{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 14px;
  transition: color .4s ease;
}
.step.active .step-index{ color: var(--violet-soft); }

.step-icon{
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color: var(--blue-soft);
  margin-bottom: 18px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.step.active .step-icon{ border-color: rgba(139,92,246,0.55); box-shadow: 0 0 22px -6px rgba(139,92,246,0.55); }
.step-icon svg{ width: 24px; height: 24px; }
.step h3{ font-size: 1.06rem; margin-bottom: 6px; }
.step p{ color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ text-align: center; }
.contact-card{
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 58px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.contact-glow{
  position:absolute; inset:0;
  background: radial-gradient(480px 240px at 50% 0%, rgba(139,92,246,0.22), transparent 65%);
  pointer-events:none;
  animation: glow-breathe 6s ease-in-out infinite;
}
@keyframes glow-breathe{ 0%,100%{ opacity: 0.85; } 50%{ opacity: 1.15; } }
.contact-card .eyebrow, .contact-card h2, .contact-card .btn{ position: relative; z-index: 1; }
.contact-card .eyebrow{ justify-content: center; }
.contact-card h2{
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 30px;
  letter-spacing: -0.015em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ border-top: 1px solid var(--border-soft); padding: 40px 0; background: var(--bg-soft); position: relative; z-index: 1; }
.footer-inner{ display:flex; align-items:center; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.logo-footer .logo-word{ font-size: 1.05rem; }
.footer-nav{ display:flex; gap: 26px; }
.footer-nav a{ color: var(--text-muted); font-size: 0.92rem; }
.footer-nav a:hover{ color: var(--text); }
.footer-copy{ color: var(--text-faint); font-size: 0.85rem; }

/* =========================================================
   SOLUTIONS / USE CASES
   ========================================================= */
.solutions{
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.usecase-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.usecase-card:hover{
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 24px 50px -28px rgba(80,60,180,0.5);
  transform: translateY(-3px);
}
.usecase-icon{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(139,92,246,0.08);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-soft);
  margin-bottom: 16px;
}
.usecase-icon svg{ width: 22px; height: 22px; }
.usecase-card h3{ font-size: 1.05rem; margin-bottom: 10px; }
.usecase-problem, .usecase-result{
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.usecase-problem{ margin-bottom: 10px; }
.usecase-problem strong, .usecase-result strong{ color: var(--text); font-weight: 600; }

/* =========================================================
   INTEGRATIONS
   ========================================================= */
.integrations{ position: relative; }
.integration-panel{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
}
.integration-hub{ display: flex; align-items: center; justify-content: center; }
.integration-hub svg{ width: 100%; max-width: 200px; height: auto; }
.integration-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.integration-list .tag{ font-size: 0.82rem; padding: 7px 15px; }
.integration-note{
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 0.88rem;
  text-align: center;
}

/* =========================================================
   WHY XEVIQA
   ========================================================= */
.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
.why-card{ position: relative; }
.why-icon{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-soft);
  margin-bottom: 16px;
}
.why-icon svg{ width: 22px; height: 22px; }
.why-card h3{ font-size: 1.02rem; margin-bottom: 8px; }
.why-card p{ color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-sub{
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 32px;
}
.contact-form{
  position: relative;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field{
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea{
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--blue-soft);
  background: rgba(255,255,255,0.05);
}
.form-status{
  min-height: 1.2em;
  font-size: 0.86rem;
  color: var(--blue-soft);
}
.form-status.is-error{ color: #FF8C8C; }
.form-actions{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-alt-link{
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-alt-link:hover{ color: var(--text); }

/* =========================================================
   FOOTER (expanded)
   ========================================================= */
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-about{ max-width: 320px; }
.footer-about .logo-footer{ margin-bottom: 14px; }
.footer-desc{ color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col .footer-nav{ display: flex; flex-direction: column; gap: 10px; }
.footer-col .footer-nav a{ color: var(--text-muted); font-size: 0.92rem; }
.footer-col .footer-nav a:hover{ color: var(--text); }
.footer-bottom{
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

/* =========================================================
   NAV DROPDOWNS (Services / Solutions hubs)
   ========================================================= */
.nav-item{ position: relative; }
.nav-item > a{ display:flex; align-items:center; gap:5px; }
.nav-caret{ width:9px; height:9px; opacity:0.7; transition: transform .2s ease; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret{ transform: rotate(180deg); }

.nav-dropdown{
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 230px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a{
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.87rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-dropdown a span::after{ display:none; }
.nav-dropdown a:hover{ background: rgba(255,255,255,0.04); color: var(--text); }

.mobile-submenu{
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 1px solid var(--border-soft);
  margin: 2px 0 8px 6px;
}
.mobile-submenu a{ font-size: 0.92rem; padding: 9px 4px; border-bottom: none; color: var(--text-muted); }
.mobile-group-label{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 14px 4px 2px;
}

/* =========================================================
   INNER PAGE HERO + BREADCRUMB
   ========================================================= */
.page-hero{
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .hero-blobs{ opacity: 0.7; }
.page-hero .blob-a{ width: 360px; height: 360px; top: -160px; right: -100px; opacity: 0.24; }
.page-hero .blob-b{ width: 300px; height: 300px; bottom: -140px; left: -100px; opacity: 0.2; }
.page-hero-inner{ position: relative; z-index: 2; max-width: 760px; }
.page-hero h1{
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.page-hero-sub{
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 620px;
}
.page-hero-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 22px; }

.breadcrumb{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.breadcrumb a{ color: var(--text-muted); }
.breadcrumb a:hover{ color: var(--text); }
.breadcrumb .crumb-sep{ color: var(--text-faint); }
.breadcrumb .crumb-current{ color: var(--blue-soft); }

.quick-links{ display:flex; flex-wrap:wrap; gap:9px; margin-top: 24px; }
.quick-links a{
  font-family: var(--font-mono); font-size:0.78rem; color: var(--text-muted);
  border:1px solid var(--border); border-radius:999px; padding:7px 14px;
  background: rgba(255,255,255,0.02); transition: border-color .2s ease, color .2s ease;
}
.quick-links a:hover{ border-color: var(--blue-soft); color: var(--text); }

.anchor-block{ padding: 64px 0; border-top: 1px solid var(--border-soft); scroll-margin-top: 96px; }
.anchor-block:first-of-type{ border-top: none; padding-top: 0; }
.anchor-block-head{ display:flex; align-items:center; gap:14px; margin-bottom: 28px; flex-wrap: wrap; }
.anchor-block-head .value-icon{ margin-bottom:0; }
.anchor-block-head h2{ font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing:-0.015em; }
.anchor-block-head .card-badge-inline{
  font-family: var(--font-mono); font-size:0.68rem; color: var(--violet-soft);
  border:1px solid var(--border); border-radius:999px; padding:4px 10px; background: rgba(139,92,246,0.08);
}

/* =========================================================
   GENERIC INNER-PAGE CONTENT PATTERNS
   ========================================================= */
.content-section{ padding: 84px 0; }
.content-section.tight{ padding: 64px 0; }
.content-section.alt{ background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.content-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.content-columns .col-text h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; letter-spacing: -0.015em; }
.content-columns .col-text p{ color: var(--text-muted); font-size: 0.98rem; line-height: 1.7; margin-bottom: 14px; }
.content-columns .col-text p:last-child{ margin-bottom: 0; }

.visual-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.visual-card svg{ width: 100%; height: auto; display:block; }

.value-grid, .culture-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 30px;
}
.value-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md); padding: 26px 24px; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.value-card:hover{ border-color: rgba(139,92,246,0.4); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(80,60,180,0.5); }
.value-icon{ width:46px; height:46px; border-radius:50%; background: rgba(139,92,246,0.08); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color: var(--blue-soft); margin-bottom: 16px; }
.value-icon svg{ width:22px; height:22px; }
.value-card h3{ font-size: 1.02rem; margin-bottom: 8px; }
.value-card p{ color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }

/* Numbered mini-timeline reused for "how it works" style lists on service/solution pages */
.mini-steps{ display:flex; flex-direction:column; gap: 0; }
.mini-step{ display:flex; gap:20px; padding: 22px 0; border-top: 1px solid var(--border-soft); }
.mini-step:first-child{ border-top: none; }
.mini-step-index{ font-family: var(--font-mono); font-size: 0.85rem; color: var(--violet-soft); min-width: 34px; padding-top: 2px; }
.mini-step-body h3{ font-size: 1rem; margin-bottom: 6px; }
.mini-step-body p{ color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

.stat-row{ display:flex; gap: 40px; flex-wrap: wrap; margin-top: 8px; }
.stat-item{ min-width: 120px; }
.stat-item .num{ font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-item .label{ color: var(--text-muted); font-size: 0.84rem; margin-top: 4px; }

/* CTA banner reused across service/solution/portfolio pages */
.cta-banner{
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 44px 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(420px 200px at 15% 0%, rgba(139,92,246,0.18), transparent 65%);
  pointer-events:none;
}
.cta-banner h3{ font-size: 1.3rem; position:relative; z-index:1; margin-bottom: 6px; }
.cta-banner p{ color: var(--text-muted); font-size: 0.94rem; position:relative; z-index:1; }
.cta-banner .btn{ position:relative; z-index:1; }

/* =========================================================
   SERVICES / SOLUTIONS HUBS
   ========================================================= */
.hub-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hub-card{
  display:block;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.hub-card:hover{ border-color: rgba(139,92,246,0.4); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(80,60,180,0.5); }
.hub-icon{ width:52px; height:52px; border-radius:16px; background: rgba(139,92,246,0.08); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--blue-soft); margin-bottom:18px; }
.hub-icon svg{ width:26px; height:26px; }
.hub-card h3{ font-size: 1.14rem; margin-bottom: 8px; }
.hub-card p{ color: var(--text-muted); font-size:0.94rem; line-height:1.6; margin-bottom: 14px; }
.hub-card .hub-link{ font-family: var(--font-mono); font-size:0.8rem; color: var(--blue-soft); display:inline-flex; align-items:center; gap:6px; }
.hub-card .hub-link svg{ width:13px; height:13px; transition: transform .2s ease; }
.hub-card:hover .hub-link svg{ transform: translateX(3px); }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.portfolio-card{ display:block; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); overflow:hidden; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.portfolio-card:hover{ border-color: rgba(139,92,246,0.4); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(80,60,180,0.5); }
.media-placeholder{
  position:relative;
  height: 190px;
  display:flex; align-items:center; justify-content:center;
  background:
    linear-gradient(135deg, rgba(76,125,255,0.10), rgba(139,92,246,0.10)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 10px);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-faint);
}
.media-placeholder svg{ width:34px; height:34px; opacity:0.7; }
.media-placeholder .media-label{
  position:absolute; bottom:10px; right:12px;
  font-family: var(--font-mono); font-size:0.68rem; letter-spacing:0.04em; text-transform:uppercase; color: var(--text-faint);
}
.portfolio-card-body{ padding: 22px 24px 26px; }
.portfolio-card-body .card-badge-inline{
  display:inline-block;
  font-family: var(--font-mono); font-size:0.68rem; letter-spacing:0.03em;
  color: var(--violet-soft); border:1px solid var(--border); border-radius:999px;
  padding: 4px 10px; background: rgba(139,92,246,0.08); margin-bottom: 12px;
}
.portfolio-card-body h3{ font-size: 1.08rem; margin-bottom: 8px; }
.portfolio-card-body p{ color: var(--text-muted); font-size:0.9rem; line-height:1.55; }

.sample-note{
  display:flex; gap:10px; align-items:flex-start;
  background: rgba(139,92,246,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 40px;
}
.sample-note svg{ width:18px; height:18px; flex-shrink:0; margin-top:1px; color: var(--violet-soft); }

.project-meta-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 40px; }
.project-meta-item{ border-top: 1px solid var(--border-soft); padding-top: 12px; }
.project-meta-item .meta-label{ font-family: var(--font-mono); font-size:0.7rem; letter-spacing:0.05em; text-transform:uppercase; color:var(--text-faint); margin-bottom:6px; }
.project-meta-item .meta-value{ font-size:0.94rem; color: var(--text); }

.video-placeholder{
  position:relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at center, rgba(139,92,246,0.14), transparent 60%),
    var(--surface);
  aspect-ratio: 16/9;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 40px;
}
.video-placeholder .play-btn{
  width:64px; height:64px; border-radius:50%;
  background: var(--grad);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 20px 40px -14px rgba(139,92,246,0.6);
}
.video-placeholder .play-btn svg{ width:22px; height:22px; fill:#060312; margin-left:3px; }
.video-placeholder .media-label{ position:absolute; bottom:14px; right:16px; font-family:var(--font-mono); font-size:0.72rem; color: var(--text-faint); }

/* =========================================================
   BLOG
   ========================================================= */
.blog-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card{ display:block; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md); overflow:hidden; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.blog-card:hover{ border-color: rgba(139,92,246,0.4); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(80,60,180,0.5); }
.blog-card .media-placeholder{ height: 140px; }
.blog-card-body{ padding: 20px 22px 24px; }
.blog-meta{ display:flex; gap:10px; align-items:center; font-family: var(--font-mono); font-size:0.72rem; color: var(--text-faint); margin-bottom: 10px; }
.blog-meta .tag{ font-size:0.7rem; padding:3px 10px; }
.blog-card-body h3{ font-size:1rem; margin-bottom:8px; line-height:1.4; }
.blog-card-body p{ color: var(--text-muted); font-size:0.88rem; line-height:1.55; }
.blog-card.is-placeholder{ opacity:0.55; }
.blog-card.is-placeholder .media-placeholder{ background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 10px); }

.blog-post-body{ max-width: 720px; }
.blog-post-body h2{ font-size:1.3rem; margin: 34px 0 14px; letter-spacing:-0.01em; }
.blog-post-body p{ color: var(--text-muted); font-size:1rem; line-height:1.75; margin-bottom: 16px; }
.blog-post-body ul{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; padding-left:0; }
.blog-post-body ul li{ position:relative; padding-left:18px; color:var(--text-muted); font-size:0.98rem; line-height:1.65; }
.blog-post-body ul li::before{ content:""; position:absolute; left:0; top:0.6em; width:5px; height:5px; border-radius:50%; background: var(--grad-soft); }

/* =========================================================
   CAREERS
   ========================================================= */
.position-list{ display:flex; flex-direction:column; gap: 14px; }
.position-card{ display:flex; align-items:center; justify-content:space-between; gap: 20px; flex-wrap: wrap; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md); padding: 22px 26px; transition: border-color .3s ease; }
.position-card:hover{ border-color: rgba(139,92,246,0.4); }
.position-info h3{ font-size: 1.02rem; margin-bottom: 6px; }
.position-meta{ display:flex; gap:10px; flex-wrap:wrap; }
.position-meta .tag{ font-size:0.72rem; padding:4px 11px; }
.position-card.is-empty{ justify-content:center; text-align:center; border-style:dashed; color: var(--text-faint); }
.position-card.is-empty p{ color: var(--text-muted); font-size:0.92rem; }

/* =========================================================
   FLOATING AI ASSISTANT
   ========================================================= */
.ai-launcher{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad);
  border: none;
  cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 16px 36px -12px rgba(139,92,246,0.65);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ai-launcher:hover{ transform: translateY(-2px) scale(1.04); box-shadow: 0 20px 42px -12px rgba(139,92,246,0.8); }
.ai-launcher svg{ width: 24px; height: 24px; color: #060312; }
.ai-launcher .ai-launcher-close{ display:none; }
.ai-launcher[aria-expanded="true"] .ai-launcher-open{ display:none; }
.ai-launcher[aria-expanded="true"] .ai-launcher-close{ display:block; }
.ai-launcher .ai-ping{
  position:absolute; inset:-4px; border-radius:50%;
  border: 1.5px solid rgba(139,92,246,0.5);
  animation: pulse-ring 2.6s ease-out infinite;
}

.ai-panel{
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 400;
  width: 372px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.ai-panel.open{ opacity:1; visibility:visible; transform: translateY(0) scale(1); }

.ai-panel-header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.ai-panel-title{ display:flex; align-items:center; gap:10px; }
.ai-panel-title .live-dot{ background: var(--violet-soft); }
.ai-panel-title strong{ font-family: var(--font-display); font-size: 0.98rem; }
.ai-panel-title span.status{ display:block; font-size:0.74rem; color: var(--text-faint); }
.ai-panel-close{ background:transparent; border:1px solid var(--border); border-radius:8px; width:30px; height:30px; display:flex; align-items:center; justify-content:center; cursor:pointer; color: var(--text-muted); }
.ai-panel-close:hover{ color: var(--text); border-color: var(--blue-soft); }
.ai-panel-close svg{ width:14px; height:14px; }

.ai-messages{
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display:flex; flex-direction:column; gap: 14px;
}
.ai-message{ max-width: 86%; font-size: 0.9rem; line-height:1.55; padding: 11px 14px; border-radius: 14px; }
.ai-message.from-assistant{ align-self:flex-start; background: rgba(255,255,255,0.04); border:1px solid var(--border-soft); color: var(--text); border-bottom-left-radius:4px; }
.ai-message.from-user{ align-self:flex-end; background: var(--grad); color:#060312; border-bottom-right-radius:4px; font-weight:500; }

.ai-typing{ align-self:flex-start; display:flex; gap:5px; padding: 12px 16px; background: rgba(255,255,255,0.04); border:1px solid var(--border-soft); border-radius:14px; border-bottom-left-radius:4px; }
.ai-typing span{ width:6px; height:6px; border-radius:50%; background: var(--text-faint); animation: bounce 1.4s ease-in-out infinite; }
.ai-typing span:nth-child(2){ animation-delay:.18s; }
.ai-typing span:nth-child(3){ animation-delay:.36s; }

.ai-suggested{ display:flex; flex-wrap:wrap; gap:8px; padding: 0 20px 14px; }
.ai-chip{ font-family: var(--font-body); font-size:0.8rem; color: var(--text-muted); background: rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:999px; padding:7px 13px; cursor:pointer; transition: border-color .2s ease, color .2s ease; }
.ai-chip:hover{ border-color: var(--blue-soft); color: var(--text); }

.ai-input-row{ display:flex; gap:10px; padding: 14px 16px; border-top: 1px solid var(--border-soft); }
.ai-input-row input,
.ai-input-row textarea{
  flex:1; background: rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:20px;
  padding: 11px 16px; color: var(--text); font-size:0.9rem;
  font-family: var(--font-body); resize:none; max-height:120px; line-height:1.4;
}
.ai-input-row input:focus,
.ai-input-row textarea:focus{ outline:none; border-color: var(--blue-soft); }
.ai-send-btn{
  width:40px; height:40px; border-radius:50%; border:none; cursor:pointer;
  background: var(--grad); display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.ai-send-btn svg{ width:16px; height:16px; color:#060312; }
.ai-panel-footnote{ text-align:center; font-size:0.7rem; color: var(--text-faint); padding: 0 16px 14px; }

/* =========================================================
   AI ASSISTANT — v1.5 additions (consultant upgrade)
   Additive only: nothing above this block is modified.
   ========================================================= */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Unread badge on the launcher */
.ai-unread-badge{
  position:absolute; top:-4px; right:-4px; min-width:19px; height:19px;
  padding: 0 5px; border-radius:999px; background:#FF5C7A; color:#fff;
  font-family: var(--font-body); font-size:0.68rem; font-weight:700;
  display:none; align-items:center; justify-content:center;
  box-shadow: 0 0 0 2px var(--bg);
}
.ai-unread-badge.show{ display:flex; }
.ai-launcher[aria-expanded="true"] .ai-unread-badge{ display:none; }

/* Header action buttons (clear / minimize) alongside existing close button */
.ai-panel-actions{ display:flex; align-items:center; gap:8px; }
.ai-icon-btn{
  background:transparent; border:1px solid var(--border); border-radius:8px;
  width:30px; height:30px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color: var(--text-muted); transition: color .2s ease, border-color .2s ease;
}
.ai-icon-btn:hover{ color: var(--text); border-color: var(--blue-soft); }
.ai-icon-btn svg{ width:14px; height:14px; }

/* Body wrapper lets the panel collapse to just its header when minimized */
.ai-body{ display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
.ai-panel.minimized{ height:auto; }
.ai-panel.minimized .ai-body{ display:none; }

/* Status dot reflects live connection state, not just decoration */
.ai-panel-title .live-dot{ transition: background-color .25s ease; }
.ai-panel-title .live-dot.is-connecting{ background: var(--blue-soft); animation: pulse-ring 1.4s ease-out infinite; }
.ai-panel-title .live-dot.is-offline{ background: #FF5C7A; }
.ai-panel-title .live-dot.is-error{ background: #FF9A4C; }

/* Inline banners: offline / error / connecting */
.ai-banner{
  margin: 12px 20px 0; padding: 9px 13px; border-radius: 10px;
  font-size: 0.78rem; line-height:1.4; border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03); color: var(--text-muted);
  display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.ai-banner.is-offline{ border-color: rgba(255,92,122,0.35); color:#FFB4C2; background: rgba(255,92,122,0.08); }
.ai-banner.is-error,
.ai-banner.is-timeout,
.ai-banner.is-ratelimit{ border-color: rgba(255,154,76,0.35); color:#FFCC9C; background: rgba(255,154,76,0.08); }
.ai-banner-text{ flex: 1 1 auto; }
.ai-banner-retry{
  flex: 0 0 auto; border: 1px solid currentColor; background: transparent; color: inherit;
  font: inherit; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  cursor: pointer; transition: background-color .2s ease;
}
.ai-banner-retry:hover{ background: rgba(255,255,255,0.08); }

/* Message timestamps */
.ai-message-meta{
  display:block; margin-top:5px; font-size:0.68rem; letter-spacing:.02em;
  color: var(--text-faint); opacity:0.8;
}
.ai-message.from-user .ai-message-meta{ text-align:right; color: rgba(6,3,18,0.55); }

/* Disabled state while a request is in flight (loading protection) */
.ai-input-row input:disabled{ opacity:0.6; }
.ai-send-btn:disabled{ opacity:0.55; cursor:not-allowed; }

/* RTL support: applied dynamically to #aiPanel via dir="rtl" when Arabic is detected */
.ai-panel[dir="rtl"]{ text-align: right; }
.ai-panel[dir="rtl"] .ai-panel-title{ flex-direction: row-reverse; }
.ai-panel[dir="rtl"] .ai-message.from-assistant{ align-self:flex-end; border-bottom-left-radius:14px; border-bottom-right-radius:4px; }
.ai-panel[dir="rtl"] .ai-message.from-user{ align-self:flex-start; border-bottom-right-radius:14px; border-bottom-left-radius:4px; }
.ai-panel[dir="rtl"] .ai-message.from-user .ai-message-meta{ text-align:left; }
.ai-panel[dir="rtl"] .ai-typing{ align-self:flex-end; }
.ai-panel[dir="rtl"] .ai-input-row{ flex-direction: row-reverse; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px){
  .main-nav{ gap: 18px; }
  .main-nav a{ font-size: 0.88rem; }
}

@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ min-height: 320px; }
  .hero-panel{ max-width: 440px; }
  .card-agents, .card-chat, .card-auto, .card-consult{ grid-column: span 6; }
  .timeline{ grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline-track{ display: none; }
  .usecase-grid{ grid-template-columns: repeat(2, 1fr); }
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .integration-panel{ grid-template-columns: 1fr; text-align: center; }
  .integration-list{ justify-content: center; }
  .integration-hub{ max-width: 160px; margin: 0 auto 8px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-about{ max-width: none; grid-column: span 2; }
  .content-columns{ grid-template-columns: 1fr; gap: 36px; }
  .value-grid, .culture-grid{ grid-template-columns: repeat(2, 1fr); }
  .hub-grid{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr; }
  .blog-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-meta-grid{ grid-template-columns: repeat(2, 1fr); }
  .ai-panel{ width: 340px; }
}

@media (max-width: 760px){
  .main-nav{ display: none; }
  .header-cta{ display: none; }
  .menu-toggle{ display: flex; }
  .hero{ padding: 64px 0 76px; }
  section{ padding: 72px 0; }
  .card-agents, .card-chat, .card-auto, .card-consult{ grid-column: span 12; }
  .timeline{ grid-template-columns: 1fr; row-gap: 34px; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
  .contact-card{ padding: 46px 24px; }
  .usecase-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-about{ grid-column: span 1; }
  .form-actions{ flex-direction: column; align-items: stretch; }
  .form-actions .btn{ width: 100%; }
  .form-alt-link{ text-align: center; }
  .value-grid, .culture-grid{ grid-template-columns: 1fr; }
  .blog-grid{ grid-template-columns: 1fr; }
  .project-meta-grid{ grid-template-columns: repeat(2, 1fr); }
  .page-hero{ padding: 56px 0 44px; }
  .cta-banner{ flex-direction: column; align-items: flex-start; text-align: left; }
  .position-card{ flex-direction: column; align-items: flex-start; }
  .ai-panel{ right: 16px; left: 16px; width: auto; bottom: 88px; }
  .ai-launcher{ right: 18px; bottom: 18px; }
}

@media (max-width: 480px){
  .wrap{ padding: 0 20px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
  .blob-a, .blob-b{ width: 300px; height: 300px; }
  .bg-grid{ background-size: 40px 40px; }
}

/* =========================================================
   MOBILE RESPONSIVE HARDENING — 2026-08-13
   Prevent horizontal overflow in mobile/in-app browsers.
   ========================================================= */
html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.wrap,
.hero-inner,
.hero-copy,
.hero-visual,
.page-hero-inner,
.content-columns,
.content-columns > *,
.bento-grid,
.bento-card,
.footer-grid,
.footer-grid > *{
  min-width: 0;
  max-width: 100%;
}

.hero-copy,
.hero-title,
.hero-sub,
.page-hero h1,
.page-hero-sub,
.section-head,
.section-head h2,
.section-head p{
  overflow-wrap: anywhere;
  word-break: normal;
}

.eyebrow{
  white-space: normal;
  flex-wrap: wrap;
  max-width: 100%;
}

@media (max-width: 760px){
  .hero-inner{
    width: 100%;
    gap: 38px;
  }

  .hero-copy{
    width: 100%;
  }

  .hero-title{
    font-size: clamp(2.15rem, 10.5vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .hero-title .line{
    max-width: 100%;
  }

  .hero-sub{
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-visual{
    width: 100%;
    overflow: hidden;
  }

  .orbit-rings{
    width: min(130%, 520px);
  }
}

@media (max-width: 480px){
  .wrap{
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero{
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .hero-title{
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .eyebrow{
    font-size: 0.7rem;
    line-height: 1.5;
    letter-spacing: 0.075em;
  }

  .page-hero h1{
    font-size: clamp(1.9rem, 9vw, 2.45rem);
  }
}
