﻿:root {
  --primary: #3E6DFF;
  --primary-hover: #2F57D9;
  --primary-subtle: rgba(62, 109, 255, 0.12);
  --primary-gradient: linear-gradient(145deg, #0B132B 0%, #2450CC 46%, #5284FF 100%);
  --primary-gradient-hover: linear-gradient(145deg, #080E1F 0%, #1A3FA8 46%, #3E6DFF 100%);
  --primary-gradient-soft: linear-gradient(135deg, rgba(62, 109, 255, 0.16), rgba(82, 132, 255, 0.08));
  --surface-gradient: linear-gradient(135deg, rgba(62, 109, 255, 0.3), rgba(82, 132, 255, 0.12));
  --secondary-accent: #3E6DFF;
  --deep-purple: #0B132B;
  --space-dark: #0B132B;
  --neon-blue: #3E6DFF;
  --light-gray: #F3F3F3;
  --ink: #0B132B;
  --muted: #5a6475;
  --line: rgba(11, 19, 43, 0.1);
  --glass: rgba(255, 255, 255, 0.8);
  --shadow-soft: 0 24px 80px rgba(11, 19, 43, 0.1);
  --shadow-card: 0 18px 48px rgba(62, 109, 255, 0.12);
  --pointer-x: 0;
  --pointer-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  min-height: 100%;
  position: relative;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 8%, rgba(62, 109, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(82, 132, 255, 0.1), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 45%, #f3f5fb 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(24, 21, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 21, 51, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 64%);
}

::selection {
  color: #fff;
  background: #3E6DFF;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.cursor-aura {
  position: fixed;
  top: -260px;
  left: -260px;
  z-index: 20;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(62, 109, 255, 0.12), rgba(82, 132, 255, 0.06) 34%, transparent 68%);
  mix-blend-mode: multiply;
  transform: translate3d(50vw, 30vh, 0);
  transition: transform 0.14s ease-out;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  transition: top 0.3s ease;
}

.site-header.is-scrolled {
  top: 8px;
}

.melgex-nav {
  padding: 8px 10px 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74)) padding-box,
    var(--surface-gradient) border-box;
  box-shadow: 0 12px 40px rgba(24, 21, 51, 0.07);
  backdrop-filter: blur(22px);
  transition: box-shadow 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled .melgex-nav {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88)) padding-box,
    linear-gradient(135deg, rgba(62, 109, 255, 0.38), rgba(82, 132, 255, 0.18)) border-box;
  box-shadow: 0 18px 56px rgba(24, 21, 51, 0.12);
  backdrop-filter: blur(28px);
}

.melgex-nav > .container-xxl {
  gap: 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-purple);
  font-weight: 900;
  letter-spacing: -0.04em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-lockup:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.brand-lockup img {
  transition: filter 0.25s ease;
}

.brand-lockup:hover img {
  filter: drop-shadow(0 4px 12px rgba(62, 109, 255, 0.22));
}

.brand-mark,
.tiny-mascot {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(62, 109, 255, 0.24);
  border-radius: 15px;
  background: var(--primary-gradient);
  box-shadow: 0 14px 34px rgba(62, 109, 255, 0.2);
}

.brand-mark span,
.tiny-mascot span {
  width: 16px;
  height: 16px;
  border-radius: 8px 8px 11px 11px;
  background: #fff;
  box-shadow: inset 0 -5px 10px rgba(136, 92, 246, 0.22);
}

.nav-pills {
  gap: 3px;
  padding: 5px;
}

