/* ============================================================
   Parley — website styles
   Brand gradient: #5eead4 (teal) → #38bdf8 (sky) → #818cf8 (indigo)
   ============================================================ */

:root {
  --bg: #0a0b0e;
  --bg-2: #0f1117;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --muted-2: #6b7382;

  --teal: #5eead4;
  --sky: #38bdf8;
  --indigo: #818cf8;
  --grad: linear-gradient(105deg, #5eead4 0%, #38bdf8 52%, #818cf8 100%);
  --grad-soft: linear-gradient(105deg, rgba(94, 234, 212, 0.16), rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.16));

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(56, 189, 248, 0.3); }

/* ---------- Ambient background ---------- */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #12151d 0%, var(--bg) 55%),
    var(--bg);
}
.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.aura--1 { width: 540px; height: 540px; top: -160px; left: -80px; background: radial-gradient(circle, rgba(94, 234, 212, 0.45), transparent 70%); animation: float1 22s ease-in-out infinite; }
.aura--2 { width: 620px; height: 620px; top: 10%; right: -180px; background: radial-gradient(circle, rgba(129, 140, 248, 0.42), transparent 70%); animation: float2 26s ease-in-out infinite; }
.aura--3 { width: 520px; height: 520px; top: 60%; left: 30%; background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 70%); animation: float1 30s ease-in-out infinite reverse; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(110% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 30%, transparent 80%);
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 50px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 30px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--primary {
  background: var(--grad);
  color: #07131a;
  font-weight: 600;
  box-shadow: 0 6px 24px -8px rgba(56, 189, 248, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(56, 189, 248, 0.7); }
.btn--ghost {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 48px);
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 14px; transition: color 0.15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(120px, 16vh, 180px) clamp(18px, 5vw, 48px) 40px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pill:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18); }
.pill__arrow { color: var(--sky); transition: transform 0.2s ease; }
.pill:hover .pill__arrow { transform: translateX(3px); }

.hero__title {
  font-size: clamp(36px, 6.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 26px auto 0;
  max-width: 14ch;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 60ch;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero__meta {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 34px 0 0;
  font-size: 13.5px; color: var(--muted);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta strong { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--me { background: var(--teal); }
.dot--live { background: var(--sky); box-shadow: 0 0 0 0 rgba(56,189,248,0.6); animation: pulse 2s infinite; }
.dot--ai { background: var(--indigo); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.55);} 70% { box-shadow: 0 0 0 7px rgba(56,189,248,0);} 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0);} }

