:root {
  --bg: #dfe5eb;
  --bg-soft: rgba(255, 255, 255, 0.74);
  --bg-softer: rgba(255, 255, 255, 0.54);
  --bg-card: rgba(255, 255, 255, 0.66);
  --bg-card-dark: rgba(255, 255, 255, 0.07);
  --text: #0d131d;
  --text-soft: #556273;
  --line: rgba(10, 18, 28, 0.09);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #10192b;
  --accent-2: #1c2d4a;
  --accent-soft: rgba(16, 25, 43, 0.08);
  --white: #fff;
  --radius: 30px;
  --radius-sm: 22px;
  --shadow: 0 28px 80px rgba(10, 16, 29, 0.09);
  --shadow-strong: 0 32px 110px rgba(8, 12, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(16, 25, 43, 0.08), transparent 26%),
    radial-gradient(circle at 15% 12%, rgba(0, 0, 0, 0.055), transparent 24%),
    linear-gradient(180deg, #dfe5eb 0%, #e7ecf1 44%, #f5f7f9 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(90px);
  z-index: 0;
}

body::before {
  width: 360px;
  height: 360px;
  top: 24px;
  right: -120px;
  background: rgba(16, 25, 43, 0.11);
}

body::after {
  width: 300px;
  height: 300px;
  left: -110px;
  top: 170px;
  background: rgba(0, 0, 0, 0.08);
}

#space-canvas,
.bg-noise,
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#space-canvas {
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.bg-noise {
  z-index: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0,0,0,0.7) 0.6px, transparent 0.8px),
    radial-gradient(circle at 75% 40%, rgba(0,0,0,0.58) 0.6px, transparent 0.9px),
    radial-gradient(circle at 50% 80%, rgba(0,0,0,0.45) 0.5px, transparent 0.8px);
  background-size: 24px 24px, 32px 32px, 42px 42px;
  mix-blend-mode: multiply;
}

.cursor-glow {
  z-index: 1;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.28), transparent 70%);
}

.site-shell {
  position: relative;
  z-index: 2;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 8px;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #172236 0%, #0b111b 100%);
  box-shadow: 0 22px 50px rgba(10, 16, 29, 0.2);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 1.02rem;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--text-soft);
}

.nav {
  display: inline-flex;
  gap: 30px;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  color: white;
  background: linear-gradient(180deg, #151f31 0%, #0b111b 100%);
  box-shadow: 0 25px 60px rgba(8, 12, 22, 0.18);
}

.button-dark:hover {
  box-shadow: 0 32px 80px rgba(8, 12, 22, 0.24);
}

.button-light {
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(10, 18, 28, 0.08);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 42px;
  align-items: center;
  padding: 48px 0 88px;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.eyebrow-pill,
.eyebrow-soft,
.mini-label,
.case-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.eyebrow-pill {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(10,18,28,0.07);
  box-shadow: 0 14px 35px rgba(10, 16, 29, 0.05);
}

.eyebrow-soft {
  color: var(--accent-2);
  background: rgba(16, 25, 43, 0.065);
}

.hero h1,
.section-head h2,
.contact-copy h2 {
  margin: 20px 0 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  color: rgba(13, 19, 29, 0.75);
}

.hero-text,
.section-head p,
.contact-copy p {
  margin: 24px 0 0;
  max-width: 700px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.stat-card,
.service-card,
.contact-card,
.lead-form,
.hero-panel,
.case-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before,
.service-card::before,
.contact-card::before,
.lead-form::before,
.hero-panel::before,
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.34), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.stat-card:hover::before,
.service-card:hover::before,
.contact-card:hover::before,
.lead-form:hover::before,
.hero-panel:hover::before,
.case-card:hover::before {
  opacity: 1;
}

.stat-card {
  padding: 20px 20px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(10,18,28,0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-panel {
  padding: 1px;
  min-height: 640px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.5));
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(24px);
  isolation: isolate;
}

.hero-panel-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 638px;
  padding: 30px;
  border-radius: 33px;
  background:
    radial-gradient(circle at top right, rgba(16,25,43,0.09), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(247,249,252,0.78));
}

.mini-label {
  color: rgba(16, 25, 43, 0.74);
  background: rgba(16,25,43,0.06);
}

.hero-panel h2 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.flow-stack {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.flow-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(10,18,28,0.07);
  box-shadow: 0 18px 35px rgba(10,16,29,0.06);
  backdrop-filter: blur(14px);
}

.flow-card span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #121c30, #05090f);
  box-shadow: 0 0 0 10px rgba(16,25,43,0.06);
}

