:root {
  --bg-0: #040912;
  --bg-1: #08172a;
  --bg-2: #102544;
  --panel-0: rgba(7, 22, 43, 0.84);
  --panel-1: rgba(11, 31, 62, 0.8);
  --panel-2: rgba(13, 40, 78, 0.78);
  --text-0: #e9f6ff;
  --text-1: #b7d8ec;
  --text-2: #89abc4;
  --line: rgba(110, 188, 255, 0.24);
  --line-strong: rgba(67, 223, 255, 0.38);
  --accent-cyan: #43dfff;
  --accent-mint: #1de9b6;
  --accent-amber: #ffb75e;
  --accent-red: #ff7c84;
  --ok: #3ee7ad;
  --danger: #ff7f85;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-lg: 0 24px 54px rgba(1, 7, 20, 0.56);
  --shadow-neon: 0 0 0 1px rgba(67, 223, 255, 0.24), 0 0 24px rgba(67, 223, 255, 0.18);
  --font-ui: "Space Grotesk", "Chakra Petch", sans-serif;
  --font-ar: "Cairo", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  --mx: 50%;
  --my: 50%;
  color: var(--text-0);
  font-family: var(--font-ui);
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, rgba(29, 233, 182, 0.2), transparent 35%),
    radial-gradient(circle at 86% 4%, rgba(67, 223, 255, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 44%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body[data-lang="ar"] {
  font-family: var(--font-ar);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(127, 196, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 196, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, black 44%, transparent 100%);
  animation: gridDrift 15s linear infinite;
}

body::after {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(67, 223, 255, 0.2), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(67, 223, 255, 0.06) 50%, transparent 100%);
  opacity: 0.32;
  animation: sweep 8s linear infinite;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 14, 31, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(83, 180, 255, 0.18);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 223, 255, 0.92), transparent);
  animation: navScan 4.2s linear infinite;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 178px;
  max-width: 38vw;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(67, 223, 255, 0.24));
  animation: logoPulse 4s ease-in-out infinite;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.navlinks a,
.mobile-nav a,
.footer-links a {
  text-decoration: none;
}

.navlinks a {
  color: var(--text-1);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--text-0);
  background: rgba(21, 56, 109, 0.55);
  border-color: rgba(67, 223, 255, 0.34);
  box-shadow: 0 0 16px rgba(67, 223, 255, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(9, 26, 52, 0.72);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 8px 13px;
  cursor: pointer;
}

.lang-switch button.active {
  color: var(--text-0);
  background: linear-gradient(90deg, rgba(29, 233, 182, 0.2), rgba(67, 223, 255, 0.34));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text-0);
  background: rgba(10, 27, 54, 0.88);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 11px 0 15px;
  border-top: 1px solid rgba(88, 171, 246, 0.2);
}

.mobile-nav a {
  display: block;
  color: var(--text-1);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 0;
}

.mobile-nav a.active {
  color: var(--accent-mint);
}

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  padding: 11px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #06223a;
  background: linear-gradient(100deg, var(--accent-mint), var(--accent-cyan));
  box-shadow: 0 10px 24px rgba(29, 233, 182, 0.26);
}

.btn-secondary {
  color: var(--text-0);
  border-color: var(--line-strong);
  background: rgba(12, 35, 70, 0.84);
}

.btn-ghost {
  color: var(--text-1);
  border-color: rgba(116, 191, 255, 0.28);
  background: rgba(7, 22, 45, 0.66);
}

main {
  padding-bottom: 28px;
}

.hero {
  padding: 84px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

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

.media-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(92, 172, 235, 0.3);
  background: rgba(10, 28, 58, 0.78);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(110, 188, 255, 0.3);
  margin-bottom: 10px;
  background: rgba(8, 22, 43, 0.8);
}

.media-card p {
  font-size: 0.88rem;
}

.hero-card,
.card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(106, 190, 255, 0.26);
  background: linear-gradient(168deg, var(--panel-1), var(--panel-0));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-card {
  padding: 30px;
}

.card {
  padding: 18px;
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(67, 223, 255, 0.44);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
}

