/* ============================================
   Rexter Studio — Landing Page Styles
   ============================================ */

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

:root {
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-accent: #e8222a;
  --color-accent-glow: rgba(232, 34, 42, 0.35);
  --color-text: #f0f0f0;
  --color-text-muted: #888888;
  --color-white: #ffffff;
  --font-main: 'Inter', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Particle Canvas --- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Logo Top-Left --- */
.logo-topbar {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 0.2s forwards;
  transition: filter 0.4s ease;
}

.logo-topbar:hover {
  filter: drop-shadow(0 0 30px rgba(232, 34, 42, 0.5));
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  z-index: 1;
  overflow: hidden;
}

/* Glow orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.glow-orb--1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.glow-orb--2 {
  width: 350px;
  height: 350px;
  background: #ff4d6a;
  bottom: -5%;
  right: -8%;
  animation-delay: -4s;
}

.glow-orb--3 {
  width: 250px;
  height: 250px;
  background: var(--color-accent);
  top: 50%;
  left: 60%;
  opacity: 0.12;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* --- Hero Content --- */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

/* --- Construction Icon --- */
.construction-icon {
  width: 70px;
  height: 70px;
  color: var(--color-accent);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards, gentle-bob 3s ease-in-out 1.5s infinite;
  filter: drop-shadow(0 0 20px var(--color-accent-glow));
}

.construction-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Title --- */
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-white);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.5s forwards;
}

.title-line {
  display: block;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-accent), #ff6b7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Subtitle --- */
.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 520px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.7s forwards;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border-radius: 2px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.9s forwards;
}

/* --- Footer Tag --- */
.hero__footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 1s forwards;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

  .logo-topbar {
    top: 1rem;
    left: 1rem;
  }

  .logo-img {
    width: 48px;
    height: 48px;
  }

  .construction-icon {
    width: 55px;
    height: 55px;
  }

  .hero__content {
    gap: 1.5rem;
  }
}
