:root {
  --bg: #060b14;
  --bg-soft: #0b1322;
  --panel: rgba(10, 18, 34, 0.72);
  --panel-strong: rgba(12, 22, 40, 0.92);
  --line: rgba(93, 141, 230, 0.18);
  --text: #eef4ff;
  --muted: #9ba9c5;
  --blue: #55bfff;
  --blue-2: #90ddff;
  --gold: #f5aa41;
  --gold-2: #ffd27a;
  --glow-blue: 0 0 30px rgba(85, 191, 255, 0.28);
  --glow-gold: 0 0 30px rgba(245, 170, 65, 0.28);
  --max: 1200px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 15%, rgba(49, 119, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 55%, rgba(255, 166, 62, 0.13), transparent 26%),
    linear-gradient(180deg, #030812 0%, #08111f 40%, #060b14 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(79, 129, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 129, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 88%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(3, 8, 18, 0.62);
  border-bottom: 1px solid rgba(133, 167, 255, 0.08);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-ai {
  color: #36a8ff;
  text-shadow:
    0 0 6px rgba(54, 168, 255, 0.45),
    0 0 12px rgba(54, 168, 255, 0.28),
    0 0 20px rgba(54, 168, 255, 0.16);
  animation: aiGlowPulse 3s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 180ms ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(66,160,255,0.95), rgba(245,170,65,0.95));
  color: #04101c;
  box-shadow: var(--glow-blue), var(--glow-gold);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
}

.btn-primary:hover {
  box-shadow: 0 0 34px rgba(85,191,255,0.25), 0 0 34px rgba(245,170,65,0.18);
}

/* HERO */

.hero {
  position: relative;
  padding: 86px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 188, 255, 0.12);
  color: var(--blue-2);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.9rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 10.4ch;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.08;
  max-width: 16ch;
}

.headline-accent {
  background: linear-gradient(135deg, var(--blue-2), #ffffff 38%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 62ch;
  font-size: 1.07rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.point {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(152, 189, 255, 0.08);
  color: #d6e6ff;
  font-size: 0.95rem;
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  min-height: 620px;
}

.orb-panel {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 25%, rgba(95, 183, 255, 0.15), transparent 22%),
    radial-gradient(circle at 50% 75%, rgba(245, 170, 65, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(10,18,34,0.88), rgba(5,10,18,0.95));
  border: 1px solid rgba(146, 187, 255, 0.11);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 80px rgba(0,0,0,0.45);
}

.orb-panel::before,
.orb-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(85,191,255,0),
    rgba(85,191,255,0.95),
    rgba(245,170,65,0.9),
    rgba(245,170,65,0)
  );
  filter: blur(0.5px);
}

.orb-panel::before {
  top: 0;
  height: 100%;
  opacity: 0.9;
}

.orb-panel::after {
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translate(-50%, -50%);
}

.ring {
  animation: slowRotate 20s linear infinite;
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(110, 171, 255, 0.16);
  box-shadow: inset 0 0 50px rgba(63, 149, 255, 0.05), 0 0 60px rgba(44, 110, 255, 0.08);
}

.ring.r2 { width: 500px; height: 500px; opacity: 0.65; }
.ring.r3 { width: 580px; height: 580px; opacity: 0.35; }

.hero-logo {
  animation: pulseGlow 6s ease-in-out infinite;
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(88%, 560px);
  filter: drop-shadow(0 0 50px rgba(85,191,255,0.22)) drop-shadow(0 0 40px rgba(245,170,65,0.16));
  mix-blend-mode: screen;
  opacity: 0.96;
}