.flow-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.floating-card {
  position: absolute;
  right: 26px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(180deg, #151f31 0%, #0b111b 100%);
  box-shadow: 0 18px 40px rgba(8, 12, 22, 0.22);
  animation: floatCard 4.6s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  z-index: 0;
}

.orb-a {
  width: 160px;
  height: 160px;
  top: 52px;
  right: 14px;
  background: rgba(16, 25, 43, 0.12);
}

.orb-b {
  width: 110px;
  height: 110px;
  bottom: 100px;
  left: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.hero-panel-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(16, 25, 43, 0.08);
  inset: auto;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.ring-a {
  width: 450px;
  height: 450px;
  animation: spin 26s linear infinite;
}

.ring-b {
  width: 360px;
  height: 360px;
  border-color: rgba(38, 53, 79, 0.14);
  animation: spinReverse 18s linear infinite;
}

.ticker-wrap {
  overflow: hidden;
  margin-top: -10px;
  margin-bottom: 10px;
}

.ticker {
  border-top: 1px solid rgba(10,18,28,0.06);
  border-bottom: 1px solid rgba(10,18,28,0.06);
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px);
}

.ticker-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  padding: 14px 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker-track span {
  font-weight: 700;
  color: rgba(13,19,29,0.76);
  letter-spacing: 0.02em;
}

.section {
  padding: 112px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.section-head h2,
.contact-copy h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.section-head p {
  max-width: 460px;
}

.grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 26px;
  min-height: 240px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.52));
  border: 1px solid rgba(10,18,28,0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.icon-box {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-size: 1.35rem;
  background: linear-gradient(180deg, #121c30 0%, #070c13 100%);
  box-shadow: 0 18px 40px rgba(8,12,22,0.18);
}

.service-card h3 {
  margin: 20px 0 0;
  font-size: 1.42rem;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.section-dark {
  position: relative;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(180deg, #0f1726 0%, #090e16 100%);
  color: white;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 14% 22%, rgba(255,255,255,0.05), transparent 24%);
  pointer-events: none;
}

.dark-head p,
.dark-head h2 {
  color: white;
}

.dark-head p {
  color: rgba(255,255,255,0.68);
}

.mini-label.light,
.case-tag {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.08);
}

.cases-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  min-height: 290px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  box-shadow: 0 24px 54px rgba(3, 7, 14, 0.28);
  backdrop-filter: blur(16px);
}

.case-card strong {
  display: block;
  margin-top: 18px;
  font-size: 2rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.case-card p {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.75);
  line-height: 1.72;
}

.case-shine {
  position: absolute;
  inset: -140% auto auto -38%;
  width: 72%;
  height: 240%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.12) 48%, transparent 100%);
  opacity: 0;
  transition: opacity .25s ease, transform .7s ease;
}

.case-card:hover .case-shine {
  opacity: 1;
  transform: translateX(145%) rotate(24deg);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 24px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.56));
  border: 1px solid rgba(10,18,28,0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-card span {
  color: var(--text-soft);
}

.contact-card strong {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.lead-form {
  padding: 30px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.56));
  border: 1px solid rgba(10,18,28,0.07);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.form-top h3 {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead-form label {
  display: block;
  margin-top: 18px;
}

.lead-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(10,18,28,0.09);
  outline: none;
  border-radius: 20px;
  padding: 17px 18px;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.72);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(16,25,43,0.22);
  box-shadow: 0 0 0 4px rgba(16,25,43,0.07);
}

.lead-form textarea {
  min-height: 136px;
  resize: vertical;
}

.form-button {
  width: 100%;
  margin-top: 18px;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 600;
}

.form-message.success {
  color: #1d6b3f;
}

.form-message.error {
  color: #8f3333;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 34px;
  color: var(--text-soft);
}

.footer p {
  margin: 0;
}

.magnetic,
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s ease, box-shadow .28s ease, border-color .28s ease;
}

.magnetic:hover,
.tilt-card:hover {
  box-shadow: 0 38px 90px rgba(8, 12, 22, 0.14);
}

.reveal,
.reveal-delay,
.reveal-stagger {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity .82s ease, transform .82s cubic-bezier(.18, .9, .21, 1.02);
}

.reveal-delay {
  transition-delay: .14s;
}

.reveal.visible,
.reveal-delay.visible,
.reveal-stagger.visible {
  opacity: 1;
  transform: none;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1080px) {
  .hero,
  .contact-layout,
  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 560px;
  }

  .hero-panel-inner {
    min-height: 558px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .footer,
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1180px, calc(100% - 22px));
  }

  .hero {
    padding: 26px 0 60px;
  }

  .section {
    padding: 84px 0;
  }

  .hero-stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .case-card,
  .lead-form,
  .hero-panel-inner,
  .contact-card {
    padding: 22px;
  }

  .header-button {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .ring-a {
    width: 340px;
    height: 340px;
  }

  .ring-b {
    width: 270px;
    height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