.hero-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: -42% auto auto -26%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(67, 223, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-card::after,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(120deg, transparent, rgba(67, 223, 255, 0.26), transparent) border-box;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-card:hover::after,
.card:hover::after {
  opacity: 1;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.16;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

p {
  margin: 0;
  color: var(--text-1);
  line-height: 1.64;
}

.hero-copy {
  margin: 16px 0 22px;
  max-width: 64ch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(67, 223, 255, 0.34);
  background: rgba(18, 53, 103, 0.55);
  color: var(--accent-cyan);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  animation: pulseTag 3.3s ease-in-out infinite;
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #e5fdff, var(--accent-cyan));
  box-shadow: 0 0 10px rgba(67, 223, 255, 0.7);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge-row span,
.chip-band span,
.chip-list li {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(95, 175, 242, 0.32);
  background: rgba(10, 29, 59, 0.76);
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 11px;
}

.console-card {
  min-height: 100%;
  display: grid;
  gap: 14px;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.console-chip {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d5fff5;
  border-radius: 999px;
  border: 1px solid rgba(29, 233, 182, 0.38);
  background: rgba(29, 233, 182, 0.14);
  padding: 5px 10px;
}

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

.signal-box {
  border-radius: 12px;
  border: 1px solid rgba(67, 223, 255, 0.24);
  background: rgba(8, 26, 54, 0.74);
  padding: 11px;
}

.signal-box strong {
  display: block;
  font-size: 1.1rem;
  color: #dcfcff;
}

.signal-box span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.8rem;
}

.feed-list {
  display: grid;
  gap: 8px;
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(89, 170, 235, 0.24);
  background: rgba(7, 21, 44, 0.68);
  padding: 10px;
  font-size: 0.85rem;
}

.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  animation: blink 1.8s ease-in-out infinite;
}

.feed-item.ok .feed-dot {
  color: var(--ok);
}

.feed-item.warn .feed-dot {
  color: var(--accent-amber);
}

.feed-item.danger .feed-dot {
  color: var(--danger);
}

.feed-item code {
  color: #d5f2ff;
  font-size: 0.78rem;
}

.stat-grid,
.metric-strip,
.kpi-strip {
  display: grid;
  gap: 10px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.stat {
  border-radius: 12px;
  border: 1px solid rgba(92, 172, 235, 0.26);
  background: rgba(9, 27, 55, 0.8);
  padding: 12px;
}

.stat strong {
  display: block;
  font-size: 1.22rem;
  color: #deffff;
}

.stat span {
  color: var(--text-2);
  font-size: 0.8rem;
}

.section {
  padding: 44px 0;
}

.section-emphasis {
  position: relative;
}

.section-emphasis::before {
  content: "";
  position: absolute;
  inset: 14px 0;
  background: linear-gradient(90deg, rgba(29, 233, 182, 0.08), rgba(67, 223, 255, 0.08));
  pointer-events: none;
}

.section-emphasis > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 18px;
  max-width: 75ch;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

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

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

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

.tile,
.highlight,
.timeline-item,
.track,
.matrix-box {
  border-radius: 12px;
  border: 1px solid rgba(92, 172, 235, 0.25);
  background: rgba(8, 24, 52, 0.76);
}

.tile,
.highlight,
.track,
.matrix-box {
  padding: 14px;
}

.tile h3,
.highlight h3,
.track h3,
.timeline-item h3 {
  color: #dff4ff;
}

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

.highlight:hover {
  border-color: rgba(67, 223, 255, 0.5);
  transform: translateY(-3px);
}

.highlight-stack,
.timeline,
.track-list,
.matrix-list,
.chip-list {
  display: grid;
  gap: 9px;
}

.matrix-list {
  margin: 10px 0 0;
  padding-inline-start: 18px;
}

.chip-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.timeline-item {
  padding: 14px;
  border-left: 4px solid var(--accent-cyan);
}

.timeline {
  margin-top: 8px;
}

[dir="rtl"] .timeline-item {
  border-left: 1px solid rgba(92, 172, 235, 0.25);
  border-right: 4px solid var(--accent-cyan);
}

.track-list {
  margin-top: 10px;
}

.track-list div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
  font-size: 0.9rem;
}

.track-list div::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(67, 223, 255, 0.66);
}

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

.track {
  background: linear-gradient(165deg, rgba(11, 34, 70, 0.9), rgba(7, 22, 45, 0.86));
}

.track .ribbon,
.ribbon {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(67, 223, 255, 0.4);
  background: rgba(67, 223, 255, 0.15);
  color: #d5f7ff;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.ribbon.warn {
  border-color: rgba(255, 183, 94, 0.5);
  background: rgba(255, 183, 94, 0.16);
  color: #ffe5be;
}

.ribbon.good {
  border-color: rgba(29, 233, 182, 0.5);
  background: rgba(29, 233, 182, 0.15);
  color: #dbfff4;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: rgba(9, 24, 51, 0.84);
  border: 1px solid rgba(96, 177, 245, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.compare th,
.compare td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(103, 179, 241, 0.16);
  text-align: start;
  vertical-align: top;
  color: var(--text-1);
  font-size: 0.88rem;
}

.compare th {
  font-size: 0.79rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e2f6ff;
  background: rgba(14, 42, 82, 0.95);
}

.check {
  color: var(--ok);
  font-weight: 700;
}

.cross {
  color: var(--danger);
  font-weight: 700;
}

.accent-card {
  border-color: rgba(255, 183, 94, 0.38);
  background: linear-gradient(165deg, rgba(47, 34, 17, 0.68), rgba(11, 28, 53, 0.86));
}

.accent-card .metric-strip > div {
  border-color: rgba(255, 183, 94, 0.46);
}

.metric-strip,
.kpi-strip {
  margin-top: 12px;
}

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

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

.metric-strip > div,
.kpi-strip > div {
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(92, 172, 235, 0.3);
  background: rgba(11, 29, 58, 0.84);
  padding: 11px;
}

.metric-strip strong,
.kpi-strip strong {
  display: block;
  color: #defaff;
  font-size: 1.02rem;
}

.metric-strip span,
.kpi-strip span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.79rem;
}

.command-panel {
  border-radius: 12px;
  border: 1px solid rgba(67, 223, 255, 0.24);
  background: rgba(7, 20, 44, 0.72);
  padding: 12px;
}

.command-panel pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-x: auto;
  color: #cbe8f8;
  font-size: 0.77rem;
  line-height: 1.6;
}