.nav-pills .nav-link {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  color: rgba(11, 19, 43, 0.62);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus-visible {
  color: var(--deep-purple);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(11, 19, 43, 0.07);
}

.nav-pills .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(62, 109, 255, 0.18), 0 6px 20px rgba(11, 19, 43, 0.07);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link.active {
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 8px 24px rgba(36, 80, 204, 0.28);
}

.nav-pills .nav-link.active:hover,
.nav-pills .nav-link.active:focus-visible {
  color: #fff;
  background: var(--primary-gradient-hover);
  box-shadow: 0 10px 28px rgba(36, 80, 204, 0.34);
  transform: translateY(-1px);
}

.nav-end {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switcher-form {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 999px;
  background: rgba(245, 247, 251, 0.9);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  color: rgba(24, 21, 51, 0.62);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.is-active {
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 10px 22px rgba(62, 109, 255, 0.2);
}

html[dir="rtl"] body {
  font-family: "El Messiri", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .nav-pills .nav-link {
  letter-spacing: 0;
}

html[dir="rtl"] .hero-grid,
html[dir="rtl"] .split-section,
html[dir="rtl"] .stack-section,
html[dir="rtl"] .proof-section,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .playground-grid {
  direction: rtl;
}

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Compact icon button for chat actions */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(24,21,51,0.06);
  color: var(--deep-purple);
  cursor: pointer;
}
.icon-button svg { display: block; }
.icon-button:hover { background: rgba(24,21,51,0.10); }

/* Preview image thumbnail */
.assistant-preview-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 8px 26px rgba(27,21,51,0.06);
}

/* Lightbox */
.preview-lightbox { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.6); z-index: 9999; }
.preview-lightbox-card { position: relative; max-width: 92vw; max-height: 92vh; padding: 12px; background: transparent; }
.preview-lightbox-card img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 30px 60px rgba(11,7,33,0.6); }
.preview-lightbox-close { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.9); border: 0; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.preview-lightbox.is-hidden { display: none; }

.nav-cta,
.primary-button {
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 16px 34px rgba(36, 80, 204, 0.26);
}

.secondary-button {
  color: var(--deep-purple);
  border: 1px solid rgba(24, 21, 51, 0.12);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(24, 21, 51, 0.08);
}

.primary-button:hover,
.nav-cta:hover {
  color: #fff;
  background: var(--primary-gradient-hover);
  box-shadow: 0 20px 48px rgba(36, 80, 204, 0.34);
}

.secondary-button:hover {
  border-color: rgba(62, 109, 255, 0.3);
}

