/* Cluster Software Co. — Premium AI agency landing */

:root {
  --blue-50: #eef6ff;
  --blue-100: #d9ebff;
  --blue-200: #b8daff;
  --blue-400: #3b9eff;
  --blue-500: #0080ff;
  --blue-600: #0066ff;
  --blue-700: #0052cc;
  --blue-900: #0a1a3a;
  --purple-soft: #7b6cff;
  --ink: #0b1220;
  --ink-soft: #3d4a63;
  --ink-muted: #6b7a94;
  --surface: #f5f8ff;
  --surface-2: #ffffff;
  --line: rgba(10, 26, 58, 0.1);
  --line-strong: rgba(0, 102, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow: 0 24px 60px rgba(0, 82, 204, 0.12);
  --shadow-deep: 0 30px 70px rgba(10, 26, 58, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Page background layers —— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(0, 128, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 5%, rgba(123, 108, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #eef5ff 0%, var(--surface) 40%, #fbfcff 100%);
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.bg-blob-a {
  width: 420px;
  height: 420px;
  top: 8%;
  right: 8%;
  background: rgba(0, 128, 255, 0.22);
}

.bg-blob-b {
  width: 360px;
  height: 360px;
  top: 48%;
  left: -4%;
  background: rgba(123, 108, 255, 0.14);
  animation-delay: -6s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 26, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 26, 58, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

@keyframes blob-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -18px, 0) scale(1.06); }
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0.95rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-scrolled {
  background: rgba(247, 250, 255, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(10, 26, 58, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover { color: var(--blue-600); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), #4b7cff 55%, var(--purple-soft));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 102, 255, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), #4b7cff 60%, var(--purple-soft));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 102, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 102, 255, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--blue-600), #4b7cff);
  color: #fff;
  border: 0;
  margin-top: 0.5rem;
}

/* —— Glass primitives —— */
.glass-panel,
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
}

.glass-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
}

.glass-card strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.glass-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.glass-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.glass-card-icon.ai {
  background: linear-gradient(135deg, var(--blue-600), var(--purple-soft));
}

.glass-card-icon.auto {
  background: linear-gradient(135deg, #00a3ff, var(--blue-600));
  font-size: 1rem;
}

.glass-card-metric {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 118px;
}

.glass-card-metric strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 7.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: min(560px, 70vw);
  height: min(560px, 70vw);
  right: 2%;
  top: 18%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.22), rgba(123, 108, 255, 0.08) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(8px);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 102, 255, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.08);
}

.hero-title {
  margin: 0;
  font-family: sans-serif;
  font-weight: 800;
  font-size: 66px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--blue-900);
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: linear-gradient(105deg, var(--blue-600) 10%, #5a7dff 45%, var(--purple-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-trust .check {
  color: var(--blue-600);
  font-weight: 700;
  margin-right: 0.3rem;
}

/* Hero 3D stage */
.hero-stage {
  position: relative;
  min-height: 460px;
  perspective: 1200px;
}

.hero-stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-12deg);
  transition: transform 0.35s ease-out;
}

.float-layer {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}

.float-dashboard {
  inset: 8% 8% auto 4%;
  animation: float-y 7s ease-in-out infinite;
}

.mock-dashboard {
  border-radius: 22px;
  overflow: hidden;
  padding: 0.85rem;
  box-shadow: var(--shadow-deep);
}

.mock-dash-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.mock-dash-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7e3f5;
}

.mock-dash-top span:nth-child(1) { background: #ff7b86; }
.mock-dash-top span:nth-child(2) { background: #ffd166; }
.mock-dash-top span:nth-child(3) { background: #4cd4a0; }

.mock-dash-top strong {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.mock-dash-body {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
}

.mock-chart {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.9), rgba(255, 255, 255, 0.5));
  border: 1px solid var(--line);
  padding: 0.9rem;
  min-height: 160px;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 130px;
}

.mock-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #7aa8ff, var(--blue-600));
  opacity: 0.9;
}

.mock-side {
  display: grid;
  gap: 0.55rem;
}

.mock-stat {
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.mock-stat em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-700);
}

