:root {
  --black: #000000;
  --deep: #050705;
  --panel: rgba(7, 16, 10, 0.68);
  --panel-strong: rgba(6, 18, 10, 0.82);
  --green: #00ff41;
  --green-soft: rgba(0, 255, 65, 0.16);
  --red: #ff3131;
  --red-soft: rgba(255, 49, 49, 0.16);
  --text: #f4fff7;
  --muted: #9db7a4;
  --line: rgba(0, 255, 65, 0.24);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 255, 65, 0.11), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(255, 49, 49, 0.08), transparent 32%),
    linear-gradient(140deg, var(--black), #050605 42%, #0a0a0a);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Tahoma, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/logo.png?v=2") center / min(42vw, 460px) no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  pointer-events: none;
  z-index: -3;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.nav {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 18px rgba(0, 255, 65, 0.55));
}

.brand-text {
  display: grid;
  gap: 0;
  min-width: 0;
}

.brand-name {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-sub {
  color: var(--green);
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(0, 255, 65, 0.08);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
}

.lang-switch {
  width: 58px;
  height: 42px;
  border: 1px solid rgba(0, 255, 65, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 255, 65, 0.12), rgba(255, 49, 49, 0.08)),
    rgba(0, 0, 0, 0.48);
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 0 26px rgba(0, 255, 65, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.lang-switch:hover {
  color: var(--red);
  border-color: rgba(255, 49, 49, 0.72);
  transform: translateY(-2px);
}

.page-main {
  min-height: calc(100vh - 250px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: center;
  padding: 84px 0 110px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

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

.hero-title {
  margin-bottom: 22px;
  max-width: 880px;
  font-size: clamp(3.2rem, 9vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(0, 255, 65, 0.22);
}

.hero-copy,
.section-copy,
.legal-intro {
  max-width: 730px;
  color: var(--muted);
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.glow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(0, 255, 65, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.26), rgba(0, 255, 65, 0.08));
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 0 32px rgba(0, 255, 65, 0.2), inset 0 0 18px rgba(0, 255, 65, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.glow-button:hover {
  border-color: var(--red);
  box-shadow: 0 0 40px rgba(255, 49, 49, 0.22), inset 0 0 18px rgba(255, 49, 49, 0.08);
  transform: translateY(-3px);
}

.glass-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 34%),
    var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(0, 255, 65, 0.12), transparent);
  transform: translateX(-120%);
  transition: transform 650ms ease;
  pointer-events: none;
}

.glass-card:hover::before {
  transform: translateX(120%);
}

.hero-panel {
  padding: 28px;
}

.hero-panel h2 {
  margin-bottom: 14px;
  font-size: 1.36rem;
}

.signal-list,
.legal-list,
.model-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li,
.legal-list li,
.model-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--muted);
}

.signal-list li::before,
.legal-list li::before,
.model-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-title {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 22px;
  align-items: stretch;
}

.content-card {
  padding: 30px;
}

.content-card h2,
.content-card h3 {
  margin-bottom: 14px;
}

.projects-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.contact-card {
  min-height: 320px;
  padding: 26px;
  transition: transform 200ms ease, border-color 200ms ease;
  transform-style: preserve-3d;
}

.project-card:hover,
.contact-card:hover {
  border-color: rgba(255, 49, 49, 0.62);
}

.project-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 255, 65, 0.45);
  border-radius: var(--radius);
  background: rgba(0, 255, 65, 0.11);
  color: var(--green);
  font-weight: 900;
  font-size: 1.65rem;
  box-shadow: inset 0 0 22px rgba(0, 255, 65, 0.14), 0 0 28px rgba(0, 255, 65, 0.14);
  animation: float 5.5s ease-in-out infinite;
  user-select: none;
}

.project-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.project-card:nth-child(2) .project-mark {
  animation-delay: 0.8s;
}

.project-card:nth-child(3) .project-mark {
  animation-delay: 1.5s;
}

.project-name {
  margin-bottom: 4px;
  font-size: 1.5rem;
}

.project-arabic {
  color: var(--green);
  font-weight: 800;
}

.project-card p {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 49, 49, 0.52);
  border-radius: var(--radius);
  color: var(--red);
  background: var(--red-soft);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.contact-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
  background: var(--green-soft);
  font-weight: 900;
}

