:root {
  color-scheme: dark;
  --bg: #030816;
  --bg-soft: #081227;
  --surface: rgba(7, 18, 39, 0.76);
  --surface-strong: rgba(10, 26, 54, 0.92);
  --line: rgba(95, 172, 255, 0.18);
  --line-strong: rgba(95, 172, 255, 0.34);
  --text: #f3f8ff;
  --muted: #99aed8;
  --brand: #58c7ff;
  --accent: #7a5cff;
  --success: #58d8b4;
  --danger: #ff8d9b;
  --container: min(1180px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  direction: rtl;
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(88, 199, 255, 0.22), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(122, 92, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #020611, #061022 35%, #030816 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(92, 142, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 142, 255, 0.06) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at center, black 46%, transparent 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

.orb--one {
  inset: 80px auto auto -80px;
  width: 260px;
  height: 260px;
  background: rgba(88, 199, 255, 0.16);
}

.orb--two {
  inset: auto -90px 60px auto;
  width: 320px;
  height: 320px;
  background: rgba(122, 92, 255, 0.18);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0.6px, transparent 0.7px),
    radial-gradient(circle at 80% 30%, #fff 0.7px, transparent 0.8px),
    radial-gradient(circle at 60% 80%, #fff 0.55px, transparent 0.65px);
  background-size: 140px 140px;
}

.frame {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.wordmark__glyph {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(88, 199, 255, 0.95), rgba(122, 92, 255, 0.9));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    0 12px 40px rgba(88, 199, 255, 0.25);
  position: relative;
}

.wordmark__glyph::before,
.wordmark__glyph::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
}

.wordmark__glyph::before {
  inset: 0.7rem 1.15rem;
  border-radius: 999px;
}

.wordmark__glyph::after {
  inset: 1.15rem 0.7rem;
  border-radius: 999px;
}

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

.nav a {
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

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

.hero-grid {
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1.4rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
  line-height: 1.08;
}

.hero-text,
.stack-card p,
.timeline__item p,
.contact-copy p,
.field span,
.form-note,
.form-message {
  color: var(--muted);
  line-height: 1.85;
}

.hero-text {
  margin: 1.4rem 0 0;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  border: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--brand), #2d7cff, var(--accent));
  color: #04101e;
  box-shadow: 0 18px 48px rgba(88, 199, 255, 0.24);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.button--block {
  width: 100%;
}

.signal-strip {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.signal-strip li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
}

.control-panel,
.stack-card,
.timeline__item,
.lead-form {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.control-panel {
  padding: 1.2rem;
  border-radius: 26px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px rgba(88, 216, 180, 0.65);
}

.panel-grid {
  display: grid;
  gap: 0.85rem;
}

.panel-grid article {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(4, 11, 24, 0.52);
  border: 1px solid rgba(95, 172, 255, 0.14);
}

.panel-grid strong,
.stack-card span,
.timeline__item strong {
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand);
}

.panel-grid p,
.stack-card h3,
.timeline__item h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.2rem;
}

.panel-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.stack,
.protocol {
  padding: 4rem 0 0;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

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

.stack-card {
  padding: 1.3rem;
  border-radius: 22px;
}

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

.timeline__item {
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-block {
  padding: 4rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
  gap: 1.2rem;
  align-items: start;
}

.lead-form {
  padding: 1.3rem;
  border-radius: 26px;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(3, 12, 28, 0.88);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input::placeholder {
  color: #6f87b4;
}

.field input:focus {
  outline: none;
  border-color: rgba(88, 199, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(88, 199, 255, 0.12);
}

.form-note,
.form-message {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.form-message.is-success {
  color: var(--success);
}

.form-message.is-error {
  color: var(--danger);
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .stack-grid,
  .contact-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid {
    padding-top: 2rem;
  }

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

  .hero-copy h1,
  .section-head h2,
  .contact-copy h2 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }
}
