@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --navy-950: #020817;
  --navy-900: #06122a;
  --navy-800: #0b1e46;
  --blue-700: #123c8c;
  --blue-500: #1e7bff;
  --cyan-300: #7ddcff;
  --white: #ffffff;
  --muted: #b8c7e6;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    linear-gradient(rgba(125, 220, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 220, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(30, 123, 255, 0.28), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(125, 220, 255, 0.16), transparent 30%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 45%, var(--navy-800));
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
  overflow-x: hidden;
  animation: gridMove 18s linear infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,0.055) 48%, transparent 62%),
    radial-gradient(circle at center, transparent 0 35%, rgba(2, 8, 23, 0.82) 100%);
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 18px;
}

.hero-card {
  width: min(980px, 100%);
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05)),
    rgba(7, 20, 48, 0.68);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(125,220,255,0.22), transparent 34%, rgba(30,123,255,0.18));
  opacity: 0.7;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.brand-pill {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #dceaff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: 0 0 22px var(--cyan-300);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, #ffffff, #b7d4ff 70%, #7ddcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  width: min(710px, 100%);
  margin: 20px auto 34px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.9;
}

.video-frame {
  width: min(810px, 100%);
  margin: 0 auto 30px;
  border-radius: 28px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)),
    rgba(2, 8, 23, 0.58);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 70px rgba(0,0,0,0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.video-toolbar {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  padding: 0 4px 12px;
  direction: ltr;
}

.video-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
}

.video-toolbar span:nth-child(1) {
  background: #ff6b6b;
}

.video-toolbar span:nth-child(2) {
  background: #ffd166;
}

.video-toolbar span:nth-child(3) {
  background: #4dd4ac;
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
}

.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 0;
  color: #d7e5ff;
  font-weight: 600;
  font-size: 15px;
}

.video-caption button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(30, 123, 255, 0.25);
  border: 1px solid rgba(125, 220, 255, 0.28);
  font-family: inherit;
  transition: 0.25s ease;
}

.video-caption button:hover {
  transform: translateY(-2px);
  background: rgba(30, 123, 255, 0.42);
}

.glass-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 210px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 17px 28px;
  color: var(--white);
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06)),
    rgba(30, 123, 255, 0.18);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255,255,255,0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(125,220,255,0.75), transparent 28%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.glass-button::after {
  content: "";
  position: absolute;
  top: -70%;
  right: -20%;
  width: 45%;
  height: 220%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  opacity: 0.55;
  transition: 0.5s ease;
}

.glass-button:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(125,220,255,0.55);
  box-shadow:
    0 22px 60px rgba(30, 123, 255, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.38);
}

.glass-button:hover::before {
  opacity: 1;
}

.glass-button:hover::after {
  right: 90%;
}

.glass-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1);
}

.glow {
  position: fixed;
  z-index: 1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.glow-one {
  top: 5%;
  right: -80px;
  background: rgba(30, 123, 255, 0.5);
}

.glow-two {
  bottom: -110px;
  left: -80px;
  background: rgba(125, 220, 255, 0.28);
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0, center, center, center;
  }
  to {
    background-position: 54px 54px, 54px 54px, center, center, center;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 12px;
  }

  .hero-card {
    border-radius: 24px;
    padding: 24px 16px;
  }

  .video-frame {
    padding: 10px;
    border-radius: 22px;
  }

  video {
    border-radius: 16px;
  }

  .video-caption {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .glass-button {
    width: 100%;
    min-width: auto;
  }
}

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