.mock-stat span {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.mock-mini-line {
  height: 54px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.35), transparent),
    rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.float-phone {
  right: 2%;
  bottom: 6%;
  width: 148px;
  animation: float-y-rev 6.5s ease-in-out infinite;
}

.mock-phone {
  border-radius: 28px;
  padding: 0.55rem;
  box-shadow: var(--shadow-deep);
}

.mock-phone-notch {
  width: 42%;
  height: 8px;
  margin: 0.25rem auto 0.55rem;
  border-radius: 999px;
  background: rgba(10, 26, 58, 0.12);
}

.mock-phone-screen {
  border-radius: 18px;
  padding: 0.85rem;
  min-height: 190px;
  background: linear-gradient(165deg, #0d1b36, #173568 55%, #1b4f9c);
  color: #fff;
}

.mock-phone-label {
  margin: 0;
  font-size: 0.68rem;
  opacity: 0.7;
}

.mock-phone-screen strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
}

.mock-phone-chat {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.mock-phone-chat span {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
}

.mock-phone-chat .is-bot {
  background: rgba(0, 128, 255, 0.28);
  margin-left: 0.6rem;
}

.float-ai {
  top: 4%;
  right: 8%;
  animation: float-y 5.5s ease-in-out infinite;
}

.float-auto {
  left: 0;
  bottom: 12%;
  animation: float-y-rev 6s ease-in-out infinite;
}

.float-metric {
  right: 18%;
  bottom: 34%;
  animation: float-y 7.5s ease-in-out infinite;
}

.float-logo {
  left: 42%;
  top: 42%;
  width: 72px;
  animation: float-spin 10s ease-in-out infinite;
  filter: drop-shadow(0 16px 28px rgba(0, 102, 255, 0.25));
}

.float-logo img {
  width: 72px;
  height: 72px;
  border-radius: 0;
  background: transparent;
}

@keyframes float-y {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes float-y-rev {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, 10px, 0) rotate(2deg); }
}

@keyframes float-spin {
  0%, 100% { transform: translate3d(0, 0, 40px) rotate(-6deg); }
  50% { transform: translate3d(0, -10px, 40px) rotate(6deg); }
}

/* —— Tech strip —— */
.tech-strip {
  padding: 1.25rem 0 2.5rem;
}

.tech-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.tech-strip-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-logos li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tech-logos li:hover {
  color: var(--blue-700);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

/* —— Sections shared —— */
.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--blue-900);
}

.section-copy {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.services,
.about,
.process,
.ai-network,
.work,
.final-cta,
.contact {
  padding: 4.5rem 0;
}

/* —— Services —— */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(10, 26, 58, 0.05);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  border-color: var(--line-strong);
  box-shadow: 0 28px 50px rgba(0, 82, 204, 0.14);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 128, 255, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.9);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: linear-gradient(145deg, rgba(0, 128, 255, 0.12), rgba(123, 108, 255, 0.08));
  border: 1px solid rgba(0, 102, 255, 0.12);
  transition: transform 0.25s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-3px);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-body h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.service-body p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.tech-pills span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 102, 255, 0.06);
  border: 1px solid rgba(0, 102, 255, 0.1);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 600;
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.about-points {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.about-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-soft));
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.about-visual {
  position: relative;
  min-height: 360px;
  perspective: 1000px;
}

.about-stack {
  position: relative;
  min-height: 360px;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
}

.about-card-main {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.about-card-main img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  background: #eef4ff;
}

.about-card-float,
.about-card-float-2,
.about-card-float-3 {
  position: absolute;
  z-index: 2;
}

.about-card-float {
  top: 8%;
  right: -4%;
  animation: float-y 6s ease-in-out infinite;
}

.about-card-float-2 {
  left: -6%;
  bottom: 18%;
  animation: float-y-rev 7s ease-in-out infinite;
}

.about-card-float-3 {
  right: 10%;
  bottom: 4%;
  animation: float-y 8s ease-in-out infinite;
}

/* —— Process —— */
.process {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.35), transparent);
}

.process-timeline li {
  position: relative;
  padding: 0.5rem 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-soft));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 102, 255, 0.25);
}

.process-timeline h3 {
  margin: 0;
  font-size: 1.05rem;
}

