/*
  Datrix Global Static Website
  Edit brand colors, copy, and links directly in this file and index.html.
*/

:root {
  --bg: #07080d;
  --bg-soft: #0c0e17;
  --bg-elevated: #121522;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(221, 181, 98, 0.38);
  --text: #f5f2ea;
  --muted: #a9adbd;
  --muted-2: #777d91;
  --gold: #d7ad58;
  --gold-light: #f2d99c;
  --champagne: #f8e9bf;
  --blue: #4aa8ff;
  --violet: #8a5cff;
  --cyan: #53e6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(138, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(215, 173, 88, 0.15), transparent 26%),
    linear-gradient(180deg, #07080d 0%, #090b12 48%, #07080d 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
  position: relative;
}

.section-tight {
  padding: 28px 0;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -100px;
  background: var(--champagne);
  color: #111;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(7, 8, 13, 0.92);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-text {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.93rem;
  padding: 10px 13px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #11131a;
  font-weight: 800;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  box-shadow: 0 12px 34px rgba(215, 173, 88, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(215, 173, 88, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.expertise-copy h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero-copy h1 {
  max-width: 770px;
  background: linear-gradient(135deg, #fff 0%, var(--champagne) 45%, #cbd4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  max-width: 670px;
  margin: 28px 0 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--champagne);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.77rem;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(215, 173, 88, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(215, 173, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 173, 88, 0); }
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #101217;
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  box-shadow: 0 18px 50px rgba(215, 173, 88, 0.25);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  border-color: var(--border-gold);
  background: rgba(215, 173, 88, 0.08);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 36px;
}

.metric-strip div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.metric-strip strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--gold-light);
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 168, 255, 0.23), transparent 61%);
  filter: blur(4px);
}

.dashboard-card {
  width: min(100%, 475px);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(15, 19, 35, 0.95), rgba(9, 11, 18, 0.92));
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: rotateX(4deg) rotateY(-7deg);
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(215,173,88,0.25), transparent 36%, rgba(83,230,255,0.18));
  opacity: 0.7;
  pointer-events: none;
}

.dashboard-card > * {
  position: relative;
}

.dashboard-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 26px;
}

.status-pill {
  color: #07120f;
  background: linear-gradient(135deg, #8dffd5, #53e6ff);
  font-size: 0.74rem;
  padding: 6px 10px;
  border-radius: 999px;
}

.growth-chart {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    rgba(0, 0, 0, 0.14);
  background-size: 42px 42px;
}

.growth-chart span {
  display: block;
  min-height: 30px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--champagne), var(--gold) 42%, var(--violet));
  box-shadow: 0 10px 26px rgba(138, 92, 255, 0.23);
  animation: lift 4s ease-in-out infinite;
}

.growth-chart span:nth-child(even) {
  animation-delay: 0.25s;
}

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

.dashboard-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.dashboard-grid-mini div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.045);
}

.dashboard-grid-mini small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}

.dashboard-grid-mini strong {
  font-size: 1.5rem;
  color: var(--gold-light);
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  background: rgba(12, 14, 23, 0.84);
  box-shadow: 0 18px 50px rgba(0,0,0,0.38);
  backdrop-filter: blur(12px);
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 3px;
}

.floating-card strong {
  color: var(--champagne);
}

.card-amazon {
  right: 2%;
  top: 17%;
}

.card-bpo {
  left: 0;
  bottom: 18%;
}

.orbital-ring {
  position: absolute;
  width: 570px;
  height: 250px;
  border: 1px solid rgba(215,173,88,0.19);
  border-radius: 50%;
  transform: rotate(-22deg);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  background: var(--violet);
  left: -80px;
  top: 90px;
}

.hero-glow-two {
  width: 340px;
  height: 340px;
  background: var(--gold);
  right: -110px;
  bottom: 80px;
}

.trust-strip {
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: center;
}

