/* EscalateKit site styles */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #08080f;
  --bg-deep: #050508;
  --surface: rgba(18, 16, 32, 0.88);
  --surface-strong: rgba(12, 10, 24, 0.95);
  --line: rgba(129, 140, 248, 0.2);
  --line-strong: rgba(129, 140, 248, 0.35);
  --text: #eeeef2;
  --text-soft: #9d9db4;
  --text-muted: #6e6e8a;
  --accent: #6366f1;
  --accent-2: #a78bfa;
  --ring: #818cf8;
  --shadow: 0 24px 58px rgba(2, 2, 12, 0.5);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 980px;
  --font-main: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(58rem 38rem at 5% -6%, rgba(99, 102, 241, 0.18), transparent 64%),
    radial-gradient(52rem 36rem at 100% 0%, rgba(167, 139, 250, 0.14), transparent 66%),
    linear-gradient(170deg, var(--bg-deep) 8%, var(--bg) 60%, #0c0b18 100%);
  padding: 1rem 1.1rem 2.2rem;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.08;
  background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0);
  background-size: 22px 22px;
}

.site-header,
.shell,
.site-footer {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
}

.site-logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.site-logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 0.32rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.site-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(99, 102, 241, 0.1);
}

.shell {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.3vw + 0.7rem, 2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero {
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.14), transparent 42%),
    linear-gradient(205deg, rgba(167, 139, 250, 0.12), transparent 38%),
    var(--surface-strong);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.75rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.7rem, 4vw + 0.7rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.lead {
  margin-top: 0.85rem;
  font-size: clamp(1rem, 1vw + 0.9rem, 1.2rem);
  color: var(--text-soft);
  max-width: 62ch;
}

h2 {
  font-size: clamp(1.1rem, 1vw + 0.95rem, 1.45rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

p {
  color: var(--text-soft);
}

.signup-form {
  margin-top: 1.25rem;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.signup-row input[type="email"] {
  flex: 1 1 220px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.signup-row input[type="email"]::placeholder {
  color: var(--text-muted);
}

.signup-row input[type="email"]:focus {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.signup-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #f0eeff;
  border-color: rgba(99, 102, 241, 0.7);
  background: linear-gradient(110deg, #818cf8, #c084fc);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.3);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 300ms ease;
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.55), 0 0 8px rgba(167, 139, 250, 0.3);
}


.signup-row input[type="email"]:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.meta-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
}

.meta-row li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.36rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}


.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.82rem;
}

.card-label {
  margin-bottom: 0.28rem;
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.role p {
  color: var(--text-soft);
}

.legal h1 {
  max-width: none;
}

.legal h2 {
  margin-top: 1.1rem;
}

.legal ul {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}

.small-note {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

a {
  color: #a5b4fc;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #c7d2fe;
}

a:focus-visible,
.btn:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.reveal {
  animation: rise 700ms ease both;
}

.shell .reveal:nth-child(2) {
  animation-delay: 100ms;
}

.shell .reveal:nth-child(3) {
  animation-delay: 180ms;
}

.shell .reveal:nth-child(4) {
  animation-delay: 260ms;
}

.shell .reveal:nth-child(5) {
  animation-delay: 340ms;
}

.shell .reveal:nth-child(6) {
  animation-delay: 420ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0.75rem 0.8rem 1.5rem;
  }

  .site-header {
    margin-bottom: 0.8rem;
  }

  h1 {
    max-width: 100%;
  }

  .btn {
    width: 100%;
  }

  .signup-row input[type="email"] {
    width: 100%;
    flex-basis: 100%;
  }
}

/* Form success state */
.signup-success {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
}

.signup-success-title {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Before / After */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.ba-col {
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.ba-before {
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.04);
}

.ba-after {
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.06);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.08);
}

.ba-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
}

.ba-before .ba-label { color: #f87171; }
.ba-after .ba-label { color: #34d399; }

.ba-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.ba-body {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
  margin: 0;
}

.ba-field-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.65rem 0 0.2rem;
}

.ba-field {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
}

.ba-list {
  margin: 0.2rem 0 0;
  padding-left: 1.3rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* Design partner section */
.dp-panel {
  background:
    linear-gradient(145deg, rgba(167, 139, 250, 0.12), transparent 50%),
    var(--surface);
  border-color: rgba(167, 139, 250, 0.3);
}

.dp-lead {
  font-size: clamp(0.95rem, 1vw + 0.85rem, 1.1rem);
}

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

.dp-list li {
  font-size: 0.95rem;
  color: var(--text-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.dp-list li::before {
  content: "→";
  color: var(--accent-2);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }
}

/* How It Works — numbered steps */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 180px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(167, 139, 250, 0.35));
  border: 1px solid rgba(129, 140, 248, 0.6);
  color: var(--ring);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.step-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0;
}

.step-desc {
  color: var(--text-soft);
  font-size: 0.84rem;
  margin: 0;
}

.step-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  padding-top: 0.75rem;
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 700px) {
  .steps {
    flex-direction: column;
  }

  .step-arrow {
    display: none;
  }

  .step {
    flex: 1 1 100%;
  }
}

/* FAQ */
.faq-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.faq-q {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0.8rem 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: background 140ms ease;
}

.faq-q::after {
  content: "+";
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-q[aria-expanded="true"] {
  background: rgba(99, 102, 241, 0.06);
}

.faq-q[aria-expanded="true"]::after {
  content: "−";
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-a {
  padding: 0.5rem 1rem 0.9rem;
  background: rgba(0, 0, 0, 0.12);
}

.faq-a p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
}

/* Footer nav */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.4rem 0 0.1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-nav span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

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

  .btn,
  .site-nav a {
    transition: none;
  }
}
