:root {
  --bg-base: #0a1018;
  --bg-panel: rgba(11, 19, 31, 0.54);
  --text-main: #eef3f9;
  --text-muted: #b8c4d2;
  --text-soft: #8ea2b8;
  --brand: #cf1f2d;
  --brand-deep: #8e1520;
  --line: rgba(255, 255, 255, 0.16);
  --card-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  -webkit-user-select: none;
  user-select: none;
}

body {
  font-family: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(135deg, #070d14 0%, #0d1826 45%, #0f1f2f 100%),
    var(--bg-base);
  overflow-x: hidden;
  position: relative;
}

img,
video,
a {
  -webkit-user-drag: none;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(0.9) contrast(1.05) brightness(0.55);
  pointer-events: none;
  z-index: 0;
}

.bg-image {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(207, 31, 45, 0.17), rgba(207, 31, 45, 0)),
    radial-gradient(circle at 80% 82%, rgba(100, 174, 255, 0.16), rgba(100, 174, 255, 0)),
    url("../images/bg-tech.svg") center / cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: drift 22s ease-in-out infinite alternate;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: pulse 10s ease-in-out infinite;
}

.bg-orb-left {
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  top: -10rem;
  left: -12rem;
  background: radial-gradient(circle at 32% 30%, rgba(207, 31, 45, 0.56), rgba(207, 31, 45, 0));
}

.bg-orb-right {
  width: min(44vw, 520px);
  height: min(44vw, 520px);
  right: -10rem;
  bottom: -9rem;
  background: radial-gradient(circle at 60% 60%, rgba(98, 171, 255, 0.36), rgba(98, 171, 255, 0));
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.page {
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.devtools-warning {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 18, 0.86);
  color: #e9f1fb;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 9999;
}

body.devtools-locked .page {
  filter: blur(10px);
  pointer-events: none;
}

body.devtools-locked .devtools-warning {
  display: flex;
}

.card {
  position: relative;
  width: min(920px, 100%);
  min-height: min(560px, calc(100vh - 4rem));
  border: 1px solid var(--line);
  border-radius: 28px;
  /* background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    var(--bg-panel);
  backdrop-filter: blur(14px); */
  box-shadow: var(--card-shadow);
  padding: clamp(1.4rem, 2vw, 2.5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.1rem, 2.3vw, 2.3rem);
  isolation: isolate;
  opacity: 0;
  transform: translateY(16px);
  animation: cardIn 560ms cubic-bezier(0.2, 0.78, 0.2, 1) 120ms forwards;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.03) 28%,
    rgba(97, 166, 245, 0.14) 65%,
    rgba(255, 255, 255, 0.05)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.brand-logo {
  width: min(260px, 62vw);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

.brand-caption {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8da1b7;
}

.content {
  align-self: center;
  max-width: 680px;
}

.eyebrow {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9fb5cc;
}

h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 5.6vw, 4.1rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.description {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 58ch;
  text-wrap: pretty;
}

.actions {
  margin-top: 2.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  min-width: 160px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(207, 31, 45, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.secondary-links {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.secondary-links a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.secondary-links a:hover {
  color: #d6e6f8;
  border-color: rgba(214, 230, 248, 0.55);
}

.sound-toggle {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(13, 23, 36, 0.72);
  color: #dbe8f6;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.sound-toggle:hover {
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.sound-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.sound-toggle-top {
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  backdrop-filter: blur(6px);
  z-index: 3;
}

.sound-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
}

.sound-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sound-icon-on {
  display: none;
}

.sound-toggle.is-on .sound-icon-on {
  display: inline-flex;
}

.sound-toggle.is-on .sound-icon-off {
  display: none;
}

.sound-toggle.is-on {
  background: rgba(193, 29, 42, 0.2);
  border-color: rgba(220, 80, 95, 0.72);
  color: #ffeef0;
}

.footer {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #b9c9da;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.44;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.57;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-0.7%, -0.9%, 0) scale(1.03);
  }
}

@media (max-width: 768px) {
  .page {
    padding: 1rem;
  }

  .card {
    min-height: calc(100vh - 2rem);
    border-radius: 20px;
    padding: 1.25rem;
    gap: 1.15rem;
    animation-delay: 20ms;
  }

  .actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .footer {
    font-size: 0.82rem;
  }

  .sound-toggle-top {
    top: 0.75rem;
    right: 0.75rem;
  }

  .sound-label {
    display: none;
  }
}

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

  .card {
    opacity: 1;
    transform: none;
  }

  .bg-video {
    display: none;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }
}
