:root {
  --bg-deep: #0f1419;
  --bg-mid: #1a2330;
  --steel: #8fa3b8;
  --mist: #d6e0ea;
  --ink: #e8eef4;
  --accent: #e07a3a;
  --accent-soft: rgba(224, 122, 58, 0.35);
  --line: rgba(143, 163, 184, 0.18);
  --font-display: "Oxanium", sans-serif;
  --font-body: "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(45, 72, 98, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 60% at 15% 85%, rgba(224, 122, 58, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #0a0e12 100%);
}

.grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(58deg) scale(1.4);
  transform-origin: center 40%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
  animation: grid-drift 28s linear infinite;
  opacity: 0.7;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-a {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: -8%;
  right: -5%;
  background: rgba(95, 130, 165, 0.35);
  animation: orb-float 14s ease-in-out infinite;
}

.orb-b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  bottom: 5%;
  left: -8%;
  background: var(--accent-soft);
  animation: orb-float 18s ease-in-out infinite reverse;
}

.scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(214, 224, 234, 0.03) 48%,
    rgba(224, 122, 58, 0.06) 50%,
    rgba(214, 224, 234, 0.03) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scan-move 9s ease-in-out infinite;
  opacity: 0.6;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 6vw, 4.5rem);
  max-width: 52rem;
  width: 100%;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--mist);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.brand::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: line-draw 1.1s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--steel);
  max-width: 34rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-deep);
  background: var(--mist);
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cta:hover {
  background: transparent;
  color: var(--mist);
  border-color: var(--steel);
  transform: translateY(-2px);
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(2rem, 6vw, 4.5rem) 2rem;
}

.footer a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--steel);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover {
  color: var(--mist);
  border-bottom-color: var(--accent);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: none !important;
}

.footer-social:hover {
  border-bottom-color: transparent !important;
}

.icon-instagram {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }
[data-delay="4"] { transition-delay: 0.48s; }

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 0 64px; }
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 18px); }
}

@keyframes scan-move {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

@keyframes line-draw {
  to { width: min(12rem, 55vw); }
}

@media (max-width: 600px) {
  .hero {
    justify-content: flex-end;
    padding-bottom: 3rem;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid,
  .orb,
  .scan,
  .brand::after {
    animation: none;
  }

  .brand::after {
    width: min(12rem, 55vw);
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
