/* 3Plexis redesign (2026-10) — standalone stylesheet.
   Independent of the shared /styles.css; nothing here affects other pages. */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #5b6678;
  --line: #e3e8ef;
  --bg-light: #f6f8fb;
  --white: #ffffff;

  --navy-950: #050a14;
  --navy-900: #0a1222;
  --navy-800: #111c33;
  --navy-line: rgba(148, 178, 214, 0.14);
  --on-dark: #e8eef7;
  --on-dark-muted: #94a3b8;

  --teal: #2cc5c9;
  --teal-strong: #14a8ae;
  --teal-soft: rgba(44, 197, 201, 0.12);
  --cyan-glow: rgba(56, 189, 248, 0.16);

  --radius: 14px;
  --radius-lg: 20px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.12; }
h1 span, h2 span { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }

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

/* ---------- Logo tile ----------
   The approved PNG carries its own grey metallic backdrop. Rather than hide
   it, present it as a framed plaque: a frosted glass bezel around the image,
   with a soft inner edge so the grey reads as deliberate. */
.logo-tile {
  display: inline-block;
  flex: none;
  padding: 4px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 24px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.logo-tile img {
  width: 100%;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 0 18px rgba(0,0,0,0.25) inset;
}
.logo-tile--hero { width: 128px; padding: 6px; border-radius: 22px; }
.logo-tile--hero img { border-radius: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 20, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--navy-line);
}
.nav-inner { display: flex; align-items: center; justify-content: flex-end; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--on-dark); }
.nav-links .nav-login {
  color: var(--on-dark);
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
}
.nav-links .nav-login:hover { border-color: var(--teal); }

/* ---------- Eyebrows ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-strong);
}
.eyebrow--light { color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--on-dark);
  padding: 96px 0 112px;
}
.hero-glow {
  position: absolute; inset: -38% auto auto 50%; transform: translateX(-50%);
  width: 820px; height: 820px;
  background: radial-gradient(closest-side, var(--cyan-glow), transparent 70%);
  pointer-events: none;
}
.hero-stack { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Brand lockup: logo centered, single tagline line beneath it */
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 64px; }
.brand-tagline { font-size: 1.15rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.04em; color: #dbe4ef; white-space: nowrap; }

.hero-copy { max-width: 860px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 650; color: #fff; text-wrap: balance; }
.hero-lede { margin: 28px auto 0; max-width: 680px; font-size: 1.12rem; line-height: 1.7; color: var(--on-dark-muted); text-wrap: pretty; }

/* Illustrative app window */
.hero-visual { position: relative; width: 100%; max-width: 820px; margin-top: 80px; text-align: left; }
.app {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17,28,51,0.92), rgba(10,18,34,0.92));
  border: 1px solid var(--navy-line);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03) inset;
  overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--navy-line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(148,163,184,0.25); }
.app-title { margin-left: 10px; font-size: 0.78rem; color: var(--on-dark-muted); letter-spacing: 0.02em; }
.app-body { display: grid; grid-template-columns: 132px 1fr; min-height: 320px; }
.app-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid var(--navy-line); }
.side-item { font-size: 0.8rem; color: var(--on-dark-muted); padding: 7px 10px; border-radius: 7px; }
.side-item.is-active { color: #fff; background: rgba(255,255,255,0.05); }
.app-main { padding: 20px 22px 22px; }
.app-label { margin: 0 0 12px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.app-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 13px 14px; margin-bottom: 10px;
  border: 1px solid var(--navy-line); border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.row-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--teal-soft); position: relative; }
