/* ==========================================================================
   Xenbix Coming Soon — Style Sheet
   Design System: "Xenbix Onyx" (generated via Stitch MCP)
   ========================================================================== */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Surface / Background */
  --surface: #10141a;
  --surface-container-lowest: #0a0e14;
  --surface-container-low: #181c22;
  --surface-container: #1c2026;
  --surface-container-high: #262a31;
  --surface-bright: #353940;

  /* Primary / Accent */
  --primary: #55dad0;
  --primary-container: #2bbcb3;
  --on-primary: #003734;

  /* Text */
  --on-surface: #dfe2eb;
  --on-surface-variant: #bbc9c7;
  --outline: #869491;
  --outline-variant: #3c4948;

  /* Font */
  --font-family: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--surface);
  color: var(--on-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* ---------- Atmospheric Background ---------- */
.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(43, 188, 179, 0.06) 0%,
    rgba(16, 20, 26, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
  transition: transform 0.6s ease-out;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 90px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* ---------- Main Content ---------- */
.main-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--space-md);
  gap: var(--space-xl);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero__title {
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--on-surface);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--on-surface-variant);
  max-width: 36rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

/* Divider */
.divider {
  width: 3rem;
  height: 2px;
  background: var(--primary-container);
  opacity: 0;
  border-radius: 1px;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.8s;
}

/* Contact Section */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
}

.contact__label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--on-surface-variant);
}

.contact__email {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact__email:hover {
  color: #75f7ed;
  transform: translateY(-2px);
}

.contact__email::after {
  content: '→';
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.contact__email:hover::after {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.footer__link {
  color: var(--primary);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer__link:hover {
  color: #75f7ed;
}

.footer__link:hover::after {
  width: 100%;
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ---------- Subtle Pulse on Divider ---------- */
.divider {
  animation: fadeIn 0.8s ease forwards, pulse 4s ease-in-out 1.6s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .logo {
    width: 120px;
  }

  .site-header {
    padding: var(--space-xl) var(--space-lg);
  }

  .main-content {
    padding: 0 var(--space-lg);
    gap: var(--space-xl);
  }

  .site-footer {
    padding: var(--space-lg) var(--space-xl);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .logo {
    width: 140px;
  }

  .site-header {
    padding: var(--space-xl) var(--space-2xl);
  }

  .main-content {
    gap: 3rem;
  }

  .site-footer {
    padding: var(--space-lg) var(--space-2xl);
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .bg-glow {
    width: 1200px;
    height: 1200px;
  }
}

/* Small mobile adjustments */
@media (max-width: 380px) {
  .site-header {
    padding: var(--space-md) var(--space-sm);
  }

  .main-content {
    gap: var(--space-lg);
    padding: 0 var(--space-sm);
  }

  .site-footer {
    padding: var(--space-md) var(--space-sm);
  }

  .contact__email {
    font-size: 0.9375rem;
  }
}
