/* ==========================================================================
   DELLABIT · Coming Soon
   Brand palette (BRAND-BOOK):
     Rouge Red  #F9356D   Amber   #FFAD6A
     Grey       #7D9095   Black   #000000   White #FFFFFF
     Signature gradient: #E90075 -> #FFB06A
   Type: Helvetica Neue (brand primary), Inter as cross-platform substitute.
   ========================================================================== */

:root {
  --black:      #000000;
  --white:      #FFFFFF;
  --rouge:      #F9356D;
  --amber:      #FFAD6A;
  --grad-from:  #E90075;
  --grad-to:    #FFB06A;
  --grey:       #7D9095;

  --ink:        #FFFFFF;
  --ink-soft:   rgba(255, 255, 255, 0.62);
  --ink-faint:  rgba(255, 255, 255, 0.38);
  --hairline:   rgba(255, 255, 255, 0.12);

  --gradient:   linear-gradient(97deg, var(--grad-from) 0%, var(--grad-to) 100%);

  --font: "Helvetica Neue", "Inter", Helvetica, Arial, system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Ambient layers
   -------------------------------------------------------------------------- */

.aurora,
.grid-veil,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb--magenta {
  width: min(78vw, 720px);
  aspect-ratio: 1;
  left: -18vw;
  top: -14vh;
  background: radial-gradient(circle at 50% 50%, rgba(233, 0, 117, 0.55), rgba(233, 0, 117, 0) 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.orb--amber {
  width: min(66vw, 620px);
  aspect-ratio: 1;
  right: -14vw;
  bottom: -20vh;
  background: radial-gradient(circle at 50% 50%, rgba(255, 176, 106, 0.34), rgba(255, 176, 106, 0) 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 7vh, 0) scale(1.14); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-8vw, -6vh, 0) scale(1); }
}

/* Faint technical grid: nods to the brand's construction-line breakdowns. */
.grid-veil {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 20%, transparent 78%);
}

.noise {
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Layout frame
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding: clamp(22px, 4vh, 40px) var(--gutter) clamp(22px, 4vh, 40px);
  max-width: 1440px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  color: var(--white);
  text-decoration: none;
}

.brand__logo {
  display: block;
  height: clamp(26px, 3.4vw, 34px);
  width: auto;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.lang__btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 4px 2px;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.25s ease;
}

.lang__btn:hover { color: var(--ink-soft); }

.lang__btn.is-active {
  color: var(--white);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lang__sep { color: rgba(255, 255, 255, 0.2); }

/* --------------------------------------------------------------------------
   Stage
   -------------------------------------------------------------------------- */

.stage {
  align-self: center;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

/* Container for the headline: its font-size is sized against THIS box (cqw),
   not the viewport. A viewport-based size overflows here, and because the
   accent line is painted with background-clip:text, overflowing glyphs are
   not just clipped - they vanish. Long words like "RESPONSABILIDAD." made
   that visible. */
.stage__copy { container-type: inline-size; }

/* The isotype as hero art: the brand book's central asset. */
.stage__mark {
  display: none;
  justify-self: center;
}

.mark {
  display: block;
  width: clamp(180px, 22vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(233, 0, 117, 0.35));
  animation: mark-float 9s ease-in-out infinite alternate;
}

@keyframes mark-float {
  from { transform: translateY(-10px) rotate(-1.5deg); }
  to   { transform: translateY(10px)  rotate(1.5deg); }
}

/* Two-column composition once there is room for it. */
@media (min-width: 960px) {
  .stage {
    grid-template-columns: minmax(0, 1.15fr) auto;
  }
  .stage__mark { display: block; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 3vh, 30px);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: clamp(10px, 1.1vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rouge);
  box-shadow: 0 0 0 0 rgba(249, 53, 109, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249, 53, 109, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(249, 53, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 53, 109, 0); }
}

.headline {
  margin: 0 0 clamp(18px, 2.6vh, 26px);
  /* Fallback for browsers without container queries. */
  font-size: clamp(1.95rem, 7vw, 6.25rem);
  /* Preferred: scale to the copy column so the longest word always fits. */
  font-size: clamp(1.95rem, 10.5cqw, 6.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  /* Last-resort guard: break rather than overflow (and disappear). */
  overflow-wrap: break-word;
}

.headline__line { display: block; }

.headline__line--accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  margin: 0 0 clamp(26px, 4vh, 38px);
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.6vw, 1.175rem);
  line-height: 1.62;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Capability chips */
.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(28px, 4.5vh, 42px);
  padding: 0;
  list-style: none;
}

.capabilities li {
  padding: 8px 15px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: clamp(11.5px, 1.2vw, 13px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.capabilities li:hover {
  border-color: rgba(249, 53, 109, 0.55);
  color: var(--white);
}

/* Actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-size: clamp(13.5px, 1.4vw, 15px);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.3s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.btn--primary {
  padding: 14px 24px;
  color: var(--white);
  background: var(--gradient);
  box-shadow: 0 10px 34px -12px rgba(233, 0, 117, 0.85);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px -12px rgba(233, 0, 117, 0.95);
}

.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  padding: 14px 4px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.btn--ghost:hover {
  color: var(--white);
  border-bottom-color: var(--rouge);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footerbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: clamp(11px, 1.1vw, 12.5px);
  color: var(--ink-faint);
}

.footerbar__loc { color: var(--grey); }

/* --------------------------------------------------------------------------
   Focus & motion
   -------------------------------------------------------------------------- */

:where(a, button):focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Small screens: give the stage room to breathe. */
@media (max-width: 560px) {
  .frame { gap: 26px; }
  .actions { align-items: stretch; flex-direction: column; }
  /* Buttons are flex containers, so centre via justify-content, not text-align. */
  .btn--primary,
  .btn--ghost { justify-content: center; }
  .btn--ghost { padding: 6px 4px; }
  .footerbar { flex-direction: column; align-items: flex-start; }
}

/* Very short viewports (landscape phones): compress vertical rhythm. */
@media (max-height: 620px) and (min-width: 561px) {
  .headline { font-size: clamp(2.2rem, 5.6vw, 3.4rem); }
  .eyebrow { margin-bottom: 14px; }
  .lede { margin-bottom: 20px; }
  .capabilities { margin-bottom: 22px; }
}
