/* ======================================================
   hello.css
   Page /hello — QR carte de visite KodennArt®
   ====================================================== */

/* ------------------------------------------------------
   Base page
------------------------------------------------------ */

.hello-page {
  min-height: 100vh;
  background: #050505;
  color: var(--color-white);
  overflow-x: hidden;
}

.hello-page p {
  color: rgba(255, 255, 255, 0.72);
}

.hello-main {
  min-height: 100vh;
}

/* ------------------------------------------------------
   Hero
------------------------------------------------------ */

.hello-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 5vw, 64px);
  isolation: isolate;
}

.hello-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 34%, rgba(240, 90, 40, 0.22), transparent 34%),
    radial-gradient(circle at 72% 45%, rgba(253, 195, 0, 0.10), transparent 28%),
    radial-gradient(circle at 25% 75%, rgba(0, 190, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #050505 0%, #090909 55%, #020202 100%);
}

.hello-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
}

/* ------------------------------------------------------
   Layout
------------------------------------------------------ */

.hello-shell {
  width: min(1120px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* ------------------------------------------------------
   Header / brand
------------------------------------------------------ */

.hello-header {
  text-align: center;
  z-index: 2;
}

.hello-brand {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(48px, 13vw, 82px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.16);
}

.hello-brand span {
  color: var(--color-brand-gold);
}

.hello-brand sup {
  margin-left: 0.08em;
  font-size: 0.38em;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--color-white);
}

.hello-kicker {
  max-width: none;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.hello-divider {
  display: block;
  width: 82px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--color-brand-gold);
  box-shadow: 0 0 18px rgba(253, 195, 0, 0.55);
}

/* ------------------------------------------------------
   Robot visual
------------------------------------------------------ */

.hello-visual {
  position: relative;
  width: min(760px, 112vw);
  margin-inline: auto;
  margin-top: -12px;
}

.hello-orb {
  position: absolute;
  width: min(58vw, 460px);
  aspect-ratio: 1;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(240, 90, 40, 0.7);
  border-radius: 50%;
  box-shadow:
    0 0 36px rgba(240, 90, 40, 0.45),
    inset 0 0 36px rgba(240, 90, 40, 0.18);
  opacity: 0.8;
  z-index: -1;
}

.hello-robot {
  width: 100%;
  height: auto;
  margin-inline: auto;
  filter:
    drop-shadow(0 0 22px rgba(240, 90, 40, 0.22))
    drop-shadow(0 0 34px rgba(0, 190, 255, 0.12));
  transform-origin: center;
}

/* ------------------------------------------------------
   Content
------------------------------------------------------ */

.hello-content {
  max-width: 760px;
  margin-inline: auto;
}

.hello-title {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(42px, 10vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hello-title span {
  display: inline-block;
  transform: translateY(-0.04em);
}

.hello-text {
  max-width: 42ch;
  margin: 22px auto 0;
  font-size: clamp(18px, 3.2vw, 24px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

.hello-text-white {
  color: var(--color-white);
}

.hello-text-gold {
  color: var(--color-brand-gold);
}

/* ------------------------------------------------------
   CTA
------------------------------------------------------ */

.hello-actions {
  width: 100%;
  margin-top: clamp(28px, 5vw, 42px);
  display: grid;
  gap: 14px;
}

.hello-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition:
    transform 0.16s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.hello-button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.hello-button:active {
  transform: translateY(0);
}

.hello-button:focus-visible {
  outline: 2px solid rgba(240, 90, 40, 0.7);
  outline-offset: 4px;
}

.hello-button--primary {
  background: linear-gradient(135deg, var(--color-brand-orange-500), var(--color-brand-gold));
  color: #050505;
  box-shadow: 0 18px 42px rgba(240, 90, 40, 0.28);
}

.hello-button--secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-white);
  border-color: rgba(253, 195, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.hello-button--secondary:hover {
  background: rgba(253, 195, 0, 0.08);
  border-color: rgba(253, 195, 0, 0.85);
}

/* ------------------------------------------------------
   Motion delayed for Lighthouse
------------------------------------------------------ */

.hello-header,
.hello-visual,
.hello-content,
.hello-robot,
.hello-orb {
  animation: none;
}

.hello-motion-ready .hello-header {
  animation: helloFadeUp 0.7s ease both;
}

.hello-motion-ready .hello-visual {
  animation: helloFadeUp 0.8s ease 0.1s both;
}

.hello-motion-ready .hello-content {
  animation: helloFadeUp 0.8s ease 0.22s both;
}

.hello-motion-ready .hello-robot {
  animation: helloFloat 5.5s ease-in-out infinite;
}

.hello-motion-ready .hello-orb {
  animation: helloPulse 5s ease-in-out infinite;
}

/* ------------------------------------------------------
   Desktop
------------------------------------------------------ */

@media (min-width: 860px) {
  .hello-shell {
    gap: clamp(24px, 5vw, 56px);
  }

  .hello-visual {
    width: min(880px, 86vw);
    margin-top: -20px;
  }

  .hello-actions {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-width: 720px;
    margin-inline: auto;
  }
}

/* ------------------------------------------------------
   Mobile
------------------------------------------------------ */

@media (max-width: 760px) {
  .hello-hero {
    min-height: 100svh;
    padding: 34px 18px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hello-shell {
    width: 100%;
    max-width: 390px;
    gap: 12px;
  }

  .hello-brand {
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1;
  }

  .hello-kicker {
    max-width: 31ch;
    margin-top: 10px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.12em;
  }

  .hello-divider {
    width: 72px;
    height: 2px;
    margin-top: 12px;
  }

  .hello-visual {
    width: min(88vw, 350px);
    margin-top: -4px;
    margin-bottom: -10px;
  }

  .hello-orb {
    width: min(78vw, 330px);
    top: 47%;
  }

  .hello-title {
    font-size: clamp(38px, 11.5vw, 52px);
    line-height: 1;
    letter-spacing: -0.06em;
  }

  .hello-text {
    max-width: 30ch;
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.42;
  }

  .hello-actions {
    max-width: 340px;
    margin-top: 20px;
    gap: 12px;
  }

  .hello-button {
    min-height: 54px;
    padding-inline: 18px;
    font-size: 15px;
  }
}

/* ------------------------------------------------------
   Keyframes
------------------------------------------------------ */

@keyframes helloFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes helloFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.01);
  }
}

@keyframes helloPulse {
  0%, 100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.98);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* ------------------------------------------------------
   Reduced motion
------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .hello-header,
  .hello-visual,
  .hello-content,
  .hello-robot,
  .hello-orb {
    animation: none !important;
  }
}