.floating-card {
  position: absolute;
  max-width: 260px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(9, 17, 30, 0.8);
  border: 1px solid rgba(153, 195, 255, 0.11);
  backdrop-filter: blur(14px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  animation: floatCard 7s ease-in-out infinite;
}

.floating-card.small {
  max-width: 220px;
  font-size: 0.92rem;
}

.floating-card.top-right { top: 30px; right: 24px; }

.floating-card.bottom-left {
  bottom: 26px;
  left: 24px;
  animation-delay: 1.4s;
}

.card-kicker {
  color: var(--blue-2);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* CASE STUDIES HERO OVERRIDE */

.cs-top-left {
  top: 24px;
  left: 24px;
  right: auto;
}

.cs-bottom-right {
  bottom: 24px;
  right: 24px;
  left: auto;
}

.card-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.card-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CONTACT HERO VISUAL ADJUSTMENT */

.contact-visual {
  margin-top: clamp(16px, 2vw, 28px);
}

/* CONTACT HERO IMAGE OFFSET */

.contact-hero-logo {
  top: calc(46% + 50px);
}

/* SECTIONS */

section {
  padding: 34px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-label {
  color: var(--blue-2);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-copy {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 66ch;
}

/* GRID / PANELS */

.grid-3,
.grid-2,
.stack-grid {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { 
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.panel {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  background: var(--panel);
  border: 1px solid rgba(146, 187, 255, 0.11);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

.grid-2 .panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 180px;
}

.panel strong { color: var(--text); }

.panel:hover,
.stack-card:hover,
.process-card:hover,
.feature-item:hover,
.metric:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 194, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0,0,0,0.30), 0 0 24px rgba(85,191,255,0.08);
  background: rgba(15, 24, 42, 0.82);
}

.icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(85,191,255,0.18), rgba(245,170,65,0.16));
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;

  background: linear-gradient(
    135deg,
    rgba(85,191,255,0.18),
    rgba(245,170,65,0.16)
  );

  border: 1px solid rgba(255,255,255,0.08);
}

.icon-wrap img {
  width: 160%;
  height: 160%;
  object-fit: cover;
  border-radius: 10px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

/* SPLIT / FEATURE */

.split-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feature-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(147, 187, 255, 0.08);
  color: #d7e5ff;
}

.feature-item span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* VISUAL BOX */

.visual-box {
  position: relative;
  min-height: 650px;
  background:
    radial-gradient(circle at 50% 28%, rgba(85,191,255,0.13), transparent 22%),
    radial-gradient(circle at 50% 72%, rgba(245,170,65,0.12), transparent 20%),
    linear-gradient(180deg, rgba(13, 23, 42, 0.92), rgba(7, 11, 20, 0.96));
  border-radius: 24px;
  border: 1px solid rgba(150, 190, 255, 0.11);
  overflow: hidden;
}

.visual-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(85,191,255,0.08), transparent 60%);
  pointer-events: none;
}

.visual-box .halo {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(102,170,255,0.18);
  box-shadow: 0 0 50px rgba(61,130,255,0.14), inset 0 0 40px rgba(61,130,255,0.08);
}

.visual-box .halo::before,
.visual-box .halo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(85,191,255,0), rgba(85,191,255,0.7), rgba(245,170,65,0.7), rgba(245,170,65,0));
}

.visual-box .halo::before { width: 340px; height: 2px; }
.visual-box .halo::after { width: 2px; height: 340px; }

.visual-logo {
  position: absolute;
  inset: 47% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(88%, 520px);
  filter: drop-shadow(0 0 55px rgba(85,191,255,0.28));
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* STACK CARDS */

.stack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.stack-grid .home-link-card {
  display: flex;
  height: 100%;
}

.stack-grid .stack-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  width: 100%;
}

.stack-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(146, 187, 255, 0.09);
  min-height: 210px;
}