.navbar-toggler {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(11, 19, 43, 0.08);
  border-radius: 999px;
  background: rgba(245, 247, 251, 0.92);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-toggler:hover {
  background: #fff;
  border-color: rgba(62, 109, 255, 0.22);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(62, 109, 255, 0.16);
}

.navbar-toggler[aria-expanded="true"] {
  background: var(--primary-gradient);
  border-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

.navbar-toggler-icon {
  width: 1.15em;
  height: 1.15em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2811, 19, 43, 0.78%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: 760px;
  padding: 98px 0 78px;
  overflow: hidden;
}

.hero-grid.row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-grid > [class*="col-"] {
  min-width: 0;
}

.hero-ambient,
.ambient-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-ambient {
  background:
    radial-gradient(circle at calc(50% + (var(--pointer-x) * 9%)) calc(18% + (var(--pointer-y) * 7%)), rgba(0, 191, 165, 0.14), transparent 28rem),
    radial-gradient(circle at calc(78% + (var(--pointer-x) * -6%)) calc(34% + (var(--pointer-y) * 5%)), rgba(62, 109, 255, 0.14), transparent 30rem);
}

.ambient-grid {
  opacity: 0.6;
  background:
    linear-gradient(110deg, transparent 0 45%, rgba(62, 109, 255, 0.08) 45.2% 45.6%, transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 78%);
}

.particle-field span {
  position: absolute;
  top: var(--particle-top);
  left: var(--particle-left);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(62, 109, 255, 0.34);
  box-shadow: 0 0 20px rgba(62, 109, 255, 0.2);
  animation: floatParticle var(--particle-duration) ease-in-out infinite alternate;
}

.eyebrow,
.section-kicker,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(62, 109, 255, 0.18);
  border-radius: 999px;
  color: #3E6DFF;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 32px rgba(62, 109, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00BFA5;
  box-shadow: 0 0 0 7px rgba(0, 191, 165, 0.14);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--deep-purple);
  font-size: clamp(2.55rem, 5.2vw, 4.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-copy h1::after {
  display: block;
  width: min(100%, 610px);
  height: 12px;
  margin-top: 18px;
  content: "";
  border-radius: 999px;
  background: var(--primary-gradient);
  filter: blur(10px);
  opacity: 0.24;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(24, 21, 51, 0.72);
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.7;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-metrics {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-metrics div,
.glass-card,
.story-panel,
.automation-map,
.project-card,
.idea-intake,
.lab-console,
.dashboard-preview,
.tech-stack,
.workflow-step,
.case-studies,
.impact-panel,
.contact-card,
.widget-panel {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, rgba(136, 92, 246, 0.08), rgba(56, 130, 246, 0.05));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.hero-metrics div {
  min-height: 112px;
  padding: 20px;
  border-radius: 28px;
}

.hero-metrics strong {
  display: block;
  color: var(--deep-purple);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

.dashboard-shell {
  position: absolute;
  inset: 58px 14px 72px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 251, 0.78)),
    radial-gradient(circle at 80% 20%, rgba(136, 92, 246, 0.16), transparent 34%);
  box-shadow: 0 30px 90px rgba(24, 21, 51, 0.16);
}

.dashboard-shell::before {
  position: absolute;
  inset: -1px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(136, 92, 246, 0.32), rgba(236, 72, 153, 0.18), rgba(56, 130, 246, 0.2));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.dashboard-topbar,
.console-header,
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-topbar {
  height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(24, 21, 51, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-topbar span,
.console-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3E6DFF;
}

.dashboard-topbar span:nth-child(2),
.console-header span:nth-child(2) {
  background: #00BFA5;
}

.dashboard-topbar span:nth-child(3),
.console-header span:nth-child(3) {
  background: #0B132B;
}

.dashboard-topbar strong {
  margin-left: auto;
  color: rgba(24, 21, 51, 0.62);
  font-size: 0.82rem;
}

.hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
}

.signal-card,
.signal-wave,
.chart-card {
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 36px rgba(24, 21, 51, 0.07);
}

.signal-card {
  min-height: 138px;
  padding: 22px;
}

.signal-card small {
  color: var(--muted);
  font-weight: 800;
}

.signal-card strong {
  display: block;
  margin: 12px 0;
  color: var(--deep-purple);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.primary-signal {
  grid-column: span 2;
  background:
    radial-gradient(circle at 72% 30%, rgba(236, 72, 153, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.82);
}

.primary-signal span {
  display: block;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(136, 92, 246, 0.14), rgba(236, 72, 153, 0.24)),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, 0.55) 30px 32px);
}

.signal-wave {
  grid-column: span 2;
  display: flex;
  height: 116px;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.signal-wave i {
  flex: 1;
  height: calc(28% + (var(--n, 1) * 8%));
  border-radius: 999px 999px 16px 16px;
  background: var(--primary-gradient);
  opacity: 0.76;
  animation: wavePulse 2.8s ease-in-out infinite;
}

.signal-wave i:nth-child(1) { height: 42%; }
.signal-wave i:nth-child(2) { height: 68%; animation-delay: 0.1s; }
.signal-wave i:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.signal-wave i:nth-child(4) { height: 82%; animation-delay: 0.3s; }
.signal-wave i:nth-child(5) { height: 62%; animation-delay: 0.4s; }
.signal-wave i:nth-child(6) { height: 74%; animation-delay: 0.5s; }
.neural-background {
    position: fixed;
    z-index: -1;
    opacity: 0.3;
}
.neural-orbit {
    position: absolute;
    top: 49%;
    left: 52%;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(136, 92, 246, 0.2);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    animation: orbit 18s linear infinite;
}

.neural-orbit::before,
.neural-orbit::after {
  position: absolute;
  content: "";
  border-radius: inherit;
  border: 1px solid rgba(56, 130, 246, 0.14);
  inset: 54px;
  transform: rotate(28deg);
}

.neural-orbit::after {
  inset: 106px;
  background: radial-gradient(circle, rgba(136, 92, 246, 0.12), transparent 64%);
}

.mascot-stage {
  position: absolute;
  top: 50%;
  left: 52%;
  z-index: 4;
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

.mascot-glow {
  position: absolute;
  inset: -38px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(136, 92, 246, 0.22), rgba(236, 72, 153, 0.12) 42%, transparent 70%);
  filter: blur(12px);
  animation: breathe 4.8s ease-in-out infinite;
}

.melgex-mascot {
  position: relative;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 44px 44px 58px 58px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.96), transparent 30%),
    var(--primary-gradient);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.3),
    0 28px 70px rgba(62, 109, 255, 0.28);
  animation: mascotFloat 5s ease-in-out infinite;
}

