/* =========================================================
   DATA-SENSE HOME PAGE
   Scoped to .ds-home to avoid changing other WordPress pages
   ========================================================= */

.ds-home {
  --ds-bg: #06121e;
  --ds-bg-2: #091d2e;
  --ds-panel: #102a3d;
  --ds-panel-2: #12364a;
  --ds-border: #365c70;
  --ds-text: #f3f8fa;
  --ds-muted: #c3d5dd;
  --ds-cyan: #91f0e5;
  --ds-blue: #b1d5ff;
  --ds-amber: #ffd29a;
  --ds-focus: #ffe98e;

  color: var(--ds-text);
  background: var(--ds-bg);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1rem, 0.98rem + 0.16vw, 1.125rem);
  line-height: 1.7;
  overflow: clip;
}

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

.ds-home a {
  color: var(--ds-cyan);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

.ds-home a:hover {
  color: #d6fff8;
}

.ds-home a:focus-visible,
.ds-home summary:focus-visible {
  outline: 3px solid var(--ds-focus);
  outline-offset: 4px;
  border-radius: 3px;
}

.ds-home .ds-shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.ds-home h1,
.ds-home h2,
.ds-home h3 {
  color: var(--ds-text);
  font-family: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.ds-home h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);
  letter-spacing: -0.06em;
}

.ds-home h2 {
  font-size: clamp(2rem, 3.6vw, 3.8rem);
}

.ds-home h3 {
  font-size: clamp(1.3rem, 1.7vw, 1.8rem);
}

.ds-home p {
  color: var(--ds-muted);
}

.ds-home .ds-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: var(--ds-cyan);
  font: 800 0.76rem/1.4 "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ds-home .ds-section {
  padding: clamp(4.25rem, 7vw, 7rem) 0;
}

.ds-home .ds-section--soft {
  background: var(--ds-bg-2);
}

.ds-home .ds-intro {
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.ds-home .ds-intro h2 {
  margin: 0 0 1rem;
}

.ds-home .ds-intro p {
  max-width: 70ch;
  margin: 0;
}

/* Hero */

.ds-home .ds-hero {
  position: relative;
  isolation: isolate;
  min-height: min(780px, 90vh);
  display: flex;
  align-items: center;
  padding: clamp(5rem, 9vw, 9rem) 0;
  background:
    radial-gradient(circle at 79% 28%, rgba(65, 197, 194, 0.24), transparent 29%),
    radial-gradient(circle at 13% 87%, rgba(90, 129, 220, 0.18), transparent 31%),
    linear-gradient(120deg, #06121e 5%, #0a2638 67%, #11364a 100%);
}

.ds-home .ds-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.ds-home .ds-hero h1 {
  max-width: 850px;
  margin: 0 0 1.25rem;
}

.ds-home .ds-hero-highlight {
  color: #b9fff3;
}

.ds-home .ds-hero-lead {
  max-width: 690px;
  margin: 0 0 2rem;
  color: #e1eef2;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  line-height: 1.65;
}

.ds-home .ds-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.ds-home .ds-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.73rem 1.15rem;
  border: 2px solid var(--ds-cyan);
  border-radius: 8px;
  background: var(--ds-cyan);
  color: #06232a;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.ds-home .ds-button:hover {
  background: #d0fff7;
  color: #06232a;
  transform: translateY(-2px);
}

.ds-home .ds-button--outline {
  background: transparent;
  color: #e8fffa;
}

.ds-home .ds-button--outline:hover {
  background: rgba(145, 240, 229, 0.13);
  color: #ffffff;
}

/* CSS-only scientific/data visualization */

.ds-home .ds-signal {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid rgba(145, 240, 229, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(70, 201, 205, 0.2), transparent 50%),
    repeating-radial-gradient(
      circle at center,
      transparent 0 43px,
      rgba(145, 240, 229, 0.15) 44px 45px
    );
  box-shadow: 0 0 90px rgba(79, 209, 206, 0.17);
}

.ds-home .ds-signal::before,
.ds-home .ds-signal::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(155, 202, 255, 0.42);
  border-radius: 50%;
  transform: rotateX(65deg) rotate(-26deg);
}

.ds-home .ds-signal::after {
  transform: rotateY(66deg) rotate(26deg);
}

.ds-home .ds-signal-center {
  position: absolute;
  inset: 31%;
  display: grid;
  place-content: center;
  border: 1px solid var(--ds-cyan);
  border-radius: 50%;
  background: #0d3142;
  color: #ffffff;
  box-shadow: 0 0 45px rgba(145, 240, 229, 0.28);
  font: 900 clamp(1.2rem, 3vw, 2.3rem)/1.1 "Space Grotesk", system-ui, sans-serif;
  text-align: center;
}

.ds-home .ds-signal-center small {
  display: block;
  margin-top: 0.35rem;
  color: var(--ds-cyan);
  font: 700 0.59rem/1.3 "Inter", system-ui, sans-serif;
  letter-spacing: 0.11em;
}

