/* EnlisticONE landing page. The platform's palette (apps/web/tailwind.config.js), its product colours
   (ProductHub.tsx) and the dark navy of its offer artwork (ProductArt.tsx). No web fonts: the platform's own
   Helvetica/Arial stack. Everything is in this file because the page's policy allows no inline styles. */

:root {
  --navy: #03225C;
  --accent: #35538B;
  --tint: #EDF1F9;
  --line: #DCE3F2;
  --faint: #93A0C2;
  --deep-1: #06214F;
  --deep-2: #03132F;
  --deep-3: #01091A;
  --glow: #7FB2FF;
  --radius: 8px;
  --shadow: 0 10px 24px -8px rgb(3 34 92 / 0.28);
}

/* Each product's own colour, as on the platform. */
.c-dmarc { --c: #2E6FD9; --t: #EAF1FC; }
.c-breach { --c: #D8453F; --t: #FCECEB; }
.c-lookalike { --c: #E08A1E; --t: #FDF3E6; }
.c-vuln { --c: #2C9A57; --t: #E9F6EE; }
.c-geo { --c: #6B4FCF; --t: #EFEBFB; }
.c-web { --c: #0E8C9B; --t: #E6F4F6; }
.c-config, .c-code { --c: #C03A8E; --t: #FAEAF4; }

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

html {
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font: 16px/1.55 Helvetica, Arial, system-ui, sans-serif;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.skip:focus { top: 12px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- the product glyphs: white line icons, as on the platform's hub --- */
.glyph, .icon svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.solid { fill: #fff; }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(2px); }

.btn-light {
  border: 1px solid rgb(255 255 255 / 0.35);
  color: #fff;
}
.btn-light:hover { background: rgb(255 255 255 / 0.1); }

.btn-glow {
  padding: 13px 22px;
  background: linear-gradient(135deg, #9CC4FF, #5C8FE0);
  color: #03142F;
  box-shadow: 0 10px 30px -8px rgb(46 111 217 / 0.7);
}
.btn-glow:hover { box-shadow: 0 14px 34px -8px rgb(46 111 217 / 0.85); }

/* --- hero --- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 36rem at 78% 40%, rgb(46 111 217 / 0.22), transparent 70%),
    linear-gradient(160deg, var(--deep-1) 0%, var(--deep-2) 48%, var(--deep-3) 100%);
}
/* The perspective grid of the platform's artwork, flattened: a faint lattice fading out at the edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(127 178 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(127 178 255 / 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%);
  pointer-events: none;
}
/* The lit top edge. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: .6;
}

.bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* The logo is navy on transparent: the white square gives it the background it was drawn for, as in the app. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: #fff;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--glow); }

.hero-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--glow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
}

h1 {
  margin-top: 20px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h1 span {
  color: var(--glow);
  text-shadow: 0 0 28px rgb(46 111 217 / 0.8);
}

.lede {
  max-width: 34rem;
  margin-top: 24px;
  color: rgb(255 255 255 / 0.75);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.link-light {
  color: rgb(255 255 255 / 0.8);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.link-light:hover { color: #fff; text-decoration: underline; }

/* --- the hub: the platform's dashboard diagram, all eight products round the wordmark --- */
.hub svg {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-left: auto;
  overflow: visible;
}
.hub-spokes path {
  stroke: rgb(127 178 255 / 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
}
.hub-ring {
  fill: none;
  stroke: rgb(127 178 255 / 0.2);
  stroke-width: 1.2;
}
.hub-core {
  fill: var(--navy);
  stroke: rgb(127 178 255 / 0.55);
  stroke-width: 2;
  filter: drop-shadow(0 0 24px rgb(46 111 217 / 0.55));
}
.hub-word {
  fill: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hub-word tspan { fill: var(--glow); }
.node {
  fill: var(--c);
  stroke: rgb(255 255 255 / 0.85);
  stroke-width: 2;
  filter: drop-shadow(0 0 14px var(--c));
}

@media (prefers-reduced-motion: no-preference) {
  .hub-ring {
    stroke-dasharray: 4 10;
    transform-origin: 260px 260px;
    animation: turn 90s linear infinite;
  }
  @keyframes turn { to { transform: rotate(360deg); } }
}

/* --- sections --- */
.label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-lede {
  max-width: 42rem;
  margin-top: 12px;
  color: var(--accent);
  font-size: 17px;
}

.products {
  padding-top: 88px;
  padding-bottom: 88px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--c);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--t);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 5px var(--t);
}
.icon svg { width: 24px; height: 24px; }

.card h3 {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.25;
}
.card > p {
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
}

.points {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tint);
}
.points li {
  position: relative;
  padding-left: 20px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.4;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--c);
  border-bottom: 2px solid var(--c);
  transform: rotate(-45deg);
}
.points strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

/* --- why --- */
.why {
  padding: 80px 0;
  background: var(--tint);
}
.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
  counter-reset: why;
}
.why-list li {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  counter-increment: why;
}
.why-list li::before {
  content: "0" counter(why);
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.why-list h3 {
  margin-top: 10px;
  font-size: 18px;
}
.why-list p {
  margin-top: 6px;
  color: var(--accent);
  font-size: 15px;
}

/* --- call to action --- */
.cta {
  padding-top: 80px;
  padding-bottom: 80px;
}
.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(30rem 16rem at 85% 50%, rgb(46 111 217 / 0.3), transparent 70%),
    linear-gradient(135deg, var(--deep-1), var(--deep-3));
  box-shadow: var(--shadow);
}
.cta-box h2 { margin-top: 0; font-size: 28px; }
.cta-box p {
  margin-top: 6px;
  color: rgb(255 255 255 / 0.72);
}
.cta-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

/* --- footer --- */
.foot {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.foot .brand-name {
  color: var(--navy);
  font-size: 15px;
}
.foot .brand-name span { color: var(--accent); }

/* --- narrower screens --- */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 72px;
  }
  .hub svg { max-width: 340px; margin: 0 auto; }
  .why-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 16px; }
  .cta-box { padding: 28px 24px; }
  .cta-box .btn { width: 100%; justify-content: center; }
  .products, .cta { padding-top: 64px; padding-bottom: 64px; }
  .why { padding: 64px 0; }
}
