/* =========================================================
   Base / Carbon-inspired tokens
   ========================================================= */

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

:root {
  /* Carbon-like gray / blue palette */
  --uds-ui-background: #161616;      /* page background */
  --uds-ui-01: #262626;              /* primary layer */
  --uds-ui-02: #393939;              /* secondary layer */
  --uds-interactive-01: #0f62fe;     /* primary button / accent */
  --uds-interactive-02: #393939;     /* secondary button */
  --uds-border-subtle: #393939;
  --uds-border-strong: #6f6f6f;
  --uds-text-primary: #f4f4f4;
  --uds-text-secondary: #c6c6c6;
  --uds-text-helper: #8d8d8d;
  --uds-danger: #fa4d56;

  --uds-radius-01: 0;                /* square edges */
  --uds-shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.35);

  --uds-font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--uds-font-family);
  background: var(--uds-ui-background);
  color: var(--uds-text-primary);
}

body {
  line-height: 1.5;
}

a {
  color: inherit;
}

/* =========================================================
   Layout helpers
   ========================================================= */

.uds-section {
  padding: 4rem min(8vw, 6rem);
  background: var(--uds-ui-background);
}

.uds-section-alt {
  background: #000000;
}

.uds-section-header {
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

.uds-section-header h2 {
  margin: 0 0 0.75rem;
  font-weight: 500;
  font-size: 2rem;
}

.uds-section-header p {
  margin: 0;
  color: var(--uds-text-secondary);
  max-width: 640px;
}

/* Eyebrow */
.uds-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uds-text-helper);
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.uds-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0f0f0f;
  border-bottom: 1px solid #262626;
}

.uds-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.uds-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.uds-logo-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.uds-logo-footer .uds-logo-text {
  font-size: 0.8rem;
}

.uds-logo-mark {
  width: 20px;
  height: 20px;
  background: #0f62fe;
}

/* Nav */
.uds-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.uds-nav a {
  color: var(--uds-text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
}

.uds-nav a:hover {
  color: var(--uds-text-primary);
}

.uds-nav-cta {
  padding-inline: 0.75rem;
  border: 1px solid #525252;
}

.uds-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.uds-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--uds-text-primary);
}

/* =========================================================
   Hero
   ========================================================= */

.uds-hero {
  padding: 3.5rem min(8vw, 6rem) 3.5rem;
  border-bottom: 1px solid #262626;
  background: #000000;
}

.uds-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.uds-hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  font-weight: 500;
}

.uds-hero-lead {
  margin: 0 0 1.5rem;
  color: var(--uds-text-secondary);
  max-width: 34rem;
}

.uds-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.uds-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--uds-text-helper);
}

.uds-hero-meta span {
  border: 1px solid #393939;
  padding: 0.15rem 0.6rem;
}

/* Hero metrics panel */
.uds-hero-panel {
  display: grid;
  gap: 1rem;
}

.uds-hero-card {
  background: var(--uds-ui-01);
  border: 1px solid #393939;
  padding: 1rem 1rem 0.9rem;
  box-shadow: var(--uds-shadow-soft);
}

.uds-hero-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uds-text-helper);
}

.uds-hero-metric {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.uds-hero-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--uds-text-secondary);
}

/* =========================================================
   Buttons
   ========================================================= */

.uds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--uds-radius-01);
  border: 1px solid transparent;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.uds-btn-primary {
  background: var(--uds-interactive-01);
  color: #ffffff;
}

.uds-btn-primary:hover {
  background: #0353e9;
}

.uds-btn-secondary {
  background: transparent;
  color: var(--uds-text-primary);
  border-color: #525252;
}

.uds-btn-secondary:hover {
  background: #262626;
}

/* =========================================================
   Tabs & content
   ========================================================= */

.uds-tabs {
  border: 1px solid #393939;
  background: #161616;
  padding: 1.25rem 1.5rem 1.25rem;
}

.uds-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.uds-tab {
  border-radius: var(--uds-radius-01);
  border: 1px solid transparent;
  background: transparent;
  color: var(--uds-text-secondary);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.uds-tab.active {
  background: #262626;
  border-color: #525252;
  color: var(--uds-text-primary);
}

.uds-tab-panel {
  display: none;
}

.uds-tab-panel.active {
  display: block;
}

/* Grid */
.uds-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

/* Lists */
.uds-list {
  padding-left: 1.1rem;
  margin: 0.8rem 0 0;
  color: var(--uds-text-secondary);
  font-size: 0.9rem;
}

.uds-list li {
  margin-bottom: 0.3rem;
}

.uds-list.small {
  font-size: 0.85rem;
}

/* Metric card */
.uds-metric-card {
  background: var(--uds-ui-01);
  border: 1px solid #525252;
  padding: 1rem 1rem 0.9rem;
}

.uds-metric-label {
  color: var(--uds-text-helper);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin: 0 0 0.25rem;
}

.uds-metric-value {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.uds-metric-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--uds-text-secondary);
}