.mascot-core {
  position: absolute;
  inset: 26px 24px 30px;
  border-radius: 34px 34px 44px 44px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 -12px 28px rgba(136, 92, 246, 0.18);
}

.mascot-eye {
  position: absolute;
  top: 66px;
  z-index: 2;
  width: 15px;
  height: 20px;
  border-radius: 999px;
  background: var(--deep-purple);
  animation: blink 5.8s infinite;
}

.mascot-eye.left {
  left: 56px;
}

.mascot-eye.right {
  right: 56px;
}

.mascot-smile {
  position: absolute;
  left: 61px;
  bottom: 53px;
  z-index: 2;
  width: 32px;
  height: 16px;
  border-bottom: 3px solid rgba(24, 21, 51, 0.7);
  border-radius: 0 0 999px 999px;
}

.mascot-halo {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 92px;
  height: 22px;
  border: 2px solid rgba(56, 130, 246, 0.34);
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.28);
}

.floating-panel {
  position: absolute;
  z-index: 5;
  min-width: 210px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(24, 21, 51, 0.12);
  backdrop-filter: blur(18px);
}

.floating-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.floating-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--deep-purple);
  font-size: 0.96rem;
}

.floating-panel i {
  display: block;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--primary-gradient);
}

.panel-one {
  top: 108px;
  left: -2px;
  animation: floatPanel 5.6s ease-in-out infinite;
}

.panel-two {
  right: -6px;
  bottom: 124px;
  animation: floatPanel 6s ease-in-out infinite 0.3s;
}

.panel-three {
  left: 74px;
  bottom: 40px;
  animation: floatPanel 6.4s ease-in-out infinite 0.6s;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.story-panel h2,
.tech-stack h2,
.case-studies h2,
.contact-card h2 {
  color: var(--deep-purple);
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.story-panel p,
.tech-stack p,
.case-studies p,
.impact-panel p,
.contact-card p,
.glass-card p,
.project-card p,
.workflow-step p,
.idea-intake p {
  color: rgba(24, 21, 51, 0.68);
  line-height: 1.7;
}

.solutions-section,
.automation-section,
.portfolio-section,
.lab-section,
.stack-section,
.workflow-section,
.proof-section,
.contact-section {
  padding: 68px 0;
}

.solution-grid,
.automation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  padding: 28px;
  border-radius: 34px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.glass-card::before,
.project-card::before,
.workflow-step::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 40% 0%, rgba(136, 92, 246, 0.12), transparent 34%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.glass-card:hover,
.project-card:hover,
.workflow-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(24, 21, 51, 0.14);
}

.glass-card:hover::before,
.project-card:hover::before,
.workflow-step:hover::before {
  opacity: 1;
}

.card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 19px;
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 16px 36px rgba(62, 109, 255, 0.24);
  font-weight: 900;
}

.glass-card h3,
.project-card h3,
.workflow-step h3 {
  color: var(--deep-purple);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.split-section,
.proof-section,
.stack-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: center;
  padding: 76px 0;
}

.story-panel,
.case-studies,
.tech-stack,
.impact-panel {
  padding: clamp(30px, 5vw, 58px);
  border-radius: 42px;
}