/* ---------- Window mock ---------- */
.window {
  max-width: 940px;
  margin: 56px auto 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  box-shadow: 0 40px 120px -40px rgba(56, 189, 248, 0.35), 0 10px 40px -20px rgba(0,0,0,0.8);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.window__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.traffic { display: inline-flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4b; }
.traffic i:nth-child(1){ background:#ff5f57; } .traffic i:nth-child(2){ background:#febc2e; } .traffic i:nth-child(3){ background:#28c840; }
.window__title { font-size: 12.5px; color: var(--muted-2); font-family: var(--mono); }

/* ---------- Media slots (GIF / image placeholders) ---------- */
.media-slot {
  position: relative;
  display: grid;
  place-items: center;
  background:
    var(--grad-soft),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px);
  border: 1px dashed var(--line-2);
  margin: 0;
  overflow: hidden;
}
.media-slot--hero { aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.media-slot--wide { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.media-slot img, .media-slot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-slot__hint {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  display: grid;
  gap: 6px;
  justify-items: center;
}
.media-slot__hint svg { color: var(--sky); opacity: 0.8; margin-bottom: 4px; }
.media-slot__hint strong { color: var(--text); font-size: 15px; font-weight: 600; }
.media-slot__hint code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--sky);
  background: rgba(56,189,248,0.1);
  padding: 3px 8px;
  border-radius: 6px;
}
.media-slot__hint span { font-size: 12px; color: var(--muted-2); }

/* ---------- Positioning strip ---------- */
.strip {
  max-width: var(--maxw);
  margin: 70px auto 0;
  padding: 0 clamp(18px, 5vw, 48px);
  text-align: center;
}
.strip p { color: var(--muted-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 18px; }
.strip ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center;
}
.strip li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Providers ("Powered by") ---------- */
.providers {
  max-width: var(--maxw);
  margin: 96px auto 0;
  padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(56, 189, 248, 0.07), transparent 60%),
    var(--panel);
  text-align: center;
}
.providers__lead { font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin: 0 0 10px; color: var(--text); }
.providers__lead em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.providers__sub { color: var(--muted); font-size: 15px; max-width: 60ch; margin: 0 auto 36px; }
.providers__group { margin-top: 26px; }
.providers__label {
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px;
}
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; }
.chips li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 14.5px; font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.chips li:hover { border-color: var(--line-2); background: var(--grad-soft); transform: translateY(-2px); }
.chips .logo {
  width: 17px; height: 17px; flex: none;
  background: var(--muted);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
  transition: background 0.15s ease;
}
.chips li:hover .logo { background: var(--text); }
.chips li.more { color: var(--muted-2); font-family: var(--mono); font-size: 13px; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 130px) clamp(18px, 5vw, 48px);
}
.section--alt { max-width: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.018), transparent); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 64ch; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.025em; font-weight: 600; margin: 14px 0 0; line-height: 1.12; }
.section__head p { color: var(--muted); margin: 16px auto 0; font-size: 16px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow--sm { letter-spacing: 0.1em; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; color: var(--sky); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card em { color: var(--teal); font-style: normal; font-weight: 500; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.step__n {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 600;
}
.step h3 { margin: 14px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Feature rows (showcase) ---------- */
.feature-rows { display: grid; gap: 64px; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.feature-row--rev .feature-row__copy { order: 2; }
.feature-row--rev .media-slot { order: 1; }
.feature-row__copy h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin: 12px 0 14px; line-height: 1.15; }
.feature-row__copy > p { color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.feature-row__copy em { color: var(--teal); font-style: normal; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(56,189,248,0.4);
}
.checklist li::after {
  content: "";
  position: absolute; left: 5px; top: 8px;
  width: 6px; height: 3px;
  border-left: 1.6px solid var(--teal);
  border-bottom: 1.6px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack-card {
  padding: 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 6px;
  transition: border-color 0.2s ease;
}
.stack-card:hover { border-color: var(--line-2); }
.stack-card__k { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.stack-card__v { font-size: 15px; color: var(--text); }

/* ---------- CTA ---------- */
.cta-section { padding-bottom: clamp(90px, 14vh, 150px); }
.cta {
  position: relative;
  text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  overflow: hidden;
}
.cta__glow {
  position: absolute; inset: auto 0 -50% 0; height: 360px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(56,189,248,0.3), transparent 70%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.025em; margin: 12px 0 0; }
.cta > p { color: var(--muted); max-width: 60ch; margin: 16px auto 0; font-size: 16px; }
.codeblock {
  position: relative;
  max-width: 460px;
  margin: 30px auto 0;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
  overflow: hidden;
}
.codeblock pre { margin: 0; padding: 20px 22px; overflow-x: auto; }
.codeblock code { font-family: var(--mono); font-size: 14px; color: #cbd5e1; line-height: 1.8; }
.c-cmt { color: var(--muted-2); }
.copy {
  position: absolute; top: 10px; right: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy:hover { color: var(--text); border-color: var(--line-2); }
.copy.is-done { color: var(--teal); border-color: rgba(94,234,212,0.4); }
.mcp-note { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 30px; }
.mcp-note strong { color: var(--muted); font-weight: 600; }
/* In the MCP feature-row the codeblock is the right-hand element, not a centred block. */
.feature-row .codeblock { margin: 0; max-width: 100%; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta__note { color: var(--muted-2); font-size: 13px; margin-top: 22px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(10,11,14,0.5);
  padding: 44px clamp(18px, 5vw, 48px) 36px;
}
.footer__top {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color 0.15s ease; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  max-width: var(--maxw); margin: 24px auto 0;
  padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 13px;
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--sky); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn--ghost { display: none; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--rev .feature-row__copy { order: 0; }
  .feature-row--rev .media-slot { order: 0; }

  /* Mobile menu */
  .nav.is-open { background: rgba(10,11,14,0.95); backdrop-filter: blur(14px); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px clamp(18px, 5vw, 48px) 22px;
    background: rgba(10, 11, 14, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.8);
  }
  .nav.is-open .nav__links a { padding: 10px 0; font-size: 16px; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid, .steps, .stack-grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 14px 20px; }
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
