/* ==========================================================================
   Apple Aesthetic Stylesheet — Cozinha Moderna (www.cozinhamoderna.ao)
   Design Philosophy: Minimalist, Typography-focused, Glassmorphism, Monochromatic
   Viewport Optimized: Fits within 100vh / 100dvh without vertical scrolling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Monochromatic & Translucent */
  --bg-dark: #000000;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-tertiary: rgba(255, 255, 255, 0.45);
  
  /* Apple Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-blur: blur(25px) saturate(180%);

  /* Typography Stack - San Francisco / Apple System Fonts */
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, "Inter", sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100dvh;
  font-family: var(--font-apple);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   2. Background Video & Dark Overlay
   -------------------------------------------------------------------------- */
.video-background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.82) 100%);
  backdrop-filter: blur(12px) brightness(0.85);
  -webkit-backdrop-filter: blur(12px) brightness(0.85);
}

/* --------------------------------------------------------------------------
   3. Main Page Layout Container (Viewport Height Constrained)
   -------------------------------------------------------------------------- */
.page-container {
  position: relative;
  z-index: 10;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.page-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* --------------------------------------------------------------------------
   4. Header / Domain Badge
   -------------------------------------------------------------------------- */
.header-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-smooth);
}

.domain-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 8px #34c759;
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.domain-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: lowercase;
}

/* --------------------------------------------------------------------------
   5. Hero Section (Logo, Heading & Countdown)
   -------------------------------------------------------------------------- */
.hero-section {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
  flex-shrink: 1;
}

/* Logo Styling */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  color: #ffffff;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  margin-bottom: 0.75rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
  overflow: hidden;
}

.brand-symbol:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.3);
}

.main-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.brand-subtitle {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Hero Text */
.hero-content {
  margin-bottom: 1.5rem;
  max-width: 580px;
}

.hero-heading {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.hero-description {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   6. Countdown Timer
   -------------------------------------------------------------------------- */
.countdown-container {
  width: 100%;
  margin-bottom: 1.5rem;
}

.countdown-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
  transition: border-color var(--transition-smooth);
}

.countdown-card:hover {
  border-color: var(--glass-border-hover);
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.time-value {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.time-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.time-separator {
  font-size: 1.8rem;
  font-weight: 200;
  color: var(--text-tertiary);
  margin-top: -0.8rem;
}

/* --------------------------------------------------------------------------
   7. Contact Information & Socials
   -------------------------------------------------------------------------- */
.contact-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  transition: all var(--transition-smooth);
  text-align: left;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.contact-value {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.contact-value:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Social Buttons */
.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
}

/* --------------------------------------------------------------------------
   8. Footer Component
   -------------------------------------------------------------------------- */
.footer-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.85rem;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.owner-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

.owner-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.owner-name {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.copyright-text {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-tertiary);
  text-align: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. Entrance Fade-in Animations
   -------------------------------------------------------------------------- */
.animate-fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: appleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

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

/* --------------------------------------------------------------------------
   10. Responsiveness & Height-Adaptive Layouts
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .page-container {
    padding: 1rem 1rem 0.75rem 1rem;
  }

  .brand-symbol {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 0.5rem;
  }

  .main-logo-img {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .brand-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  .hero-heading {
    font-size: 1.15rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .countdown-card {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
    border-radius: 18px;
  }

  .time-block {
    min-width: 46px;
  }

  .time-value {
    font-size: 1.75rem;
  }

  .time-label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .time-separator {
    font-size: 1.4rem;
    margin-top: -0.6rem;
  }

  .contact-grid {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    gap: 0.6rem;
  }

  .contact-item {
    padding: 0.5rem 0.9rem;
  }
}

/* Height-based media query for short viewports or landscape mobile */
@media (max-height: 720px) {
  .logo-container {
    margin-bottom: 0.75rem;
  }
  .hero-content {
    margin-bottom: 1rem;
  }
  .countdown-container {
    margin-bottom: 1rem;
  }
  .contact-section {
    gap: 0.75rem;
  }
  .brand-symbol {
    width: 48px;
    height: 48px;
  }
  .main-logo-img {
    width: 30px;
    height: 30px;
  }
  .brand-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .countdown-card {
    gap: 0.3rem;
    padding: 0.75rem 0.6rem;
  }

  .time-block {
    min-width: 40px;
  }

  .time-value {
    font-size: 1.5rem;
  }

  .time-separator {
    font-size: 1.2rem;
  }
}
