/* Push Realm marketing site — shared design system */

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

:root {
  color-scheme: dark;

  /* Brand — Push Realm pink → blue */
  --brand-pink: #e879f9;
  --brand-blue: #5eb9f0;
  --brand-accent: #c4b5fd;
  --brand-gradient: linear-gradient(135deg, #e879f9 0%, #5eb9f0 100%);
  --brand-gradient-soft: linear-gradient(
    135deg,
    rgba(232, 121, 249, 0.14),
    rgba(94, 185, 240, 0.14)
  );

  /* Surfaces */
  --bg: #05070a;
  --bg-elevated: #0b0f17;
  --bg-card: #151923;
  --bg-card-hover: #181a25;
  --border: #2b303b;
  --border-strong: #3a3f4d;
  --border-hover: #4a4560;
  --fg: #e5e9f0;
  --fg-secondary: #cbd5f5;
  --fg-muted: #9ca3af;
  --link: #7dd3fc;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
  --shadow-brand: 0 8px 24px -8px rgba(232, 121, 249, 0.35);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

a {
  color: var(--link);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: rgba(232, 121, 249, 0.35);
  color: var(--fg);
}

/* Layout */
.container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Announcement bar */
.announce-bar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 3rem 0.65rem 1.25rem;
  background: var(--brand-gradient-soft);
  border-bottom: 1px solid rgba(232, 121, 249, 0.25);
  font-size: 0.9rem;
  color: var(--fg-secondary);
  text-align: center;
}

.announce-bar[hidden] {
  display: none;
}

.announce-bar a {
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 150ms, color 150ms;
}

.announce-bar a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.announce-bar-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-muted);
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--r-xs);
  transition: color 150ms, border-color 150ms, background 150ms;
}

.announce-bar-close:hover {
  color: var(--fg);
  border-color: var(--border);
  background: var(--bg-card);
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  text-decoration: none;
  line-height: 1;
}

.brand:hover {
  color: var(--fg);
}

.brand-icon {
  display: block;
  height: 28px;
  width: 28px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.brand-wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.brand-wordmark-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav-links a:not(.btn) {
  color: var(--fg-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms;
}

.site-nav-links a:not(.btn):hover {
  color: var(--fg);
}

.site-nav-links .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 720px) {
  .site-nav-inner {
    padding: 0.75rem 1rem;
  }
  .site-nav-links {
    gap: 0.5rem;
  }
  .site-nav-links a:not(.btn) {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    var(--shadow-brand);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 30px -8px rgba(232, 121, 249, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  color: var(--fg);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-secondary);
}

.btn-ghost:hover {
  color: var(--fg);
  background: var(--bg-card);
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  text-align: center;
  overflow: hidden;
}

.hero-halo {
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(72rem, 120vw);
  height: 36rem;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(232, 121, 249, 0.2), transparent 60%),
    radial-gradient(ellipse 30% 40% at 30% 60%, rgba(94, 185, 240, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: clamp(3.75rem, 7vw, 5.25rem);
  height: auto;
  margin: 0 auto 1rem;
  border-radius: var(--r-lg);
}

.hero-wordmark {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-strapline {
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 24ch;
  margin: 0 auto 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-secondary);
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-kicker {
  color: var(--brand-pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 880px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color 200ms;
}

.feature:hover {
  border-color: var(--border-hover);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--brand-gradient-soft);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--fg-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.step-num {
  display: inline-block;
  color: var(--brand-pink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--brand-gradient-soft);
  border-radius: var(--r-xs);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--fg-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* Showcase / screenshots */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

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

.showcase-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

.showcase-label {
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.screenshot-frame {
  max-width: 52rem;
  margin: 2rem auto 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* Code */
code,
pre,
.mono {
  font-family:
    'JetBrains Mono',
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}

.inline-code {
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--fg);
}

.code-block {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.code-block pre {
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  margin: 0;
}

.code-block .copy-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.4rem 0.8rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  color: var(--fg-secondary);
  cursor: pointer;
  transition: color 150ms, border-color 150ms, background 150ms;
}

.code-block .copy-btn:hover {
  color: var(--fg);
  border-color: var(--border-hover);
}

.code-block .copy-btn.copied {
  color: #ffffff;
  border-color: transparent;
  background: var(--brand-gradient);
}

/* CTA card */
.cta-section {
  padding: 4rem 0 6rem;
}

.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(232, 121, 249, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 70% at 50% 100%, rgba(94, 185, 240, 0.12), transparent 60%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.cta-sub {
  color: var(--fg-secondary);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Enterprise highlight card */
.enterprise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.enterprise-card p {
  color: var(--fg-secondary);
  margin-bottom: 1rem;
}

/* Page header (inner pages) */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.page-header .updated,
.page-header .page-sub {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* Prose (legal, docs) */
.prose {
  padding: 3rem 0 4rem;
}

.prose section,
.prose .prose-block {
  margin-bottom: 2.5rem;
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--fg-secondary);
}

.prose li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: var(--fg);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-elevated);
  color: var(--fg);
  font-weight: 600;
}

/* Forms */
.form-page {
  padding: 3rem 0 5rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  max-width: 36rem;
  margin: 0 auto;
}

.form-card-wide {
  max-width: 44rem;
}

.form-intro {
  color: var(--fg-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group label .required {
  color: var(--brand-pink);
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 150ms;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.consent-line {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.consent-line a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-card button[type='submit'] {
  width: 100%;
  margin-top: 0.25rem;
}

.form-card button[type='submit']:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.privacy-fields {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(232, 121, 249, 0.2);
  border-radius: var(--r-md);
  background: rgba(232, 121, 249, 0.04);
}

.privacy-fields.visible {
  display: block;
}

.privacy-fields .privacy-label {
  color: var(--brand-pink);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Toast */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--fg);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  max-width: 400px;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-success {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.toast.toast-error {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
}

.site-footer-brand .brand-icon {
  height: 22px;
  width: 22px;
}

.site-footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--fg-muted);
  font-size: 0.875rem;
  transition: color 150ms;
}

.site-footer-links a:hover {
  color: var(--fg);
}

.site-footer-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 2rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .cta-card {
    padding: 3rem 1.5rem;
  }
  .announce-bar {
    padding-right: 2.75rem;
    font-size: 0.85rem;
  }
}