.signal-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.signal-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 18px;
  color: rgba(24, 21, 51, 0.72);
  background: rgba(255, 255, 255, 0.66);
  font-weight: 700;
}

.signal-list li::before {
  position: absolute;
  top: 19px;
  left: 18px;
  width: 13px;
  height: 13px;
  content: "";
  border-radius: 999px;
  background: var(--primary-gradient);
  box-shadow: 0 0 0 7px rgba(62, 109, 255, 0.08);
}

.automation-map {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 42px;
  transition: transform 0.18s ease-out;
}

.automation-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.automation-map path {
  fill: none;
  stroke: rgba(136, 92, 246, 0.28);
  stroke-width: 2;
  stroke-dasharray: 10 12;
  animation: dashMove 12s linear infinite;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 104px;
  min-height: 58px;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(24, 21, 51, 0.1);
  color: var(--deep-purple);
  font-weight: 900;
}

.node-core {
  top: 50%;
  left: 50%;
  color: #fff;
  background: var(--primary-gradient);
  transform: translate(-50%, -50%);
}

.node-a { top: 58px; left: 40px; }
.node-b { top: 74px; right: 42px; }
.node-c { bottom: 66px; left: 32px; }
.node-d { right: 34px; bottom: 58px; }

.automation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 22px;
  border-radius: 38px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-mockup {
  position: relative;
  height: 210px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 72% 18%, rgba(236, 72, 153, 0.22), transparent 34%),
    linear-gradient(135deg, #fff, #f5f7fb);
}

.project-mockup::before {
  position: absolute;
  inset: 22px;
  content: "";
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(136, 92, 246, 0.2), transparent 44%),
    repeating-linear-gradient(180deg, rgba(24, 21, 51, 0.08) 0 1px, transparent 1px 26px);
}

.project-mockup i {
  position: absolute;
  right: 24px;
  width: 96px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 21, 51, 0.08);
}

.project-mockup i:nth-child(1) { top: 42px; }
.project-mockup i:nth-child(2) { top: 76px; width: 138px; }
.project-mockup i:nth-child(3) { top: 110px; width: 112px; }

.project-card > span {
  display: block;
  margin-bottom: 14px;
  color: #3E6DFF;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playground-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.reception-grid {
  grid-template-columns: 0.86fr 1.14fr;
}

.idea-intake {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 38px;
}

