/* ============================================
   CODERA - Coming soon
   ============================================ */

:root {
  --bg: #0a0a0a;
  --text: #f4f3ee;
  --text-muted: #a3a29c;
  --text-dim: #6f6e69;
  --accent: #f5291d;
  --accent-2: #ff8a3d;
  --accent-hover: #ff4a3d;
  --accent-dim: rgba(245, 41, 29, 0.16);
  --on-accent: #ffffff;

  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ambient layers */

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 41, 29, 0.1), transparent 70%);
  mix-blend-mode: screen;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  mix-blend-mode: screen;
  opacity: 0.38;
}

.aurora__blob--1 {
  width: 620px;
  height: 620px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: auroraDrift1 16s ease-in-out infinite;
}

.aurora__blob--2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: 8%;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  opacity: 0.2;
  animation: auroraDrift2 20s ease-in-out infinite;
}

.aurora__blob--3 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: 6%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.22;
  animation: auroraDrift3 18s ease-in-out infinite;
}

@keyframes auroraDrift1 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-46%) translateY(30px) scale(1.08); }
}

@keyframes auroraDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

@keyframes auroraDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -20px) scale(1.06); }
}

.dotgrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(244, 243, 238, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 0%, transparent 78%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .aurora__blob {
    animation: none;
  }
}

/* corner frame */

.frame {
  position: fixed;
  z-index: 2;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0.35;
}

.frame--tl {
  top: 20px;
  left: 20px;
  border-top: 1px solid var(--text);
  border-left: 1px solid var(--text);
}

.frame--tr {
  top: 20px;
  right: 20px;
  border-top: 1px solid var(--text);
  border-right: 1px solid var(--text);
}

.frame--bl {
  bottom: 20px;
  left: 20px;
  border-bottom: 1px solid var(--text);
  border-left: 1px solid var(--text);
}

.frame--br {
  bottom: 20px;
  right: 20px;
  border-bottom: 1px solid var(--text);
  border-right: 1px solid var(--text);
}

@media (max-width: 640px) {
  .frame {
    display: none;
  }
}

/* header */

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 40px 24px 0;
}

.site-header__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

.site-header__logo-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(245, 41, 29, 0.3);
  animation: ringPulse 2.6s var(--ease-out) infinite;
}

@keyframes ringPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__logo-wrap::before {
    animation: none;
  }
}

.site-header__logo {
  position: relative;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(245, 41, 29, 0.5));
}

/* status badge */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  margin-bottom: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 243, 238, 0.12);
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-dim);
  animation: statusPulse 1.8s ease-out infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 41, 29, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(245, 41, 29, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 41, 29, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
}

/* main */

.soon {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.soon__inner {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.soon__eyebrow {
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.soon__eyebrow-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 243, 238, 0.35));
}

.soon__eyebrow-line:last-child {
  background: linear-gradient(90deg, rgba(244, 243, 238, 0.35), transparent);
}

.soon__headline {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.soon__headline span {
  display: block;
}

.soon__headline-accent {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 50%, var(--accent) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientSweep 6s linear infinite;
}

@keyframes gradientSweep {
  to {
    background-position: -220% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soon__headline-accent {
    animation: none;
  }
}

.soon__subtext {
  margin: 0 0 40px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 30px -10px rgba(245, 41, 29, 0.55);
}

.btn--primary:hover {
  box-shadow: 0 12px 34px -8px rgba(245, 41, 29, 0.75);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 42%, transparent 60%);
  transform: translateX(-120%);
}

.btn--primary:hover::after {
  transform: translateX(120%);
  transition: transform 0.7s var(--ease-out);
}

/* entrance */

.fade-in {
  animation: fadeInUp 0.6s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-top: 28px;
  }

  .status-badge {
    padding: 8px 13px;
    font-size: 0.68rem;
  }
}
