/* REMVX — أسود / أبيض + لمسة أحمر دم خفيفة (تصميم v2)
 * Copyright (c) 2026 REMVX. Proprietary — unauthorized copying prohibited.
 */

:root {
  --bg: #000000;
  --bg-elevated: #050505;
  --surface: #0a0a0a;
  --border: #222222;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #ededed;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --white: #ffffff;
  --red: #b91c1c;
  --red-deep: #7f1d1d;
  --red-bright: #ef4444;
  --red-glow: rgba(220, 38, 38, 0.32);
  --red-border: rgba(239, 68, 68, 0.35);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.text-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Hero */
.hero-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% -18%, var(--red-glow), transparent 55%),
    var(--bg);
}

.hero-grid-bg {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 50% at 50% 0%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 0%, black 10%, transparent 75%);
}

.text-gradient {
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lockup {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: min(92vw, 420px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.3));
}

@media (min-width: 1024px) {
  .hero-lockup {
    height: 4.25rem;
    max-width: 480px;
    object-position: left center;
  }
}

/* Platform spotlight (PDQ-style split, REMVX brand) */
.platform-spotlight {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 40% at 12% 20%, rgba(220, 38, 38, 0.12), transparent 55%),
    var(--bg);
}

.platform-spotlight .reveal.is-visible,
.platform-spotlight .platform-showcase,
.platform-spotlight .platform-spotlight__copy {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.platform-spotlight__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .platform-spotlight__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3.5rem 4rem;
  }
}

.platform-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.platform-eyebrow__marks {
  display: inline-grid;
  grid-template-columns: repeat(2, 7px);
  gap: 4px;
}

.platform-eyebrow__marks i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--muted-2);
}

.platform-eyebrow__marks i:first-child {
  background: var(--red-bright);
}

.platform-eyebrow__marks i:nth-child(3) {
  background: var(--white);
}

.platform-eyebrow__marks i:last-child {
  background: var(--red-deep);
}

.platform-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.platform-feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.platform-feature-list__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.platform-showcase__frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #050505;
  padding: 0.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 80px -24px rgba(0, 0, 0, 0.85),
    0 0 40px -8px var(--red-glow);
  overflow: hidden;
}

.platform-showcase__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Infinite logo / stack marquee (platform page) */
.logo-marquee {
  position: relative;
  padding: 0.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  isolation: isolate;
}

.logo-marquee__label {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 0 1rem;
}

.logo-marquee__viewport {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.logo-marquee__fade {
  position: absolute;
  top: 0;
  z-index: 10;
  height: 100%;
  width: 5rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .logo-marquee__fade {
    width: 8rem;
  }
}

@media (min-width: 1024px) {
  .logo-marquee__fade {
    width: 12rem;
  }
}

.logo-marquee__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg-elevated), transparent);
}

.logo-marquee__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg-elevated), transparent);
}

.logo-marquee__track {
  width: 100%;
  overflow: hidden;
}

.logo-marquee__content {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 45s linear infinite;
  will-change: transform;
}

.logo-marquee__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  margin: 0 1rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #d4d4d8;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .logo-marquee {
    padding: 0.75rem 0 2.5rem;
  }

  .marquee-item {
    height: 3.5rem;
    margin: 0 1.75rem;
    padding: 0 1.75rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .marquee-item {
    height: 4rem;
    margin: 0 2.25rem;
    padding: 0 2rem;
  }
}

@keyframes logo-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__content {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .logo-marquee__list:last-child {
    display: none;
  }

  .logo-marquee__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .marquee-item {
    margin: 0;
  }

  .logo-marquee__fade {
    display: none;
  }
}

/* About page */
.about-why__grid,
.about-governance__grid,
.about-flow__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-why__grid {
    grid-template-columns: 1fr minmax(280px, 400px);
  }
  .about-governance__grid {
    grid-template-columns: 1fr minmax(260px, 360px);
  }
  .about-flow__grid {
    grid-template-columns: minmax(280px, 400px) 1fr;
  }
}