.trust-grid span {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading-left {
  text-align: left;
  margin: 0;
}

.section-heading h2,
.expertise-copy h2,
.cta-panel h2 {
  font-size: clamp(2.05rem, 4.5vw, 4.65rem);
  line-height: 0.98;
  color: var(--text);
}

.section-heading p,
.expertise-copy p,
.cta-panel p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.why-card,
.process-step,
.location-card,
.testimonial-card {
  position: relative;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.032));
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 50px rgba(0,0,0,0.18);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.service-card::after,
.why-card::after,
.process-step::after,
.location-card::after,
.testimonial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(215,173,88,0.12), transparent 36%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.service-card:hover,
.why-card:hover,
.process-step:hover,
.location-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: 0 26px 70px rgba(0,0,0,0.28);
}

.service-card:hover::after,
.why-card:hover::after,
.process-step:hover::after,
.location-card:hover::after,
.testimonial-card:hover::after {
  opacity: 1;
}

.service-card {
  padding: 26px;
  min-height: 400px;
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  color: var(--champagne);
  background: rgba(215,173,88,0.08);
  font-weight: 900;
  margin-bottom: 26px;
}

.service-card h3,
.why-card h3,
.process-step h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.service-card p,
.why-card p,
.process-step p,
.testimonial-card p {
  color: var(--muted);
  margin: 14px 0 0;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.service-card li {
  color: var(--text);
  font-size: 0.92rem;
  display: flex;
  gap: 9px;
}

.service-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  flex: 0 0 auto;
  margin-top: 9px;
}

.expertise-section,
.process-section,
.testimonials-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.expertise-layout {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 54px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(74,168,255,0.15), transparent 35%),
    rgba(255,255,255,0.035);
}

.text-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--champagne);
  font-weight: 850;
}

.expertise-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.expertise-cloud span {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.expertise-cloud span:hover {
  transform: translateY(-4px);
  border-color: rgba(83,230,255,0.38);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.why-card {
  padding: 26px;
  min-height: 220px;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: process;
}

.process-step {
  padding: 28px;
  min-height: 260px;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--gold-light);
  font-weight: 950;
  font-size: 0.92rem;
}

.industries-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: center;
}

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

.industry-list span {
  padding: 19px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  color: var(--text);
  font-weight: 750;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.location-card {
  padding: 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-card strong {
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.location-card span {
  color: var(--muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial-card {
  padding: 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  color: var(--text);
  font-size: 1.05rem;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  color: var(--champagne);
}

.testimonial-card span {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.final-cta {
  padding-top: 70px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 36px;
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(circle at 14% 0%, rgba(215,173,88,0.22), transparent 36%),
    radial-gradient(circle at 92% 100%, rgba(138,92,255,0.23), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  max-width: 820px;
}

.cta-panel p {
  max-width: 760px;
}

.cta-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  padding: 58px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-brand p {
  max-width: 350px;
  color: var(--muted);
  margin: 18px 0 0;
}

.site-footer h3 {
  margin: 0 0 15px;
  font-size: 0.9rem;
  color: var(--champagne);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer a:not(.brand) {
  display: block;
  color: var(--muted);
  margin: 10px 0;
  transition: color 0.2s ease;
}

.site-footer a:not(.brand):hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 40px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .expertise-layout,
  .why-grid,
  .industries-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .service-grid,
  .process-timeline,
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-actions {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 16px auto 16px;
    display: grid;
    justify-content: stretch;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(11, 13, 22, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px;
    border-radius: 14px;
  }

  .nav-cta {
    display: none;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-copy h1 {
    font-size: clamp(2.95rem, 15vw, 4.65rem);
  }

  .metric-strip,
  .service-grid,
  .why-cards,
  .process-timeline,
  .industry-list,
  .locations-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 455px;
  }

  .dashboard-card {
    padding: 20px;
    transform: none;
  }

  .growth-chart {
    height: 210px;
    gap: 8px;
    padding: 14px;
  }

  .floating-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin-top: -12px;
    width: 78%;
  }

  .card-amazon {
    justify-self: end;
  }

  .card-bpo {
    justify-self: start;
  }

  .orbital-ring {
    display: none;
  }

  .expertise-layout {
    padding: 24px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-text {
    display: none;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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