/* ==========================================================================
   RedTeamSupplys — Coming Soon  |  Premium Animated Dark Theme
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg:           #0d0d0f;
  --bg-surface:   rgba(22, 22, 28, 0.75);
  --accent:       #ff3333;
  --accent-hover: #ff5555;
  --accent-dim:   rgba(255, 51, 51, 0.08);
  --accent-glow:  rgba(255, 51, 51, 0.25);
  --accent-2:     #dc2626;           /* secondary red for gradients */
  --text:         #e4e4e7;
  --text-muted:   #71717a;
  --text-faint:   #3f3f46;
  --white:        #fafafa;
  --border:       rgba(255, 255, 255, 0.06);
  --border-focus: rgba(255, 51, 51, 0.5);
  --success:      #34d399;
  --warning:      #fbbf24;
  --danger:       #f87171;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;

  --radius:     10px;
  --radius-lg:  16px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  /* Hide scrollbar for clean aesthetic */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Dot Grid Canvas ---------- */
#dot-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Ambient Glow Orbs ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: orb-in 2s ease forwards;
  max-width: 100vw;
}

.orb--1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 51, 51, 0.12), transparent 70%);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.3s;
}

.orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08), transparent 70%);
  bottom: 0;
  right: 0;
  animation-delay: 0.8s;
}

@keyframes orb-in {
  to { opacity: 1; }
}

/* Slow floating movement for the orbs */
.orb--1 { animation: orb-in 2s ease forwards, float-1 12s ease-in-out 2s infinite; }
.orb--2 { animation: orb-in 2s ease forwards, float-2 15s ease-in-out 2s infinite; }

@keyframes float-1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-48%) translateY(-20px); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-15px) translateX(-10px); }
}

/* ---------- Page Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.25rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 540px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Brand (Logo + Name) ---------- */
.brand {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

/* Animated ring around logo */
.logo-ring {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--accent-2),
    transparent 60%,
    transparent 80%,
    var(--accent)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ring-spin 6s linear infinite;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.brand__name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__red {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Heading ---------- */
.heading {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.heading__line {
  display: block;
  color: var(--white);
}

.heading__line--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------- Tagline ---------- */
.tagline {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 400px;
  margin-bottom: 1.5rem;
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 200px;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-faint), transparent);
}

.divider__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: dot-pulse 2s ease-in-out infinite;
}

.divider__dot:last-child { animation-delay: 1s; }

@keyframes dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.4); }
}

/* ---------- Notify Section ---------- */
.notify {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

/* Animated shimmer border highlight */
.notify::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), var(--accent), var(--accent-glow), transparent);
  animation: shimmer-border 4s ease-in-out infinite;
}

@keyframes shimmer-border {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.notify__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

/* ---------- Input Group ---------- */
.input-group {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.input-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 20px rgba(59, 130, 246, 0.06);
}

.input-group__input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  min-width: 0;
}

.input-group__input::placeholder {
  color: var(--text-faint);
}

.input-group__btn {
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 200% 200%;
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-position 0.4s ease, opacity var(--transition), transform 0.15s ease;
}

.input-group__btn:hover:not(:disabled) {
  background-position: 100% 100%;
}

.input-group__btn:hover:not(:disabled) .btn__arrow {
  transform: translateX(3px);
}

.btn__arrow {
  transition: transform 0.2s ease;
  font-size: 1rem;
}

.input-group__btn:active:not(:disabled) {
  transform: scale(0.97);
}

.input-group__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Feedback Messages ---------- */
.notify__feedback {
  min-height: 1.25rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 400;
  transition: color var(--transition);
}

.notify__feedback--success   { color: var(--success); }
.notify__feedback--duplicate { color: var(--warning); }
.notify__feedback--error     { color: var(--danger); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  color: var(--text-faint);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__socials a:hover {
  color: var(--accent);
}

/* ---------- Entrance Animations (staggered) ---------- */
.container > * {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.container > *:nth-child(1) { animation-delay: 0.1s; }
.container > *:nth-child(2) { animation-delay: 0.25s; }
.container > *:nth-child(3) { animation-delay: 0.4s; }
.container > *:nth-child(4) { animation-delay: 0.55s; }
.container > *:nth-child(5) { animation-delay: 0.7s; }
.container > *:nth-child(6) { animation-delay: 0.85s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .page {
    padding: 2rem 1rem;
  }

  .notify {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group__btn {
    justify-content: center;
    padding: 0.9rem 1rem;
  }

  .logo-ring {
    width: 90px;
    height: 90px;
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  .brand {
    margin-bottom: 2.5rem;
  }

  .brand__name {
    font-size: 1rem;
  }
}