.about-principles__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about-principles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ops-diagram {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.ops-diagram__svg {
  display: block;
  width: 100%;
  height: auto;
}

.about-status__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.about-status__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  font-size: 0.9375rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.about-status__list li:last-child {
  border-bottom: none;
}

.about-status__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--red-bright);
}

.about-governance__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.about-governance__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-governance__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--red-deep);
  flex-shrink: 0;
}

.about-presence__card {
  max-width: 22rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.about-presence__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.about-presence__links a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  width: fit-content;
  transition: color 0.15s, border-color 0.15s;
}

.about-presence__links a:hover {
  color: var(--red-bright);
  border-color: var(--red-border);
}

.security-pillars .icon-box {
  margin-bottom: 0;
}

.about-hero__logo {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: min(100%, 380px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.22));
}

@media (min-width: 640px) {
  .about-hero__logo {
    height: 4rem;
    max-width: 420px;
  }
}

/* Trial / contact request */
.trial-page .trial-main {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 5rem;
}

@media (min-width: 1024px) {
  .trial-page .trial-main {
    padding: 7.5rem 0 6rem;
  }
}

.trial-main__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
}

.trial-main__glow--a {
  top: -8rem;
  right: -6rem;
  width: 32rem;
  height: 32rem;
  background: rgba(127, 29, 29, 0.35);
}

.trial-main__glow--b {
  bottom: -10rem;
  left: -8rem;
  width: 28rem;
  height: 28rem;
  background: rgba(220, 38, 38, 0.12);
}

.trial-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .trial-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    gap: 4rem 5rem;
  }
}

.trial-intro__logo {
  display: block;
  height: 3rem;
  width: auto;
  max-width: min(100%, 320px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.22));
}

@media (min-width: 640px) {
  .trial-intro__logo {
    height: 3.5rem;
    max-width: 360px;
  }
}

.trial-intro__eyebrow {
  margin-top: 1.75rem;
}

.trial-intro__title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.trial-intro__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
}

.trial-highlights {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.trial-highlights li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.trial-highlights li:last-child {
  border-bottom: none;
}

.trial-highlights__n {
  flex-shrink: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  padding-top: 0.15rem;
}

.trial-steps {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 55%);
}

.trial-steps__heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.trial-steps__list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.trial-steps__list strong {
  color: var(--white);
  font-weight: 600;
}

.trial-intro__note {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted-2);
}

.trial-intro__link {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--red-border);
  transition: color 0.15s, border-color 0.15s;
}

.trial-intro__link:hover {
  color: var(--red-bright);
  border-color: var(--red-bright);
}

.trial-form-shell {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(239, 68, 68, 0.45),
    rgba(255, 255, 255, 0.12) 40%,
    rgba(39, 39, 42, 0.8) 70%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 64px -28px rgba(0, 0, 0, 0.85),
    0 0 48px -16px var(--red-glow);
}

