/* Xylem Strategic — product-first marketing site */

:root {
  --forest: #124734;
  --navy: #0f172a;
  --slate: #475569;
  --mist: #f8fafc;
  --steel: #dce8f2;
  --white: #ffffff;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --shadow-app: 0 24px 64px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(220, 232, 242, 0.8);
  --max-width: 1180px;
  --header-h: 80px;
  --logo-h: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--steel);
}

.site-header .container {
  padding-left: 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 1rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.82;
}

.brand-logo {
  display: block;
  height: var(--logo-h);
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--navy);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(18, 71, 52, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(18, 71, 52, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--steel);
}

.btn-secondary:hover {
  border-color: var(--slate);
  background: var(--mist);
}

.btn-cta {
  background: var(--white);
  color: var(--forest);
  flex-shrink: 0;
  padding: 0.85rem 1.5rem;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(220, 232, 242, 0.6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem 3rem;
  align-items: center;
  position: relative;
}

.hero-copy {
  max-width: 32rem;
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-trust li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--steel);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* Product visual */
.hero-product {
  min-width: 0;
}

.app-window {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-app);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.15rem;
  background: var(--mist);
  border-bottom: 1px solid var(--steel);
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--steel);
}

.chrome-dot:nth-child(1) { background: #cbd5e1; }
.chrome-dot:nth-child(2) { background: #94a3b8; }
.chrome-dot:nth-child(3) { background: var(--steel); }

.app-title {
  flex: 1;
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.app-live {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  background: rgba(18, 71, 52, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.app-body {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 0.42fr);
  gap: 0;
  min-height: 280px;
}

.app-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--steel);
  padding: 0;
}

.app-metric {
  background: var(--white);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-metric--primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--mist) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--steel);
}

.app-metric--success .app-metric-value {
  color: var(--forest);
}

.app-metric-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.app-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.app-metric--primary .app-metric-value {
  font-size: 2rem;
  color: var(--forest);
}

.app-metric-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: 0.5rem;
}

.app-metric-chart span {
  flex: 1;
  max-width: 28px;
  height: var(--h, 50%);
  background: var(--steel);
  border-radius: 3px 3px 0 0;
}

.app-metric--primary .app-metric-chart span:nth-child(3),
.app-metric--primary .app-metric-chart span:nth-child(4) {
  background: var(--forest);
  opacity: 0.35;
}

.app-issues {
  background: var(--mist);
  border-left: 1px solid var(--steel);
  padding: 1rem 1rem 1.15rem;
}

.app-issues-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin: 0 0 0.65rem;
}

.issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.issue-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
}

.issue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
  flex-shrink: 0;
}

.issue-card--alert .issue-dot {
  background: #b45309;
}

.issue-card--ready {
  border-color: rgba(18, 71, 52, 0.25);
  background: rgba(18, 71, 52, 0.04);
}

.issue-card--ready .issue-dot {
  background: var(--forest);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin: 0 0 0.5rem;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.75);
}

/* Products */
.products {
  background: var(--white);
  border-top: 1px solid var(--steel);
}

.products h2 {
  max-width: 28rem;
  margin-bottom: 2rem;
}

.product-note {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  font-size: 0.9375rem;
  color: var(--slate);
}

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

.product-card {
  background: var(--mist);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 71, 52, 0.2);
}

.product-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-card p {
  margin: 0;
  font-size: 0.9375rem;
}

.icon-chart,
.icon-flow,
.icon-listing {
  display: block;
  width: 22px;
  height: 22px;
  position: relative;
}

.icon-chart::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 5px;
  height: 10px;
  background: var(--steel);
  border-radius: 2px;
  box-shadow: 8px -4px 0 var(--forest), 16px -8px 0 var(--steel);
}

.icon-flow::before,
.icon-flow::after {
  content: "";
  position: absolute;
  border: 2px solid var(--forest);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  top: 7px;
}

.icon-flow::before { left: 2px; }
.icon-flow::after { right: 2px; background: var(--steel); border-color: var(--slate); }

.icon-flow {
  background: linear-gradient(90deg, var(--forest) 50%, transparent 50%) center / 10px 2px no-repeat;
}

.icon-listing::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid var(--navy);
  border-radius: 3px;
}

.icon-listing::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--steel);
  box-shadow: 0 5px 0 var(--steel), 0 10px 0 var(--forest);
}

/* Prompting to Systems */
.prompting-systems {
  background: var(--mist);
  padding: 3rem 0;
  border-top: 1px solid var(--steel);
}

.prompting-card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  max-width: 42rem;
}

.prompting-card h2 {
  margin-bottom: 1rem;
}

.prompting-card p {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  color: var(--slate);
}

.prompting-card p:last-child {
  margin-bottom: 0;
}

/* Operators */
.operators {
  background: linear-gradient(145deg, var(--navy) 0%, #0a1628 45%, var(--forest) 120%);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0;
}

.operators h2 {
  color: var(--white);
  max-width: 22rem;
}

.operators-lead {
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.proof-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.proof-card h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.proof-card p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

/* Experience */
.experience {
  background: var(--mist);
  padding: 3rem 0;
}

.experience h2 {
  margin-bottom: 1.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.badge {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--steel);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* Building */
.building {
  background: var(--white);
  border-top: 1px solid var(--steel);
  padding: 3rem 0;
}

.building-card {
  background: var(--mist);
  border: 1px solid var(--steel);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
}

.building-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin: 0 0 0.5rem;
}

.building-card h2 {
  margin-bottom: 0.75rem;
}

.building-copy {
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.building-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.building-tags span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--steel);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--navy) 100%);
  padding: 3.5rem 0;
  scroll-margin-top: var(--header-h);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.cta-copy h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-copy p {
  margin: 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: min(100%, 22rem);
  flex: 1;
  max-width: 26rem;
}

.contact-success {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(220, 245, 232, 0.95);
  color: var(--forest);
  border: 1px solid rgba(18, 71, 52, 0.2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
}

.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form .btn-cta {
  margin-top: 0.25rem;
  cursor: pointer;
  font: inherit;
}

.cta-copy a {
  color: var(--white);
}

.cta-copy a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 1.75rem 0;
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-product {
    order: -1;
  }

  .app-window {
    transform: none;
  }

  .product-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-issues {
    border-left: none;
    border-top: 1px solid var(--steel);
  }
}

@media (max-width: 960px) {
  :root {
    --logo-h: 52px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding-left: 1.25rem;
  }

  :root {
    --logo-h: 44px;
    --header-h: 72px;
  }

  .nav-links {
    gap: 0.25rem 1rem;
    font-size: 0.875rem;
  }

  .hero {
    padding: 1.75rem 0 2.5rem;
  }

  .app-metrics {
    grid-template-columns: 1fr;
  }

  .app-metric--primary {
    grid-column: 1;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-cta {
    width: 100%;
  }

  .contact-form-wrap {
    width: 100%;
    max-width: none;
  }
}
