/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(106, 43, 199, 0.35);
}

.btn-primary:hover {
  box-shadow: var(--glow-purple);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(10, 45, 124, 0.06);
  box-shadow: var(--glow-blue);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  box-shadow: var(--shadow);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Cards */
.card {
  /*background: var(--card);*/
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(106, 43, 199, 0.25);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  color: var(--blue);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p {
  font-size: 0.95rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Home hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy);
  color: var(--white);
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  background: var(--purple);
  top: -10%;
  left: -5%;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: var(--blue);
  bottom: 5%;
  right: -8%;
}

.hero-inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1.15;
  display: grid;
  place-items: center;
}

.hero-logo-ring {
  position: absolute;
  inset: 4% 2%;
  border-radius: 50%;
  border: 1px solid rgba(201, 206, 216, 0.2);
  animation: spinSlow 28s linear infinite;
}

.hero-logo-ring::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px var(--purple);
}

.hero-logo {
  width: 88%;
  max-width: 420px;
  filter: drop-shadow(0 20px 50px rgba(106, 43, 199, 0.4));
  animation: floatY 5s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
}

.hero-copy .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  color: var(--white);
  margin-bottom: 1.15rem;
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-tagline {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Solutions / products home */
.icon-grid .card {
  height: 100%;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0c1f42, #07152f);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(106, 43, 199, 0.35),
    transparent 55%
  );
  opacity: 0.8;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.product-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-purple);
}

.product-card .product-link {
  margin-top: 1.1rem;
  color: var(--silver);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Industry tiles */
.industry-tile {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--card);
  transition: all var(--transition);
  cursor: default;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.industry-tile:hover,
.industry-tile.is-active {
  background: var(--navy);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.industry-tile:hover h3,
.industry-tile.is-active h3 {
  color: var(--white);
}

.industry-tile:hover p,
.industry-tile.is-active p {
  color: rgba(255, 255, 255, 0.7);
}

.industry-tile h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.industry-tile p {
  font-size: 0.88rem;
}

/* Timeline / process */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  opacity: 0.25;
}

.path-line {
  stroke: url(#pathGradient);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.8s var(--ease);
}

.path-line.is-drawn {
  stroke-dashoffset: 0;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--card);
  border: 2px solid var(--purple);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.timeline-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.timeline-step p {
  font-size: 0.88rem;
}

.process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0;
  align-items: stretch;
}

.process-step {
  flex: 1 1 160px;
  max-width: 200px;
  text-align: center;
  padding: 1.5rem 1rem;
}

.process-arrow {
  display: flex;
  align-items: center;
  color: var(--purple);
  font-size: 1.5rem;
  padding: 0 0.25rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  background:#ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.35rem;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Marquee */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--silver);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.85;
}

/* Testimonials */
.testimonial {
  height: 100%;
}

.testimonial .quote {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-weight: 500;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.author strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: var(--gradient);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--white);
  box-shadow: var(--glow-purple);
}

.cta-band h2 {
  color: var(--white);
  max-width: 480px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.65rem;
  max-width: 420px;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background:#f6f6f8;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(7, 21, 47, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6b778c;
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: var(--blue);
  background:#f6f6f8;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106, 43, 199, 0.2);
  background: #faf6ef;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  display: none;
}

.form-message.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.form-message.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.contact-channels {
  display: grid;
  gap: 1rem;
}

.contact-channel {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background:#f6f6f8;
}

.contact-channel strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.contact-channel a {
  color: var(--blue);
  font-weight: 500;
}

.contact-channel a:hover {
  color: var(--purple);
}

/* Values / feature list */
.value-list {
  display: grid;
  gap: 1.25rem;
}

.value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.value-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Media block */
.media-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Tech stack chips */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  transition: all var(--transition);
}

.chip:hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 4px 16px rgba(106, 43, 199, 0.12);
}

/* Research cards */
.insight-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.insight-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.insight-card .read-more {
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
}

/* Career role */
.role-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: all var(--transition);
}

.role-card:hover {
  border-color: rgba(106, 43, 199, 0.3);
  box-shadow: var(--shadow);
}

.role-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.role-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Legal */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 0.85rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 1rem;
}

@media (max-width: 960px) {
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-wrap {
    width: min(280px, 70vw);
  }

  .grid-3,
  .grid-4,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline::before {
    display: none;
  }

  .process-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-6,
  .stats-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }
}