.trial-form-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(220, 38, 38, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.trial-form-head,
.trial-form {
  position: relative;
  z-index: 1;
  background: #030303;
  border-radius: 15px;
}

.trial-form-head {
  padding: 1.75rem 1.75rem 0;
}

.trial-form {
  padding: 1.25rem 1.75rem 1.75rem;
}

@media (min-width: 640px) {
  .trial-form-head {
    padding: 2rem 2rem 0;
  }
  .trial-form {
    padding: 1.5rem 2rem 2rem;
  }
}

.trial-form-head__label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.trial-form-head__title {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.trial-form-head__sub {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.trial-form__row {
  display: grid;
  gap: 1rem;
}

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

@media (min-width: 480px) {
  .trial-form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.trial-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.trial-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #d4d4d8;
}

.trial-field__req {
  color: var(--red-bright);
}

.trial-field input,
.trial-field select,
.trial-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
  color: var(--white);
  font-size: 0.9375rem;
  padding: 0.7rem 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.trial-field input::placeholder,
.trial-field textarea::placeholder {
  color: #52525b;
}

.trial-field select {
  color: var(--muted);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.trial-field select:valid,
.trial-field select:focus {
  color: var(--white);
}

.trial-field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.trial-field input:hover,
.trial-field select:hover,
.trial-field textarea:hover {
  border-color: #333;
}

.trial-field input:focus,
.trial-field select:focus,
.trial-field textarea:focus {
  outline: none;
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.35);
  background: #050505;
}

.trial-form .trial-field + .trial-field,
.trial-form .trial-form__row + .trial-field,
.trial-form .trial-form__row + .trial-form__row {
  margin-top: 1rem;
}

.trial-form__submit {
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.trial-form__fine {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-2);
}

.trial-page .trial-intro.reveal,
.trial-page .trial-form-wrap.reveal {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Browser */
.browser {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 32px 80px -28px rgba(0, 0, 0, 0.9),
    0 0 48px -12px var(--red-glow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.browser-url {
  flex: 1;
  margin-left: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #111;
  border: 1px solid var(--border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}

/* Nav */
.site-banner {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-banner strong,
.site-banner .accent-red {
  color: var(--red-bright);
  font-weight: 600;
}

.site-banner a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.site-banner a:hover {
  color: var(--red-bright);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s;
}

main {
  position: relative;
  z-index: 1;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1rem;
}

@media (min-width: 640px) {
  .site-header__inner {
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding: 1rem 2rem;
  }
}

.site-logo {
  flex-shrink: 0;
  min-width: 0;
}

.site-logo__img {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.28));
}

.site-logo__img--lockup {
  height: 2.5rem;
  max-width: min(72vw, 280px);
}

@media (min-width: 480px) {
  .site-logo__img--lockup {
    height: 3rem;
    max-width: 320px;
  }
}

@media (min-width: 768px) {
  .site-logo__img--lockup {
    height: 3.5rem;
    max-width: 380px;
  }
}

@media (min-width: 1024px) {
  .site-logo__img--lockup {
    height: 4rem;
    max-width: 440px;
  }
}

.site-header .site-logo__img:not(.site-logo__img--lockup) {
  height: 2.75rem;
  max-width: min(50vw, 360px);
}

.site-footer__brand .site-logo__img--lockup {
  height: 3.25rem;
  max-width: min(92vw, 400px);
}

@media (min-width: 640px) {
  .site-footer__brand .site-logo__img--lockup {
    height: 4.25rem;
    max-width: 480px;
  }
}

.site-header__nav {
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .site-header__nav {
    gap: 2rem;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__menu-btn {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem;
  color: var(--muted);
}

.site-header__mobile {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
}

.site-header__mobile-nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
}

/* Subpage back control */
.page-toolbar {
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.page-toolbar__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
}

@media (min-width: 640px) {
  .page-toolbar__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .page-toolbar__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem 0.35rem 0.25rem;
  margin: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}

.page-back:hover {
  color: var(--white);
}

.page-back svg {
  flex-shrink: 0;
}

.site-has-toolbar main {
  padding-top: 2rem !important;
}

@media (min-width: 640px) {
  .site-has-toolbar main {
    padding-top: 2.5rem !important;
  }
}

/* Premium home sections */
.section-enterprise {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #050505 0%, #000 100%);
}

.enterprise-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .enterprise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .enterprise-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.enterprise-cell {
  background: #050505;
  padding: 1.75rem 1.5rem;
}

.enterprise-cell h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

.enterprise-cell p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-2);
}

.integrations-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Buttons — أبيض أساسي (Resend) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary:hover {
  background: #f4f4f5;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-outline:hover {
  background: rgba(220, 38, 38, 0.06);
  border-color: var(--red-border);
  color: var(--white);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #333;
}

.card-featured {
  background: var(--bg-elevated);
  border-color: var(--red-border);
  position: relative;
}

.card-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 50% 0%, var(--red-glow), transparent 45%);
  pointer-events: none;
  border-radius: inherit;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--white);
}

.icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2;
  flex-shrink: 0;
}

.card:hover .icon-box {
  border-color: var(--red-border);
  color: #fecaca;
  box-shadow: 0 0 20px -8px var(--red-glow);
}

.trust-pill {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.stat-chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid var(--red-border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #fecaca;
}

/* Workflow: Connect → Operate → Prove */
.workflow-section {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(220, 38, 38, 0.08), transparent 60%),
    var(--bg);
}

@media (min-width: 1024px) {
  .workflow-section {
    padding: 6rem 0;
  }
}

.workflow-section__head {
  max-width: 36rem;
}

.workflow-steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .workflow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
  }

  .workflow-steps::before {
    content: "";
    position: absolute;
    top: 3.25rem;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), var(--red-border), var(--border), transparent);
    pointer-events: none;
  }
}