.ds-home .ds-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ds-amber);
  box-shadow: 0 0 18px var(--ds-amber);
}

.ds-home .ds-node--one { top: 15%; left: 22%; }
.ds-home .ds-node--two {
  top: 42%;
  right: 5%;
  background: var(--ds-cyan);
  box-shadow: 0 0 18px var(--ds-cyan);
}
.ds-home .ds-node--three {
  bottom: 14%;
  left: 28%;
  background: var(--ds-blue);
  box-shadow: 0 0 18px var(--ds-blue);
}

/* Signal strip */

.ds-home .ds-principles {
  border-top: 1px solid var(--ds-border);
  border-bottom: 1px solid var(--ds-border);
  background: #092537;
}

.ds-home .ds-principles-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
}

.ds-home .ds-principles li {
  color: #e4f1f4;
  font-size: 0.87rem;
  font-weight: 750;
}

.ds-home .ds-principles li::before {
  content: "✦";
  margin-right: 0.55rem;
  color: var(--ds-amber);
}

/* Cards */

.ds-home .ds-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.ds-home .ds-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.ds-home .ds-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  background: linear-gradient(145deg, #12354a, #0d2335);
}

.ds-home .ds-card--research { border-top: 4px solid #9ac9ff; }
.ds-home .ds-card--solutions { border-top: 4px solid #99f0df; }
.ds-home .ds-card--learning { border-top: 4px solid #ffd09c; }

.ds-home .ds-card-num {
  color: var(--ds-amber);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ds-home .ds-card h3 {
  margin: 1rem 0 0.45rem;
}

.ds-home .ds-card p {
  margin: 0 0 1.8rem;
}

.ds-home .ds-card a {
  margin-top: auto;
  font-weight: 800;
  text-decoration: none;
}

/* Process flow */

.ds-home .ds-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 2.3rem 0 0;
  padding: 0;
}

.ds-home .ds-flow li {
  position: relative;
  padding: 1.25rem 0.95rem;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: var(--ds-panel);
}

.ds-home .ds-flow li::before {
  content: attr(data-step);
  display: block;
  margin-bottom: 0.7rem;
  color: var(--ds-cyan);
  font-size: 0.75rem;
  font-weight: 900;
}

.ds-home .ds-flow strong {
  display: block;
  color: #ffffff;
}

.ds-home .ds-flow span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ds-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

/* Domain tiles */

.ds-home .ds-domain {
  min-height: 0;
}

.ds-home .ds-domain h3 {
  margin-top: 0.25rem;
}

.ds-home .ds-domain-tag {
  color: var(--ds-cyan);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* Highlight section */

.ds-home .ds-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.ds-home .ds-feature-panel {
  padding: clamp(1.6rem, 3vw, 2.7rem);
  border: 1px solid var(--ds-border);
  border-left: 5px solid var(--ds-amber);
  border-radius: 12px;
  background: linear-gradient(140deg, #133950, #0c2335);
}

.ds-home .ds-feature-panel p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.5;
  color: #f4fafa;
}

/* Audience cards */

.ds-home .ds-audience {
  min-height: 245px;
}

.ds-home .ds-audience p {
  max-width: 50ch;
}

/* Final conversion */

.ds-home .ds-final {
  padding: clamp(4.25rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 84% 30%, rgba(129, 233, 220, 0.22), transparent 30%),
    linear-gradient(120deg, #0b2638, #124354);
}

.ds-home .ds-final .ds-shell {
  max-width: 900px;
}

.ds-home .ds-final h2 {
  margin: 0 0 1rem;
}

.ds-home .ds-final p {
  max-width: 66ch;
  color: #e3f0f3;
}

.ds-home .ds-small {
  font-size: 0.86rem;
}

/* Responsive and motion preferences */

@media (max-width: 950px) {
  .ds-home .ds-hero-grid,
  .ds-home .ds-feature {
    grid-template-columns: 1fr;
  }

  .ds-home .ds-signal {
    max-width: 300px;
    margin-inline: 0;
  }

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

@media (max-width: 680px) {
  .ds-home .ds-grid-3,
  .ds-home .ds-grid-2,
  .ds-home .ds-principles-list,
  .ds-home .ds-flow {
    grid-template-columns: 1fr;
  }

  .ds-home .ds-signal {
    display: none;
  }

  .ds-home .ds-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ds-home .ds-hero-highlight {
    background: linear-gradient(
      100deg,
      #b9fff3 0%,
      #d5e7ff 35%,
      #ffe0b5 70%,
      #b9fff3 100%
    );
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: ds-home-glow 10s ease-in-out infinite alternate;
  }

  @keyframes ds-home-glow {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-home .ds-button {
    transition: none;
  }

  .ds-home .ds-button:hover {
    transform: none;
  }

  .ds-home .ds-hero-highlight {
    background: none;
    color: #b9fff3;
    -webkit-text-fill-color: #b9fff3;
    animation: none;
  }
}