.stack-card .stack-label {
  color: var(--blue-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.stack-card h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.stack-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* PROCESS */

.process {
  counter-reset: item;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-card {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(146, 187, 255, 0.09);
  min-height: 230px;
}

.process-card::before {
  counter-increment: item;
  content: "0" counter(item);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(85,191,255,0.2), rgba(245,170,65,0.2));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 700;
  margin-bottom: 18px;
}

.process-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.process {
  counter-reset: item;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.process .home-link-card {
  display: flex;
  height: 100%;
}

.process-card {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(146, 187, 255, 0.09);
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.process-card .link-hint {
  margin-top: auto;
}

/* CTA */

.cta {
  padding: 36px 0 80px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(85,191,255,0.16), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(245,170,65,0.13), transparent 28%),
    linear-gradient(135deg, rgba(11, 19, 34, 0.95), rgba(8, 13, 24, 0.98));
  border: 1px solid rgba(155, 194, 255, 0.12);
  box-shadow: 0 25px 80px rgba(0,0,0,0.36);
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), transparent 30%, transparent 70%, rgba(255,255,255,0.03));
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.mini-metrics .home-link-card {
  display: flex;
  height: 100%;
}

.metric {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(155, 194, 255, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  width: 100%;
}

.metric strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.metric span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* FOOTER */

.footer {
  padding: 20px 0 46px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 194, 255, 0.16), transparent);
  margin-bottom: 16px;
}

.muted-note {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ANIMATIONS */

@keyframes aiGlowPulse {
  0% {
    text-shadow:
      0 0 6px rgba(54, 168, 255, 0.35),
      0 0 12px rgba(54, 168, 255, 0.22),
      0 0 20px rgba(54, 168, 255, 0.12);
  }
  50% {
    text-shadow:
      0 0 8px rgba(54, 168, 255, 0.55),
      0 0 16px rgba(54, 168, 255, 0.34),
      0 0 26px rgba(54, 168, 255, 0.18);
  }
  100% {
    text-shadow:
      0 0 6px rgba(54, 168, 255, 0.35),
      0 0 12px rgba(54, 168, 255, 0.22),
      0 0 20px rgba(54, 168, 255, 0.12);
  }
}

@keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 30px rgba(85,191,255,0.18)); }
  50% { filter: drop-shadow(0 0 60px rgba(85,191,255,0.35)); }
  100% { filter: drop-shadow(0 0 30px rgba(85,191,255,0.18)); }
}

@keyframes slowRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* RESPONSIVE */

@media (max-width: 1080px) {
  .hero-grid,
  .split-feature,
  .cta-grid,
  .stack-grid,
  .process,
  .grid-3,
  .grid-2,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 560px; }
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  h1 { max-width: none; }
  .hero-visual { min-height: 480px; }
  .ring { width: 280px; height: 280px; }
  .ring.r2 { width: 340px; height: 340px; }
  .ring.r3 { width: 400px; height: 400px; }
  .floating-card { position: static; margin: 16px; max-width: none; }
  .orb-panel { display: flex; flex-direction: column; justify-content: end; }
  .hero-logo,
  .visual-logo { width: 78%; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .cta-box { padding: 26px; }
}
.case-logo {
  width: 260px;
  max-width: 100%;
  margin-bottom: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(85,191,255,0.18));
}
/* MODAL SYSTEM */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(85,191,255,0.10), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(245,170,65,0.08), transparent 28%),
    linear-gradient(135deg, rgba(11, 19, 34, 0.98), rgba(8, 13, 24, 0.98));
  border: 1px solid rgba(155, 194, 255, 0.14);
  box-shadow: 0 30px 100px rgba(0,0,0,0.45), 0 0 30px rgba(85,191,255,0.08);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 194, 255, 0.22);
  background: rgba(255,255,255,0.08);
}

.modal-inner {
  padding: 34px;
}

.modal-kicker {
  color: var(--blue-2);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.modal-copy {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 22px;
}

.modal-list {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.modal-list-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(147, 187, 255, 0.08);
}

.modal-list-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-trigger {
  cursor: pointer;
}

.modal-trigger .panel,
.modal-trigger.feature-item,
.modal-trigger .stack-card,
.modal-trigger .process-card {
  position: relative;
  cursor: pointer;
}

.modal-trigger .link-hint {
  transition: transform 180ms ease, color 180ms ease;
}

.modal-trigger:hover .link-hint {
  transform: translateX(3px);
  color: #cfe8ff;
}

@media (max-width: 720px) {
  .modal-inner {
    padding: 26px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.chatbot-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  min-width: 205px;
  border-radius: 999px;
  background: rgba(15, 25, 45, 0.9);
  border: 1px solid rgba(100,180,255,0.25);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28), 0 0 18px rgba(77,163,255,0.10);
}

.chatbot-bubble > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.chatbot-bubble strong {
  font-size: 0.93rem;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 2px 0;
}

.chatbot-bubble small {
  font-size: 0.79rem;
  color: var(--muted);
  margin: 0;
}

.chat-dot {
  width: 10px;
  height: 10px;
  background: #4da3ff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(77,163,255,0.7);
  flex: 0 0 auto;
}

.form-control {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-border);
    border-radius: 8px 8px 0 0;
    font-size: 1.0rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 30px;
    max-height: 30px;
    min-width: 0;
}