.flow-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-step {
  border-radius: 12px;
  border: 1px solid rgba(92, 172, 235, 0.24);
  background: rgba(7, 22, 48, 0.72);
  padding: 12px;
  position: relative;
}

.flow-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(67, 223, 255, 0.4);
  color: #dbf8ff;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.88rem;
}

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

.value-card {
  border-radius: 14px;
  border: 1px solid rgba(92, 172, 235, 0.24);
  background: rgba(8, 23, 49, 0.8);
  padding: 15px;
}

.value-card h3 {
  margin-bottom: 7px;
}

.matrix-box {
  background: linear-gradient(160deg, rgba(10, 31, 64, 0.86), rgba(7, 22, 45, 0.8));
}

.matrix-list {
  margin-top: 6px;
}

.matrix-list li {
  color: var(--text-1);
  margin-inline-start: 18px;
  margin-bottom: 7px;
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
}

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

[dir="rtl"] .input-grid {
  direction: rtl;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(92, 172, 235, 0.34);
  border-radius: 10px;
  background: rgba(8, 23, 49, 0.86);
  color: var(--text-0);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 11px;
  pointer-events: auto;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(67, 223, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(67, 223, 255, 0.14);
}

button.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.inline-visual {
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(110, 188, 255, 0.3);
}

.contact-toast {
  display: none;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(29, 233, 182, 0.44);
  background: rgba(29, 233, 182, 0.18);
  color: #ddfff4;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 12px;
}

.contact-toast.show {
  display: block;
}

.contact-toast.error {
  border-color: rgba(255, 124, 132, 0.5);
  background: rgba(255, 124, 132, 0.16);
  color: #ffdce0;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-cyan));
  box-shadow: 0 0 16px rgba(67, 223, 255, 0.7);
  z-index: 80;
}

footer {
  margin-top: 26px;
  border-top: 1px solid rgba(104, 185, 246, 0.16);
  padding: 30px 0 40px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.87rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes gridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-34px, -34px, 0);
  }
}

@keyframes navScan {
  0% {
    opacity: 0.2;
    transform: translateX(-34%);
  }
  50% {
    opacity: 0.95;
  }
  100% {
    opacity: 0.2;
    transform: translateX(34%);
  }
}

@keyframes pulseTag {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(67, 223, 255, 0);
  }
  50% {
    box-shadow: 0 0 16px rgba(67, 223, 255, 0.3);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.48;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(67, 223, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(67, 223, 255, 0.34));
  }
}

@keyframes sweep {
  0% {
    transform: translateY(-14%);
  }
  100% {
    transform: translateY(14%);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .media-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .dual-track,
  .flow-grid,
  .value-grid,
  .form-wrap {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navlinks {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }

  .mobile-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(97, 176, 242, 0.18);
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-nav.open {
    display: block;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(1180px, 94vw);
  }

  .hero,
  .section {
    padding: 30px 0;
  }

  .topbar-inner {
    padding: 10px 0;
    gap: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-switch button {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-card,
  .card {
    padding: 16px;
  }

  .metric-strip,
  .stat-grid,
  .input-grid,
  .command-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 152px;
  }

  .hero-copy {
    margin: 14px 0 18px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

  .badge-row span,
  .chip-band span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .feed-item {
    grid-template-columns: auto 1fr;
  }

  .feed-item code {
    grid-column: 1 / -1;
    padding-inline-start: 18px;
  }

  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .compare {
    min-width: 640px;
  }

  .compare th,
  .compare td {
    font-size: 0.8rem;
    padding: 10px 11px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .footer-links a {
    padding: 4px 0;
  }

  h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.35rem);
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 138px;
  }

  .hero-card,
  .card {
    padding: 14px;
  }

  .lang-switch {
    transform: scale(0.96);
    transform-origin: right center;
  }
}

body.menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