.idea-intake h3 {
  margin: 0;
  color: var(--deep-purple);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.idea-intake label {
  color: rgba(24, 21, 51, 0.7);
  font-weight: 900;
}

.idea-intake textarea {
  width: 100%;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(24, 21, 51, 0.1);
  border-radius: 24px;
  outline: 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep-purple);
  line-height: 1.65;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.idea-intake textarea:focus {
  border-color: rgba(62, 109, 255, 0.52);
  box-shadow: 0 0 0 5px rgba(62, 109, 255, 0.1);
}

.idea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-preview-console .console-body {
  gap: 18px;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preview-cards article {
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(136, 92, 246, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.preview-cards strong {
  display: block;
  margin-bottom: 10px;
  color: var(--deep-purple);
  font-weight: 900;
}

.preview-cards span {
  color: rgba(24, 21, 51, 0.68);
  line-height: 1.55;
}

.tool-rail {
  display: grid;
  gap: 12px;
}

.tool-chip {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 20px;
  color: rgba(24, 21, 51, 0.68);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(24, 21, 51, 0.06);
  font-weight: 800;
  text-align: left;
  transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.tool-chip:hover,
.tool-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--primary-gradient);
  transform: translateX(8px);
}

.lab-console {
  overflow: hidden;
  border-radius: 38px;
}

.console-header {
  min-height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(24, 21, 51, 0.08);
}

.console-header strong {
  margin-left: auto;
  color: rgba(24, 21, 51, 0.72);
}

.console-body {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.console-body p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(24, 21, 51, 0.72);
}

.console-body b {
  color: var(--deep-purple);
}

.dashboard-preview {
  padding: 24px;
  border-radius: 42px;
  transition: transform 0.18s ease-out;
}

.dashboard-header {
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-header span {
  color: rgba(24, 21, 51, 0.72);
  font-weight: 900;
}

.dashboard-header strong {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0c8f61;
  background: rgba(32, 201, 151, 0.12);
  font-size: 0.78rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chart-card {
  min-height: 136px;
  padding: 20px;
}

.chart-card.tall {
  grid-row: span 2;
  min-height: 286px;
}

.chart-card.wide {
  grid-column: span 2;
}

.chart-card strong {
  display: block;
  color: var(--deep-purple);
  font-size: 2rem;
  font-weight: 900;
}

.chart-card small {
  color: var(--muted);
  font-weight: 800;
}

.chart-card span {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 90px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(136, 92, 246, 0.18), rgba(236, 72, 153, 0.22)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.58) 22px 24px);
}

.stack-orbit {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  margin-top: 34px;
  border: 1px solid rgba(24, 21, 51, 0.07);
  border-radius: 36px;
  background: radial-gradient(circle, rgba(136, 92, 246, 0.1), transparent 60%);
}

.stack-orbit::before {
  position: absolute;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px dashed rgba(136, 92, 246, 0.28);
  border-radius: 999px;
  animation: spin 18s linear infinite;
}

.stack-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 18px 44px rgba(62, 109, 255, 0.22);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-align: center;
}

.stack-orbit span {
  position: absolute;
  display: grid;
  min-width: 78px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 21, 51, 0.08);
  color: var(--deep-purple);
  font-weight: 900;
}

.stack-orbit span:nth-of-type(1) { transform: translate(0, -112px); color: #fff; background: var(--primary-gradient); }
.stack-orbit span:nth-of-type(2) { transform: translate(132px, -54px); }
.stack-orbit span:nth-of-type(3) { transform: translate(124px, 80px); }
.stack-orbit span:nth-of-type(4) { transform: translate(0, 126px); }
.stack-orbit span:nth-of-type(5) { transform: translate(-128px, 76px); }
.stack-orbit span:nth-of-type(6) { transform: translate(-132px, -58px); }

.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.workflow-step {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 28px;
  border-radius: 32px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.workflow-step span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 15px;
  color: #fff;
  background: var(--space-dark);
  font-weight: 900;
}

.case-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(24, 21, 51, 0.08);
}

.case-row:last-child {
  border-bottom: 0;
}

.case-row strong {
  color: var(--deep-purple);
}

.case-row span {
  color: rgba(24, 21, 51, 0.68);
}

.impact-panel strong {
  display: block;
  margin-bottom: 18px;
  color: var(--deep-purple);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.impact-bars {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.impact-bars span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3E6DFF var(--bar), rgba(11, 19, 43, 0.08) var(--bar));
}

.contact-section {
  padding-bottom: 130px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 46px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--deep-purple);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 21, 51, 0.1);
  border-radius: 18px;
  outline: 0;
  background: rgba(255, 255, 255, 0.76);
  color: var(--deep-purple);
  padding: 16px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(62, 109, 255, 0.52);
  box-shadow: 0 0 0 5px rgba(62, 109, 255, 0.1);
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 34px 0 50px;
  border-top: 1px solid rgba(24, 21, 51, 0.08);
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: rgba(24, 21, 51, 0.68);
  font-weight: 800;
}

.footer-links a:hover {
  color: #3E6DFF;
}

.legal-page {
  padding: 74px 0 92px;
}

.legal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-hero {
  padding: clamp(2.25rem, 4vw, 4rem);
  border: 1px solid rgba(62, 109, 255, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(62, 109, 255, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 246, 255, 0.82));
  box-shadow: 0 24px 60px rgba(11, 19, 43, 0.08);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(62, 109, 255, 0.18);
  border-radius: 999px;
  color: #3E6DFF;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: 0 0 0 6px rgba(62, 109, 255, 0.12);
}

