/*
Theme Name: Nexem Human Performance
Theme URI: https://nexem.co
Author: Nexem
Description: Single-page WordPress theme for Nexem human performance / longevity technology positioning.
Version: 1.0.0
License: GPLv2 or later
Text Domain: nexem
*/

:root {
  --navy: #061326;
  --navy-2: #081b35;
  --blue: #2678ff;
  --blue-2: #0ea5ff;
  --cyan: #35d5ff;
  --green: #10b981;
  --text: #0b1220;
  --muted: #5e6b7a;
  --line: #e7ecf3;
  --soft: #f6f9fd;
  --white: #ffffff;
}

* { 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: var(--white);
  color: var(--text);
}

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

.site {
  overflow-x: hidden;
  background: var(--white);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  padding: 28px 0;
  color: white;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 10px;
  font-weight: 500;
  font-size: 25px;
}

.logo svg { width: 30px; height: 30px; }

.logo .xmark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  position: relative;
  margin-right: -2px;
}

.logo .xmark:before,
.logo .xmark:after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
}

.logo .xmark:before { transform: rotate(45deg); }
.logo .xmark:after { transform: rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu span {
  display: block;
  width: 30px;
  height: 2px;
  background: white;
}

.hero {
  min-height: 680px;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 40%, rgba(38,120,255,.45), transparent 28%),
    linear-gradient(110deg, #020915 0%, #07162d 48%, #030a17 100%);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 83% 25%, rgba(53,213,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 44%, rgba(38,120,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 67% 61%, rgba(53,213,255,.65) 0 2px, transparent 3px),
    radial-gradient(circle at 89% 60%, rgba(38,120,255,.8) 0 2px, transparent 3px);
  opacity: .85;
}

.hero-art {
  position: absolute;
  right: -180px;
  top: 80px;
  width: 880px;
  height: 570px;
  opacity: .9;
}

.hero-art svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 35px rgba(38,120,255,.5));
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(560px, 100%);
  padding-top: 70px;
}

.eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 76px);
  line-height: .98;
  margin: 0 0 22px;
  letter-spacing: -.05em;
}

.hero h1 span { color: var(--blue); display: block; }

.hero p {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.86);
  max-width: 470px;
}

.cta-row {
  display: flex;
  gap: 18px;
  margin-top: 34px;
}

.button {
  min-width: 172px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 14px;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), #1d63f2);
  box-shadow: 0 14px 34px rgba(38,120,255,.25);
}

.button.secondary {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.04);
}

.section {
  padding: 78px 0;
}

.triad {
  background: white;
}

.section-label {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 30px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: white;
}

.card {
  padding: 44px 42px;
  border-right: 1px solid var(--line);
}

.card:last-child { border-right: 0; }

.icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #eef5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 26px;
}

.card h3 {
  font-size: 25px;
  margin: 0 0 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.platform {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  padding-top: 40px;
}

.platform-grid {
  display: grid;
  grid-template-columns: .85fr 1.5fr;
  gap: 44px;
  align-items: center;
}

.platform-copy h2 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.04;
  margin: 0 0 20px;
  letter-spacing: -.04em;
}

.platform-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #152033;
  font-weight: 650;
}

.feature-list li:before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 12px;
}

.dashboard {
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 25px 80px rgba(6,19,38,.12);
  padding: 20px;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: .35em;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  min-height: 155px;
}

.metric-label {
  color: #5e6b7a;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.big {
  font-size: 46px;
  letter-spacing: -.04em;
}

.small-good {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.spark {
  height: 40px;
  margin-top: 16px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(38,120,255,.2) 45% 52%, transparent 52%),
    linear-gradient(20deg, transparent 40%, rgba(38,120,255,.65) 41% 46%, transparent 47%);
  border-bottom: 1px solid #cdddf8;
}

.ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 12px solid #e7ecf3;
  border-top-color: var(--blue);
  border-right-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-top: 14px;
}

.insights {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.insights span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #233047;
  font-weight: 650;
}

.insights span:before {
  content: "✓";
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
}

.audiences {
  padding-top: 50px;
  padding-bottom: 70px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience {
  padding: 28px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.audience:last-child { border-right: 0; }

.audience svg {
  display: block;
  margin: 0 auto 12px;
  color: var(--blue);
}

.philosophy {
  background:
    radial-gradient(circle at 84% 50%, rgba(38,120,255,.3), transparent 22%),
    linear-gradient(105deg, #020915, #061a36);
  color: white;
  position: relative;
  overflow: hidden;
}

.philosophy .container {
  position: relative;
  z-index: 2;
}

.philosophy h2 {
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.08;
  max-width: 720px;
  margin: 0 0 22px;
}

.philosophy p {
  color: rgba(255,255,255,.78);
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
}

.footer {
  background: #061326;
  color: white;
  padding: 54px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, .8fr);
  gap: 34px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.72);
}

.footer a,
.footer p {
  display: block;
  color: rgba(255,255,255,.72);
  margin: 9px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 34px;
  padding-top: 20px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

@media (max-width: 780px) {
  .container { width: calc(100% - 40px); }
  .header { padding: 26px 0; }
  .nav { display: none; }
  .mobile-menu { display: flex; }
  .logo { font-size: 23px; letter-spacing: 8px; }
  .hero {
    min-height: 650px;
    align-items: flex-start;
    padding-top: 112px;
  }
  .hero-art {
    right: -340px;
    top: 185px;
    width: 720px;
    height: 460px;
    opacity: .82;
  }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 16px; line-height: 1.55; }
  .cta-row { flex-direction: column; width: 220px; }
  .button { width: 100%; justify-content: space-between; padding: 0 22px; }
  .section { padding: 54px 0; }
  .cards-3 { grid-template-columns: 1fr; border-radius: 0; border-left: 0; border-right: 0; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 4px; display: grid; grid-template-columns: 78px 1fr; gap: 18px; }
  .card:last-child { border-bottom: 0; }
  .icon { margin: 0; width: 62px; height: 62px; }
  .card h3 { font-size: 20px; margin-bottom: 8px; }
  .platform-grid { grid-template-columns: 1fr; gap: 24px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 135px; }
  .insights { display: grid; gap: 14px; }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .audience:nth-child(3) { border-right: 0; }
  .audience { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 470px) {
  .hero h1 { font-size: 42px; }
  .hero-content { padding-top: 22px; }
  .eyebrow { font-size: 12px; }
  .dashboard { padding: 14px; margin-left: -6px; margin-right: -6px; }
  .big { font-size: 36px; }
  .dash-grid { gap: 10px; }
  .metric { padding: 14px; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience:nth-child(3) { border-right: 1px solid var(--line); }
  .audience:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