.contact-card p {
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.secondary-button,
.copy-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0, 255, 65, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.secondary-button:hover,
.copy-button:hover {
  color: var(--red);
  border-color: rgba(255, 49, 49, 0.7);
  transform: translateY(-2px);
}

.form-card {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(0, 255, 65, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.44);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(0, 255, 65, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 255, 65, 0.08);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.form-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 28px;
  margin-top: 14px;
  font-weight: 800;
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-ok {
  color: var(--green);
}

.verification-wrap {
  max-width: 1080px;
}

.desktop-lock {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 30px;
  max-width: none;
}

.desktop-lock p,
.verification-note {
  color: var(--muted);
}

.mobile-verification-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
}

.verification-info-stack {
  display: grid;
  gap: 0;
}

.verification-info-stack > .glass-card:not(:last-child) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.verification-info-stack > .glass-card + .glass-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: -1px;
}

.verification-form-grid {
  grid-template-columns: 1fr;
}

.consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  padding: 12px;
  border: 1px solid rgba(0, 255, 65, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--green);
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
}

.phone-row select {
  width: 100%;
  border: 1px solid rgba(0, 255, 65, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.44);
  color: var(--text);
  padding: 13px 12px;
  outline: none;
}

.verification-code-button {
  width: 100%;
}

.verification-result-card {
  text-align: start;
}

.result-orb {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 255, 65, 0.55);
  border-radius: 50%;
  background: rgba(0, 255, 65, 0.12);
  color: var(--green);
  font-weight: 900;
  box-shadow: 0 0 38px rgba(0, 255, 65, 0.22), inset 0 0 22px rgba(0, 255, 65, 0.12);
}

.result-orb[data-state="declined"] {
  border-color: rgba(255, 49, 49, 0.72);
  background: rgba(255, 49, 49, 0.13);
  color: var(--red);
  box-shadow: 0 0 38px rgba(255, 49, 49, 0.2), inset 0 0 22px rgba(255, 49, 49, 0.12);
}

.result-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
}

.result-meta strong {
  color: var(--green);
  overflow-wrap: anywhere;
}

.admin-create-form {
  margin-bottom: 24px;
}

.admin-logout {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.admin-grid {
  display: grid;
  gap: 24px;
}

.admin-panel {
  padding: 24px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(0, 255, 65, 0.12);
  border-radius: var(--radius);
}

.admin-search {
  width: 100%;
  margin: 0 0 14px;
  border: 1px solid rgba(0, 255, 65, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.44);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.16);
  text-align: start;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #07100a;
  color: var(--green);
  font-weight: 900;
}

.admin-table code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions form {
  margin: 0;
}

.renew-form {
  display: inline-grid;
  grid-template-columns: 72px 82px auto;
  gap: 8px;
  align-items: center;
}

.renew-form input,
.renew-form select {
  min-height: 42px;
  border: 1px solid rgba(0, 255, 65, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.44);
  color: var(--text);
  padding: 0 8px;
}

.danger-button {
  border-color: rgba(255, 49, 49, 0.7);
  color: var(--red);
}

.admin-status {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  white-space: nowrap;
}

.status-active {
  color: var(--green);
  background: var(--green-soft);
}

.status-paused {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.status-expired {
  color: var(--red);
  border-color: rgba(255, 49, 49, 0.45);
  background: var(--red-soft);
}

.legal-wrap {
  max-width: 850px;
}

.legal-card {
  padding: 34px;
}

.legal-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  color: var(--green);
  font-size: 1.24rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(16px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

[dir="rtl"] body {
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

[dir="rtl"] .brand,
[dir="rtl"] .footer-brand,
[dir="rtl"] .card-actions,
[dir="rtl"] .button-row {
  direction: rtl;
}

[dir="rtl"] .nav-actions {
  justify-content: flex-start;
}

[dir="rtl"] .kicker::before {
  order: 2;
}

[dir="rtl"] input,
[dir="rtl"] textarea {
  text-align: right;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 28px, 760px);
  }

  .nav {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 14px 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  [dir="rtl"] .nav-links {
    justify-content: flex-end;
  }

  .hero-grid,
  .split-grid,
  .mobile-verification-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 64px 0 84px;
  }

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

@media (max-width: 640px) {
  .brand-sub {
    display: none;
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 5.6rem);
  }

  .metric-strip,
  .contact-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .glow-button {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }
}
