:root {
  color-scheme: dark;
  --bg: #060710;
  --ink: #f2eae0;
  --accent: #2f7dff;
  --soft: rgba(242, 234, 224, 0.88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.splash {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--bg);
  background-image: url("assets/difera-splash-bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 72% center;
}

.splash__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6, 7, 16, 0.76) 0%,
      rgba(6, 7, 16, 0.42) 32%,
      rgba(6, 7, 16, 0.14) 58%,
      rgba(6, 7, 16, 0.03) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 7, 16, 0.04) 0%,
      rgba(6, 7, 16, 0.14) 100%
    );
}

.splash__content {
  width: min(920px, calc(100vw - 140px));
  padding-top: clamp(48px, 6.4vh, 86px);
  padding-bottom: 48px;
  margin-left: clamp(44px, 4.8vw, 96px);
}

.splash__logo {
  display: block;
  width: clamp(360px, 20vw, 620px);
  height: auto;
  margin: 0 0 clamp(34px, 5vh, 56px);
}

.splash__eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: clamp(12px, 0.72vw, 16px);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.25;
  text-transform: uppercase;
}

.splash__title {
  margin: 0;
  max-width: 860px;
  color: var(--ink);
  font-size: clamp(62px, 5.3vw, 124px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.93;
  text-wrap: balance;
}

.splash__title span {
  color: var(--accent);
}

.splash__rule {
  width: 48px;
  height: 2px;
  margin: 30px 0 24px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(47, 125, 255, 0.28);
}

.splash__copy {
  margin: 0;
  max-width: 480px;
  color: var(--soft);
  font-size: clamp(20px, 1.1vw, 27px);
  font-weight: 400;
  line-height: 1.42;
}

/* Laptop / smaller desktop */
@media (max-width: 1200px) {
  .splash {
    background-position: 76% center;
  }

  .splash__content {
    width: min(680px, calc(100vw - 88px));
    margin-left: 40px;
    padding-top: 48px;
  }

  .splash__logo {
    width: clamp(260px, 26vw, 380px);
    margin-bottom: 30px;
  }

  .splash__title {
    max-width: 620px;
    font-size: clamp(46px, 5.3vw, 70px);
    line-height: 0.98;
  }

  .splash__copy {
    font-size: clamp(17px, 1.5vw, 21px);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .splash {
    background-position: 81% center;
  }

  .splash__shade {
    background:
      linear-gradient(
        90deg,
        rgba(6, 7, 16, 0.84) 0%,
        rgba(6, 7, 16, 0.58) 46%,
        rgba(6, 7, 16, 0.22) 76%,
        rgba(6, 7, 16, 0.06) 100%
      ),
      linear-gradient(
        180deg,
        rgba(6, 7, 16, 0.05) 0%,
        rgba(6, 7, 16, 0.18) 100%
      );
  }

  .splash__content {
    width: min(560px, calc(100vw - 56px));
    margin-left: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .splash__logo {
    width: clamp(210px, 32vw, 300px);
    margin-bottom: 26px;
  }

  .splash__eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .splash__title {
    max-width: 520px;
    font-size: clamp(38px, 7.2vw, 58px);
    line-height: 1;
  }

  .splash__rule {
    width: 36px;
    margin: 22px 0 18px;
  }

  .splash__copy {
    max-width: 360px;
    font-size: 16px;
    line-height: 1.4;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .splash {
    min-height: 100dvh;
    background-size: auto 100%;
    background-position: 80% bottom;
  }

  .splash__shade {
    background:
      linear-gradient(
        90deg,
        rgba(6, 7, 16, 0.78) 0%,
        rgba(6, 7, 16, 0.52) 42%,
        rgba(6, 7, 16, 0.16) 72%,
        rgba(6, 7, 16, 0.06) 100%
      ),
      linear-gradient(
        180deg,
        rgba(6, 7, 16, 0.06) 0%,
        rgba(6, 7, 16, 0.06) 58%,
        rgba(6, 7, 16, 0.30) 100%
      );
  }

  .splash__content {
    width: calc(100vw - 36px);
    margin-left: 18px;
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .splash__logo {
    width: min(72vw, 300px);
    margin-bottom: 24px;
  }

  .splash__eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: 0.18em;
    line-height: 1.3;
  }

  .splash__title {
    max-width: 290px;
    font-size: clamp(30px, 10.4vw, 42px);
    letter-spacing: -0.05em;
    line-height: 1.01;
  }

  .splash__rule {
    width: 32px;
    margin: 18px 0 18px;
  }

  .splash__copy {
    max-width: 250px;
    font-size: 15px;
    line-height: 1.42;
  }
}

/* Narrow mobile */
@media (max-width: 420px) {
  .splash {
    background-position: 82% bottom;
  }

  .splash__content {
    width: calc(100vw - 28px);
    margin-left: 14px;
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .splash__logo {
    width: min(76vw, 280px);
    margin-bottom: 20px;
  }

  .splash__eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .splash__title {
    max-width: 270px;
    font-size: clamp(28px, 10.6vw, 38px);
  }

  .splash__copy {
    max-width: 220px;
    font-size: 14px;
  }
}

/* Short displays */
@media (max-height: 620px) and (min-width: 561px) {
  .splash__content {
    padding-top: 28px;
  }

  .splash__logo {
    margin-bottom: 20px;
  }

  .splash__rule {
    margin-top: 18px;
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* Large desktop / 2K */
@media (min-width: 1600px) {
  .splash {
    background-position: 74% center;
  }

  .splash__content {
    width: min(1320px, calc(100vw - 180px));
    margin-left: clamp(70px, 4.8vw, 132px);
    padding-top: clamp(50px, 5.8vh, 86px);
  }

  .splash__logo {
    width: clamp(700px, 34vw, 960px);
    margin-bottom: clamp(34px, 3.8vh, 54px);
  }

  .splash__eyebrow {
    margin-left: 12px;
    margin-bottom: 18px;
    font-size: clamp(14px, 0.72vw, 18px);
    letter-spacing: 0.20em;
  }

  .splash__title {
    max-width: 1260px;
    margin-left: 12px;
    font-size: clamp(82px, 4.85vw, 128px);
    line-height: 0.94;
  }

  .splash__title span {
    white-space: nowrap;
  }

  .splash__rule {
    width: 56px;
    margin: 30px 0 26px 12px;
  }

  .splash__copy {
    max-width: 620px;
    margin-left: 12px;
    font-size: clamp(24px, 1.02vw, 31px);
    line-height: 1.42;
  }
}

/* Desktop con poca altura */
@media (min-width: 1201px) and (max-height: 850px) {
  .splash__content {
    padding-top: 30px;
  }

  .splash__logo {
    width: clamp(520px, 28vw, 760px);
    margin-bottom: 26px;
  }

  .splash__eyebrow {
    margin-bottom: 13px;
  }

  .splash__title {
    font-size: clamp(70px, 4.5vw, 106px);
    line-height: 0.95;
  }

  .splash__rule {
    margin-top: 21px;
    margin-bottom: 18px;
  }

  .splash__copy {
    font-size: clamp(20px, 1vw, 26px);
  }
}

