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

:root {
  --color-bg: #0a0a0a;
  --color-bg-warm: #111114;
  --color-overlay: rgba(0, 0, 0, 0.78);
  --color-accent: #b0b3b8;
  --color-accent-light: #d1d4d8;
  --color-accent-dark: #7a7d82;
  --color-white: #f0f0f0;
  --color-text: rgba(240, 240, 240, 0.6);
  --color-loader-bg: #050505;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  background: radial-gradient(ellipse at 30% 20%, var(--color-bg-warm) 0%, var(--color-bg) 80%);
  color: var(--color-white);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Background Image --- */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?w=1920&q=80') center/cover no-repeat;
  filter: blur(3px);
  transform: scale(1.05);
}

/* --- Dark Overlay --- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--color-overlay);
  pointer-events: none;
}

/* Loading Screen */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-loader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

#loader.loader-done {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: loaderFadeIn 0.6s 0.2s ease forwards;
}

/* Glass icon */
.loader-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-svg {
  width: 50px;
  height: 70px;
}

.loader-logo {
  max-width: 120px;
  height: auto;
  opacity: 0.9;
}

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

/* Particles */
#particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Hero */
.hero {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 40px 24px 50px;
  text-align: center;
  overflow: hidden;
}

@media (max-width: 480px) {
  .hero {
    justify-content: center;
    padding: 30px 20px 50px;
  }

  .hero-inner {
    gap: 18px;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 700px;
  width: 100%;
}

/* --- Staggered reveal --- */
.hero-element {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.revealed .hero-element:nth-child(1) { transition-delay: 0s; }
.hero.revealed .hero-element:nth-child(2) { transition-delay: 0.15s; }
.hero.revealed .hero-element:nth-child(3) { transition-delay: 0.3s; }
.hero.revealed .hero-element:nth-child(4) { transition-delay: 0.45s; }
.hero.revealed .hero-element:nth-child(5) { transition-delay: 0.65s; }
.hero.revealed .hero-element:nth-child(6) { transition-delay: 0.8s; }

.hero.revealed .hero-element {
  opacity: 1;
  transform: translateY(0);
}

.hero.revealed .hero-footer {
  transition-delay: 0.95s;
}

/* --- Logo --- */
.logo-wrap {
  margin-bottom: 0;
}

.logo {
  max-width: 140px;
  height: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.3em;
}

/* --- Headline --- */
.headline {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-white);
  min-height: 1.2em;
}

.headline .char {
  display: inline-block;
}

.headline .char.scrambling {
  color: rgba(176, 179, 184, 0.4);
}

/* --- Subtitle --- */
.subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 480px;
}

/* --- Badge --- */
.badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  border: 1px solid rgba(176, 179, 184, 0.3);
  padding: 8px 24px;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(176, 179, 184, 0.06);
}

.microcopy {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 0.9rem;
  color: var(--color-text);
  font-style: italic;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-white);
  transform: scale(1.15);
}

.social-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.phone-number {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

.phone-number:hover {
  color: var(--color-white);
}

/* --- Footer --- */
.hero-footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
}

.hero-footer p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.3);
  letter-spacing: 0.05em;
}

/* Responsive */
@media (min-width: 480px) {
  .hero {
    padding: 48px 32px;
  }

  .hero-inner {
    gap: 24px;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 48px 48px;
  }

  .hero-inner {
    gap: 32px;
  }

  .social-links {
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }
}

/* Compact spacing for short viewports */
@media (max-height: 750px) {
  .hero {
    padding: 24px 20px 16px;
  }

  .hero-inner {
    gap: 12px;
  }

  .headline {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .logo-wrap {
    margin-bottom: 0;
  }

  .badge-wrap {
    margin: 0;
    gap: 4px;
  }

  .social-links {
    margin-top: 0;
  }

  .hero-footer {
    bottom: 6px;
  }
}

@media (max-height: 600px) {
  .hero-inner {
    gap: 8px;
  }

  .headline {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .microcopy {
    display: none;
  }

  .contact-label {
    display: none;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-element {
    transition-duration: 0.01s;
  }

  .loader-content {
    animation-duration: 0.01s;
  }

  #loader {
    transition-duration: 0.01s;
  }
}