.row-icon::after { content: ""; position: absolute; inset: 9px; border-radius: 3px; border: 1.5px solid var(--teal); }
.row-icon--sales::after { border-radius: 50%; }
.row-icon--inbox::after { inset: 10px 8px; border-radius: 2px; }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-title { font-size: 0.88rem; font-weight: 600; color: #fff; }
.row-meta { font-size: 0.76rem; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: 0.7rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; color: var(--on-dark-muted); border: 1px solid var(--navy-line); white-space: nowrap; }
.pill--teal { color: var(--teal); border-color: rgba(44,197,201,0.35); background: var(--teal-soft); }
.app-flow { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--navy-line); }
.flow-step { font-size: 0.72rem; color: var(--on-dark-muted); white-space: nowrap; }
.flow-step.is-done { color: #cbd5e1; }
.flow-step.is-current { color: var(--teal); font-weight: 600; }
.flow-line { flex: 1; height: 1px; background: var(--navy-line); min-width: 10px; }
.visual-caption { margin: 12px 4px 0; font-size: 0.72rem; color: rgba(148,163,184,0.6); text-align: right; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; color: var(--ink); }
.section-light { background: var(--bg-light); }
.section-white { background: var(--white); }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 650; }
.h2-muted { color: var(--muted); font-weight: 500; margin-top: 6px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
#problem .section-head { max-width: 900px; }
#problem h2 { text-wrap: balance; }
.section-lede { margin: 22px 0 0; font-size: 1.06rem; color: var(--muted); line-height: 1.7; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain {
  padding: 28px 28px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  border-top: 2px solid var(--teal);
}
.pain h3 { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.pain p { margin: 14px 0 0; font-size: 1rem; line-height: 1.65; color: #334155; }

/* ---------- System visual ---------- */
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.platform-copy .section-lede + .section-lede { margin-top: 16px; }
.system { width: 100%; max-width: 500px; justify-self: center; }
.system-agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.system-agent {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 12px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
  font-size: 0.86rem; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.3;
}
.system-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: 40px; }
.system-links span { justify-self: center; width: 1px; height: 100%; background: linear-gradient(180deg, var(--teal), var(--line)); }
.system-core {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 50% 100%, var(--navy-800), var(--navy-950));
  box-shadow: 0 20px 50px rgba(10,18,34,0.22), 0 0 0 6px rgba(44,197,201,0.07);
}
.system-core::before {
  content: ""; position: absolute; left: 16.67%; right: 16.67%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.system-core-name { font-size: 1.15rem; font-weight: 650; color: #fff; letter-spacing: -0.01em; }
.system-core-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px 34px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 18px 40px rgba(15,23,42,0.08); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--navy-900); position: relative; }
.card-icon::after { content: ""; position: absolute; inset: 13px; border-radius: 4px; border: 2px solid var(--teal); }
.card-icon--sales::after { border-radius: 50%; }
.card-icon--inbox::after { inset: 14px 11px; border-radius: 3px; }
.card h3 { font-size: 1.3rem; font-weight: 650; }
.card-alias { display: block; margin-top: 6px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.card-lead { margin: 16px 0 12px; font-weight: 500; color: var(--ink-2); line-height: 1.6; }
.card p { margin-bottom: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.card .card-lead { font-size: 1rem; }

/* ---------- Final ---------- */
.final {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--on-dark);
  padding: 128px 0;
  text-align: center;
}
.hero-glow--final { inset: auto auto -40% 50%; transform: translateX(-50%); width: 900px; height: 700px; }
.final-inner { position: relative; }
.final h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 650; color: #fff; max-width: 820px; margin: 0 auto; text-wrap: balance; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid var(--navy-line); color: var(--on-dark-muted); }
.footer-inner { display: flex; align-items: center; justify-content: center; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.footer-note { margin: 0; font-size: 0.82rem; }
/* WEB-1: public footer links */
.footer-inner { flex-wrap: wrap; gap: 12px 28px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 0.82rem; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--on-dark); text-decoration: underline; }
/* WEB-1: Gmail read-only disclosure on the Response Control card */
.card .card-note { margin-top: 14px; font-size: 0.86rem; line-height: 1.6; }
.card-note code { font-size: 0.82em; padding: 1px 5px; border-radius: 4px; background: var(--teal-soft); color: var(--ink-2); }
.card-note a { color: var(--teal-strong); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero-visual { max-width: 700px; margin-top: 64px; }
  .pains { gap: 16px; }
  .pain { padding: 24px 22px 26px; }
  .platform-grid { gap: 48px; }
  .card { padding: 28px 24px 30px; }
}

/* ---------- Small tablet / large phone ---------- */
@media (max-width: 820px) {
  .nav-inner { justify-content: center; }
  .nav-links { gap: 22px; }
  .pains { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .platform-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 56px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.82rem; }
  .nav-links .nav-login { padding: 6px 12px; }
  .hero { padding: 56px 0 72px; }
  .brand-lockup { gap: 16px; margin-bottom: 44px; }
  .logo-tile--hero { width: 96px; padding: 5px; border-radius: 18px; }
  .logo-tile--hero img { border-radius: 13px; }
  .brand-tagline { font-size: 1rem; }
  .hero-lede { font-size: 1rem; }
  .hero-visual { margin-top: 52px; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 16px; }
  .app-row { grid-template-columns: auto 1fr; }
  .app-row .pill { grid-column: 2; justify-self: start; }
  .section { padding: 68px 0; }
  .system-agents, .system-links { gap: 8px; }
  .system-agent { padding: 16px 6px 14px; gap: 10px; font-size: 0.76rem; }
  .system-agent .card-icon { width: 34px; height: 34px; }
  .system-agent .card-icon::after { inset: 10px; }
  .system-agent .card-icon--inbox::after { inset: 11px 8px; }
  .card { padding: 26px 22px 28px; }
  .final { padding: 88px 0; }
  .footer-inner { padding-top: 24px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
