:root {
  --di-red: #e60000;
  --di-red-deep: #b80000;
  --di-black: #0a0a0a;
  --di-ink: #121212;
  --di-steel: #9a9a9a;
  --di-silver: #d8d8d8;
  --di-white: #ffffff;
  --di-glass: rgba(18, 18, 18, 0.72);
  --di-line: rgba(255, 255, 255, 0.14);
  --font-display: "Comic Sans MS", "Comic Sans", cursive;
  --font-body: "Comic Sans MS", "Comic Sans", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.di-site {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--di-white);
  background: var(--di-black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.di-skip {
  position: absolute;
  left: -9999px;
}

/* ---------- Shell / Hero ---------- */
.di-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.di-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.di-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter: saturate(1.05) brightness(0.85);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.di-hero-video.is-ready {
  opacity: 1;
}

.di-hero-bg::before,
.di-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.di-hero-bg::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.di-hero-bg::after {
  background:
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(230, 0, 0, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 25%, rgba(255, 255, 255, 0.05), transparent 55%);
}

.di-shell > *:not(.di-hero-bg) {
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */
.di-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  animation: di-fade-down 0.8s ease both;
}

.di-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.di-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.di-social a:hover {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.1);
}

.di-social .ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
}

.di-social .fb {
  background: #1877f2;
  color: #fff;
}

.di-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.35rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.di-nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.di-nav-links a:hover {
  color: var(--di-white);
}

.di-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  background: linear-gradient(180deg, #ff1a1a 0%, var(--di-red) 55%, var(--di-red-deep) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(230, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.di-btn-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(230, 0, 0, 0.45);
}

.di-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--di-line);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.15rem;
}

/* ---------- Hero content ---------- */
.di-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1rem, 4vh, 3rem) clamp(1rem, 4vw, 3.5rem) 2rem;
}

.di-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: di-rise 0.9s 0.15s ease both;
}

.di-brand-logo {
  width: clamp(220px, 32vw, 400px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.di-brand-mark {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.di-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.55rem;
}

.di-wordmark span {
  color: var(--di-red);
}

.di-tagline {
  margin: 0;
  font-size: clamp(0.78rem, 1.3vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.di-tagline em {
  font-style: normal;
  color: var(--di-red);
}

.di-copy-block {
  max-width: 34rem;
  justify-self: end;
  animation: di-rise 0.9s 0.28s ease both;
}

.di-copy-block h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.di-copy-block h1 strong {
  font-weight: 800;
  color: #fff;
}

.di-copy-block p {
  margin: 0 0 1.6rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 32rem;
}

.di-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.di-play-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: #111;
}

.di-play-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.di-play-btn small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
  line-height: 1;
}

.di-play-btn strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-top: 2px;
}

/* ---------- Footer bar ---------- */
.di-footer-bar {
  margin-top: auto;
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--di-line);
  padding: 1.15rem clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: center;
  animation: di-fade-up 0.9s 0.35s ease both;
}

.di-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.di-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.di-contact-row i {
  width: 1.1rem;
  text-align: center;
  color: var(--di-red);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.di-contact-row a:hover {
  color: #fff;
  text-decoration: underline;
}

.di-app-form-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.di-android-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.di-android-badge svg {
  width: 30px;
  height: 30px;
}

.di-app-form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex: 1;
  max-width: 420px;
}

.di-mobile-field {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}

.di-mobile-field .prefix {
  padding: 0 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.di-mobile-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
}

.di-mobile-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.di-btn-app {
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #ff1a1a 0%, var(--di-red) 60%, var(--di-red-deep) 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 1.15rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.di-btn-app:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.di-flash {
  grid-column: 1 / -1;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  font-size: 0.88rem;
}

.di-flash.success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
}

.di-flash.error {
  background: rgba(230, 0, 0, 0.15);
  border: 1px solid rgba(230, 0, 0, 0.4);
  color: #fecaca;
}

.di-legal {
  text-align: center;
  padding: 0.65rem 1rem 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Inner CMS pages ---------- */
.di-shell--page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(230, 0, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(255, 255, 255, 0.05), transparent 50%),
    var(--di-ink);
}

.di-page {
  min-height: 100vh;
}

.di-nav--inner {
  border-bottom: 1px solid var(--di-line);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
}

.di-nav-links a.is-active {
  color: var(--di-white);
  font-weight: 600;
}

.di-nav-links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.15rem;
  background: var(--di-red);
  border-radius: 2px;
}

.di-page-main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 3vw, 2rem) 3rem;
}

.di-page-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  color: var(--di-white);
}

.di-page-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--di-line);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.di-page-body,
.di-page-body p,
.di-page-body li,
.di-page-body span,
.di-page-body div,
.di-page-body td,
.di-page-body th {
  color: rgba(255, 255, 255, 0.9) !important;
  background-color: transparent !important;
}

.di-page-body h1,
.di-page-body h2,
.di-page-body h3,
.di-page-body h4,
.di-page-body h5,
.di-page-body h6 {
  color: var(--di-white) !important;
  font-family: var(--font-display);
  margin: 1.5rem 0 0.75rem;
}

.di-page-body a {
  color: #ff6b6b !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.di-page-body a:hover {
  color: #ff8787 !important;
}

.di-page-body p {
  margin: 0 0 1rem;
}

.di-page-body ul,
.di-page-body ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.di-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.di-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.di-page-body table td,
.di-page-body table th {
  border: 1px solid var(--di-line);
  padding: 0.5rem 0.75rem;
}

.di-page-back {
  margin-top: 2rem;
}

.di-page-back a {
  color: #ff6b6b;
  font-weight: 600;
}

.di-shell--page .di-footer-bar {
  margin-top: auto;
}

.di-shell--page .di-legal {
  margin-top: 0;
}

@keyframes di-fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes di-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes di-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .di-hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .di-brand-block {
    align-items: center;
    text-align: center;
  }

  .di-copy-block {
    justify-self: stretch;
    text-align: center;
    max-width: none;
  }

  .di-copy-block p {
    margin-left: auto;
    margin-right: auto;
  }

  .di-footer-bar {
    grid-template-columns: 1fr;
  }

  .di-app-form-wrap {
    justify-content: stretch;
  }

  .di-app-form {
    max-width: none;
  }
}

@media (max-width: 780px) {
  .di-menu-toggle {
    display: grid;
    place-items: center;
  }

  .di-nav-links {
    display: none;
    position: absolute;
    top: 68px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid var(--di-line);
    border-radius: 10px;
    padding: 0.85rem;
    gap: 0.35rem;
    z-index: 20;
  }

  .di-nav-links.open {
    display: flex;
  }

  .di-nav-links a {
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
  }

  .di-nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .di-btn-login {
    width: 100%;
    margin-top: 0.25rem;
  }

  .di-hero-video {
    filter: saturate(1.05) brightness(0.8) blur(1px);
  }

  .di-app-form {
    flex-direction: column;
  }

  .di-btn-app {
    padding: 0.75rem 1rem;
  }
}