/* =========================================================
   Card grid
   ========================================================= */

.uds-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.uds-card {
  background: var(--uds-ui-01);
  border: 1px solid #393939;
  padding: 1.1rem 1.1rem 1rem;
}

.uds-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.uds-card p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--uds-text-secondary);
}

/* Pill / label */
.uds-pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: var(--uds-radius-01);
  border: 1px solid #6f6f6f;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uds-text-helper);
  margin: 0 0 0.4rem;
}

/* Section split */
.uds-section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

/* Stats (dl) */
.uds-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 1.7rem 0 0;
  padding: 0;
}

.uds-stats > div {
  min-width: 120px;
}

.uds-stat-value {
  font-size: 1.4rem;
  font-weight: 500;
}

.uds-stat-label {
  font-size: 0.8rem;
  color: var(--uds-text-helper);
  margin: 0.2rem 0 0;
}

/* Timeline */
.uds-timeline {
  border-left: 1px solid #393939;
  padding-left: 1.3rem;
}

.uds-timeline-item {
  margin-bottom: 1.2rem;
  position: relative;
}

.uds-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 0.25rem;
  width: 9px;
  height: 9px;
  background: #0f62fe;
}

.uds-timeline-stage {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uds-text-helper);
}

.uds-timeline-item p {
  margin: 0;
  color: var(--uds-text-secondary);
  font-size: 0.9rem;
}

/* =========================================================
   Insights summary
   ========================================================= */

.uds-card-article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.uds-card-article h3 {
  font-size: 0.98rem;
  font-weight: 500;
}

.uds-link-button {
  margin-top: 0.4rem;
  padding: 0;
  border: none;
  background: none;
  color: #0f62fe;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
}

.uds-link-button:hover {
  text-decoration: underline;
}

.uds-insight-summary {
  margin-top: 2rem;
  border: 1px solid #393939;
  background: #161616;
}

.uds-insight-summary-inner {
  padding: 1rem 1.1rem 0.9rem;
}

.uds-insight-summary h3 {
  margin: 0 0 0.4rem;
  font-weight: 500;
}

.uds-insight-summary p {
  margin: 0;
  color: var(--uds-text-secondary);
  font-size: 0.9rem;
}

/* =========================================================
   Contact / form
   ========================================================= */

.uds-section-contact {
  align-items: stretch;
}

.uds-contact-meta p {
  margin: 0.25rem 0;
  color: var(--uds-text-secondary);
  font-size: 0.9rem;
}

.uds-form {
  background: var(--uds-ui-01);
  border: 1px solid #393939;
  padding: 1.25rem 1.25rem 1.1rem;
}

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

.uds-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.uds-form-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uds-text-helper);
}

.uds-form-field input,
.uds-form-field select,
.uds-form-field textarea {
  background: #161616;
  border-radius: var(--uds-radius-01);
  border: 1px solid #393939;
  padding: 0.45rem 0.6rem;
  color: var(--uds-text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.uds-form-field input:focus,
.uds-form-field select:focus,
.uds-form-field textarea:focus {
  border-color: #0f62fe;
}

.uds-error {
  font-size: 0.75rem;
  color: var(--uds-danger);
  min-height: 0.9rem;
}

.uds-form-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.uds-form-note {
  font-size: 0.8rem;
  color: var(--uds-text-helper);
  max-width: 24rem;
}

.uds-form-status {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--uds-text-secondary);
}

/* =========================================================
   Footer
   ========================================================= */

.uds-footer {
  border-top: 1px solid #262626;
  background: #000000;
  padding: 2.4rem min(8vw, 6rem) 1rem;
}

.uds-footer-inner {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  display: flex;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.uds-footer-cols {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uds-footer-cols h4 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uds-text-helper);
}

.uds-footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.uds-footer-cols li {
  margin-bottom: 0.25rem;
}

.uds-footer-cols a {
  color: var(--uds-text-secondary);
  text-decoration: none;
}

.uds-footer-cols a:hover {
  color: var(--uds-text-primary);
}

.uds-footer-copy {
  font-size: 0.85rem;
  color: var(--uds-text-secondary);
  max-width: 20rem;
}

.uds-footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid #262626;
  padding-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--uds-text-helper);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .uds-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .uds-hero-panel {
    order: -1;
  }

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

  .uds-section-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .uds-footer-inner {
    flex-direction: column;
  }

  .uds-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .uds-header-inner {
    padding-inline: 1rem;
  }

  .uds-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #161616;
    border-bottom: 1px solid #262626;
    padding: 0.6rem 1rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 120ms ease, opacity 120ms ease;
  }

  .uds-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .uds-nav-toggle {
    display: block;
  }

  .uds-section {
    padding-inline: 1.25rem;
  }

  .uds-hero {
    padding-inline: 1.25rem;
  }

  .uds-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .uds-footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}