.workflow-step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.4));
  transition: border-color 0.2s, box-shadow 0.2s;
}

.workflow-step:hover {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 32px -12px var(--red-glow);
}

.workflow-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.workflow-step__icon svg {
  width: 1.625rem;
  height: 1.625rem;
  stroke-width: 2;
}

.workflow-step__phase {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0;
}

.workflow-step__num {
  color: var(--muted-2);
}

.workflow-step__title {
  margin-top: 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.workflow-step__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

.price-card-popular {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 1px rgba(153, 27, 27, 0.15);
}

.accent-dot {
  background: var(--red-bright);
}

/* FAQ */
.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-panel.is-open {
  grid-template-rows: 1fr;
}

.faq-panel > div {
  overflow: hidden;
}

/* Legacy aliases */
.glass-card {
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.95), rgba(5, 5, 5, 0.9));
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.dashboard-shell {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.85);
}

.metric-bar {
  background: linear-gradient(90deg, var(--red), #7f1d1d);
  border-radius: 9999px;
}

.hover-lift {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cta-glow {
  background: radial-gradient(ellipse 70% 80% at 50% 100%, var(--red-glow), transparent 60%);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #000;
  margin-top: auto;
}

.site-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1rem 2.5rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    grid-template-columns: minmax(0, 280px) 1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-footer__tagline {
  margin-top: 1rem;
  max-width: 16rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-2);
}

.site-footer__emails {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.site-footer__emails a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__emails a:hover {
  color: var(--white);
}

.site-footer__brand .social-links {
  margin-top: 1.25rem;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

@media (min-width: 480px) {
  .site-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer__heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

.site-footer__col ul {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.site-footer__col li + li {
  margin-top: 0.55rem;
}

.site-footer__col a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__col a:hover {
  color: var(--white);
}

.site-footer__bar {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #52525b;
}

@media (min-width: 640px) {
  .site-footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__bar {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-footer__bar-start {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer__trust {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #52525b;
  max-width: 28rem;
}

.site-footer__ip {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #3f3f46;
  max-width: 28rem;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.social-links--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.social-link:hover {
  color: var(--white);
  border-color: var(--red-border);
  background: rgba(220, 38, 38, 0.08);
}

.social-links--lg .social-link {
  width: 2.75rem;
  height: 2.75rem;
}

.social-links--lg .social-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

#mobile-menu:not(.hidden) {
  animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle film grain — behind content, never blocks clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body[data-page="login"]::after {
  display: none;
}

/* Platform status */
.status-panel__state {
  letter-spacing: 0.02em;
}

.status-topology {
  max-width: 100%;
}

.trial-trust {
  border-left: 2px solid #222;
  padding-left: 1rem;
}

.security-contact {
  background: #050505;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hover-lift:hover {
    transform: none;
  }
}