.process-timeline p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* —— AI network —— */
.ai-orbit {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 128, 255, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.ai-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.ai-lines path {
  fill: none;
  stroke: url(#none);
  stroke: rgba(0, 102, 255, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}

.ai-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(220px, 56vw);
  text-align: center;
  padding: 1.4rem 1.1rem;
  border-radius: 24px;
  z-index: 2;
}

.ai-core img {
  margin: 0 auto 0.65rem;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.ai-core strong {
  display: block;
  font-family: var(--font-display);
}

.ai-core span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.ai-node {
  position: absolute;
  z-index: 2;
  min-width: 110px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  animation: float-y 6s ease-in-out infinite;
}

.ai-n1 { top: 10%; left: 10%; }
.ai-n2 { top: 6%; left: calc(50% - 55px); animation-delay: -1s; }
.ai-n3 { top: 10%; right: 10%; animation-delay: -2s; }
.ai-n4 { bottom: 12%; left: 8%; animation-delay: -1.5s; }
.ai-n5 { bottom: 8%; left: calc(50% - 55px); animation-delay: -2.5s; }
.ai-n6 { bottom: 12%; right: 8%; animation-delay: -0.8s; }

/* —— Work —— */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.work-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 34px rgba(10, 26, 58, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-8px) rotateX(1.5deg);
  box-shadow: var(--shadow-deep);
}

.work-media {
  overflow: hidden;
  aspect-ratio: 2056 / 765;
  background: #eef4ff;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

.work-card:hover .work-media img {
  transform: scale(1.02);
}

.work-meta {
  padding: 1.25rem 1.3rem 1.4rem;
}

.work-cat {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.work-meta h3 {
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
}

.work-meta > p:not(.work-cat) {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.work-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.work-link:hover { text-decoration: none; gap: 0.35rem; }

/* —— Final CTA —— */
.final-cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #0b1a38 0%, #12306a 45%, #1a4aa0 100%);
  box-shadow: var(--shadow-deep);
}

.final-cta-glow {
  position: absolute;
  inset: -20% 20% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 160, 255, 0.35), transparent 65%);
  pointer-events: none;
}

.final-cta-panel h2 {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.final-cta-panel p {
  position: relative;
  margin: 1rem auto 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta-panel .hero-actions {
  position: relative;
  justify-content: center;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details address {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

.contact-form-wrap {
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}

.contact-form-wrap h3 {
  margin: 0;
  font-size: 1.2rem;
}

.contact-form-wrap > p {
  margin: 0.4rem 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(0, 102, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
  outline: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.consent input {
  margin-top: 0.2rem;
}

.sms-note {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.is-success { color: #0f9f6e; }
.form-status.is-error { color: #d6455d; }

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--blue-600); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-content.reveal,
.hero-stage.reveal {
  transition-delay: 0ms;
}

/* Legal pages reuse */
.legal {
  padding: 7.5rem 0 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.legal-content {
  max-width: 46rem;
  color: var(--ink-soft);
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .hero-layout,
  .about-grid,
  .contact-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .hero-stage-inner {
    min-height: 380px;
  }

  .hero-stage-inner {
    transform: rotateX(4deg) rotateY(-6deg);
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .process-timeline::before {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 4.4rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
  }

  .nav-cta {
    justify-content: center;
  }

  .hero {
    padding-top: 6.25rem;
  }

  .hero-stage-inner {
    transform: none;
  }

  .float-phone { width: 120px; }
  .float-logo { display: none; }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ai-orbit {
    min-height: 480px;
  }

  .ai-node {
    min-width: 96px;
    font-size: 0.78rem;
    padding: 0.65rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-trust {
    flex-direction: column;
    gap: 0.55rem;
  }

  .float-metric,
  .float-auto {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bg-blob,
  .hero-glow,
  .float-dashboard,
  .float-phone,
  .float-ai,
  .float-auto,
  .float-metric,
  .float-logo,
  .about-card-float,
  .about-card-float-2,
  .about-card-float-3,
  .ai-node {
    animation: none !important;
  }

  .service-card:hover,
  .work-card:hover {
    transform: none;
  }
}