.legal-hero h1 {
  margin: 22px 0 16px;
  color: var(--deep-purple);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(24, 21, 51, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.legal-card {
  padding: 28px 28px 22px;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 48px rgba(24, 21, 51, 0.06);
}

.legal-card h2 {
  margin-bottom: 18px;
  color: var(--deep-purple);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
}

.legal-card p,
.legal-card li {
  color: rgba(24, 21, 51, 0.74);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-highlight {
  margin-top: 32px;
  padding: 26px 28px;
  border: 1px solid rgba(56, 130, 246, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(56, 130, 246, 0.05), rgba(136, 92, 246, 0.08));
}

.legal-highlight strong {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--deep-purple);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-highlight p {
  margin: 0;
  color: rgba(24, 21, 51, 0.76);
  line-height: 1.8;
}

.contact-page {
  padding: 74px 0 92px;
}

.contact-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-hero {
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid rgba(62, 109, 255, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 255, 0.88));
  box-shadow: 0 24px 60px rgba(11, 19, 43, 0.08);
}

.contact-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.contact-details,
.contact-form-panel {
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 52px rgba(24, 21, 51, 0.06);
}

.contact-details {
  padding: 28px 22px;
}

.contact-detail-item {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(24, 21, 51, 0.06);
}

.contact-detail-item:last-child {
  border-bottom: 0;
}

.contact-detail-item small {
  color: #3E6DFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-detail-item strong {
  color: var(--deep-purple);
  font-size: 1.05rem;
}

.contact-detail-item a,
.contact-detail-item span {
  color: rgba(24, 21, 51, 0.76);
  text-decoration: none;
  line-height: 1.7;
}

.contact-form-panel {
  padding: clamp(22px, 3vw, 34px);
}

.contact-form-panel .contact-form {
  gap: 18px;
}

.content-page {
  padding: 74px 0 92px;
}

.content-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.content-hero {
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid rgba(62, 109, 255, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 246, 255, 0.85));
  box-shadow: 0 24px 60px rgba(11, 19, 43, 0.08);
}

.content-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(62, 109, 255, 0.18);
  border-radius: 999px;
  color: #3E6DFF;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: 0 0 0 6px rgba(62, 109, 255, 0.12);
}

.content-hero h1 {
  margin: 22px 0 16px;
  color: var(--deep-purple);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.content-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(24, 21, 51, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.content-card {
  padding: 28px 24px;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 52px rgba(24, 21, 51, 0.06);
}

.content-card .card-icon {
  margin-bottom: 18px;
}

.content-card h2,
.content-card h3 {
  margin-bottom: 12px;
  color: var(--deep-purple);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.content-card p,
.content-card li {
  color: rgba(24, 21, 51, 0.72);
  line-height: 1.75;
}

.content-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.content-card li + li {
  margin-top: 8px;
}

.content-faq {
  padding: 0 0 92px;
}

.content-faq-title {
  margin: 0 0 20px;
  color: var(--deep-purple);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.content-faq-list {
  display: grid;
  gap: 14px;
}

.content-faq-item {
  padding: 6px 24px;
  border: 1px solid rgba(24, 21, 51, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.content-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.content-faq-item summary::-webkit-details-marker {
  display: none;
}

.content-faq-item summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #3E6DFF;
  background: rgba(62, 109, 255, 0.1);
  font-size: 1.2rem;
  font-weight: 700;
}

.content-faq-item[open] summary::after {
  content: "\2212";
}

.content-faq-item summary h3 {
  margin: 0;
  color: var(--deep-purple);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content-faq-item p {
  margin: 0 0 18px;
  color: rgba(24, 21, 51, 0.72);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .content-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.ai-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
}

.widget-orb {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 52px rgba(24, 21, 51, 0.18);
  backdrop-filter: blur(18px);
}

.widget-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: 290px;
  padding: 22px;
  border-radius: 26px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ai-widget.is-open .widget-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.widget-panel strong {
  color: var(--deep-purple);
  font-weight: 900;
}

.widget-panel p {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.widget-panel button {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-gradient);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.magnetic {
  will-change: transform;
}

@keyframes floatParticle {
  from {
    opacity: 0.2;
    transform: translate3d(0, 0, 0) scale(0.8);
  }
  to {
    opacity: 0.72;
    transform: translate3d(18px, -32px, 0) scale(1.2);
  }
}

@keyframes orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes wavePulse {
  0%,
  100% {
    filter: saturate(1);
    transform: scaleY(1);
  }
  50% {
    filter: saturate(1.4);
    transform: scaleY(0.78);
  }
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -120;
  }
}

@media (max-width: 1100px) {
  .hero-grid.row,
  .split-section,
  .stack-section,
  .proof-section,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid.row {
    width: min(100% - 32px, 1180px);
  }

  .hero-section {
    min-height: auto;
    padding: 86px 0 62px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .solution-grid,
  .workflow-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .site-header {
    top: 10px;
  }

  .site-header.is-scrolled {
    top: 6px;
  }

  .melgex-nav {
    padding: 10px 12px;
    border-radius: 24px;
  }

  .navbar-collapse {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(11, 19, 43, 0.06);
    border-radius: 20px;
    background: rgba(245, 247, 251, 0.72);
  }

  .nav-pills {
    align-items: stretch;
    width: 100%;
    padding: 4px;
    border-radius: 16px;
    gap: 2px;
  }

  .nav-pills .nav-link {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }

  .nav-end {
    width: 100%;
    flex-direction: column;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(11, 19, 43, 0.07);
  }

  .language-switcher-form {
    width: 100%;
    justify-content: center;
  }

  .nav-cta {
    width: 100%;
    margin-top: 0;
  }

  .hero-metrics,
  .portfolio-track,
  .automation-grid,
  .playground-grid,
  .reception-grid,
  .preview-cards {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .floating-panel {
    min-width: 180px;
  }

  .panel-one {
    left: 0;
  }

  .panel-two {
    right: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
    .section-shell,
    .contact-shell,
    .content-shell,
    .legal-shell,
    .site-footer {
        width: min(100% - 28px, 1180px);
        padding-bottom: 68px;
        padding-top:0;
    }

  .hero-section {
    min-height: auto;
    padding: 60px 0 44px;
  }

  .hero-grid.row {
    width: min(100% - 16px, 1180px);
    gap: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 8.5vw, 2.75rem);
  }

  .section-heading h2,
  .story-panel h2,
  .tech-stack h2,
  .case-studies h2,
  .contact-card h2 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
  }

  .hero-actions a,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .solution-grid,
  .workflow-timeline {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .dashboard-shell {
    inset: 24px 0 28px;
    border-radius: 34px;
  }

  .dashboard-topbar {
    height: 46px;
    padding: 0 14px;
  }

  .hero-dashboard-grid {
    gap: 10px;
    padding: 12px;
  }

  .signal-card {
    min-height: 96px;
    padding: 14px;
  }

  .signal-card strong {
    margin: 8px 0;
    font-size: 1.8rem;
  }

  .primary-signal span {
    height: 40px;
    border-radius: 14px;
  }

  .signal-wave {
    height: 78px;
    gap: 8px;
    padding: 12px;
  }

  .mascot-stage {
    width: 170px;
    height: 170px;
  }

  .melgex-mascot {
    width: 124px;
    height: 124px;
    border-radius: 34px 34px 46px 46px;
  }

  .mascot-eye {
    top: 55px;
  }

  .mascot-eye.left {
    left: 45px;
  }

  .mascot-eye.right {
    right: 45px;
  }

  .mascot-smile {
    left: 48px;
    bottom: 43px;
  }

  .floating-panel {
    display: none;
  }

  .case-row {
    grid-template-columns: 1fr;
  }

  .ai-widget {
    right: 14px;
    bottom: 14px;
  }

  .widget-panel {
    width: min(290px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* AI Website Assistant styles live in wwwroot/css/assistant.css */
