/* ==============
   BLACK SAPPHIRE - MINIMAL COMING SOON
   ==============*/
:root {
  --bg: #000;
  --ink: #fff;
  --ink-80: rgba(255,255,255,0.8);
  --ink-60: rgba(255,255,255,0.6);
  --ink-30: rgba(255,255,255,0.3);
  --pad: 24px;
}

/* -- BASE RESET -- */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  color: #def1f7;
}

html { 
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  background: var(--bg);
  background-image: url(/ogblack1.png);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body { 
  height: 100svh; /* Small viewport height - most conservative for in-app browsers */
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
  background: transparent;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2vh 0;
}

/* Main container wrapper */
.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* =============
   HERO SECTION
   ============= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
  gap: 1rem;
  width: 100%;
}

/* Logo */
.hero-logo-wrap{
  display: inline-block;                 
  animation: logoFloat 6s ease-in-out infinite;
  will-change: transform;
}

.hero-logo{
  width: clamp(110px, 16vw, 230px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(48,121,255,0.45));
  transition: transform .45s cubic-bezier(.2,.8,.2,1),
              filter .45s cubic-bezier(.2,.8,.2,1);
}

.hero-logo:hover{
  transform: scale(1.06);            
  filter: drop-shadow(0 0 22px rgba(22, 26, 250, 0.75));
}

@keyframes logoFloat{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Timer */
.timer-container {
  background: rgb(0 0 0 / 5%);
  backdrop-filter: blur(28px);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.time-unit {
  background: rgb(0 0 0 / 8%);
  backdrop-filter: blur(10px);
  padding: 24px 16px;
  border-radius: 12px;
  min-width: 96px;
  transition: transform 0.3s ease;
  border: 2px solid rgb(118 128 255 / 10%);
}

.time-unit:hover {
  transform: translateY(-5px);
  background: rgba(14, 14, 14, 0.801);
}

.time-value {
  font-size: 38px;
  font-weight: bold;
  color: #6d6d6d;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.time-label {
  font-size: 13px;
  color: rgb(44 52 171 / 70%);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Tagline Section */
.section {
  padding: 2vh var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#tagline-animation h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

/* Word Roller */
.word-roller {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  position: relative;
  vertical-align: bottom;
  width: 10em;
  margin-right: 0.5em;
  text-align: right;
}



.word-roller li {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  text-align: right;
}

.word-roller ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  animation: rotate-words 28s ease-in-out infinite;
}

@keyframes rotate-words {
  0%, 5.55% { transform: translateY(0); }
  5.55%, 11.11% { transform: translateY(-1.2em); }
  11.11%, 16.66% { transform: translateY(-2.4em); }
  16.66%, 22.22% { transform: translateY(-3.6em); }
  22.22%, 27.77% { transform: translateY(-4.8em); }
  27.77%, 33.33% { transform: translateY(-6em); }
  33.33%, 38.88% { transform: translateY(-7.2em); }
  38.88%, 44.44% { transform: translateY(-8.4em); }
  44.44%, 50% { transform: translateY(-9.6em); }
  50%, 55.55% { transform: translateY(-10.8em); }
  55.55%, 61.11% { transform: translateY(-12em); }
  61.11%, 66.66% { transform: translateY(-13.2em); }
  66.66%, 72.22% { transform: translateY(-14.4em); }
  72.22%, 77.77% { transform: translateY(-15.6em); }
  77.77%, 83.33% { transform: translateY(-16.8em); }
  83.33%, 88.88% { transform: translateY(-18em); }
  88.88%, 94.44% { transform: translateY(-19.2em); }
  94.44%, 100% { transform: translateY(-20.4em); }
}


/* ===========
   RESPONSIVE
   =========== */
@media (max-width: 768px) {
  html {
    background-attachment: scroll; /* Fixed doesn't work well on mobile */
  }
  
  body {
    height: 100svh;
    padding: 0;
  }
  
  .container {
    padding: 5vh 0 15vh 0; /* Massive bottom padding for in-app browsers */
  }
  
  .section {
    padding: 1vh var(--pad);
  }
  
  .hero {
    gap: 0.5rem;
  }
  
  .timer-container {
    padding: 18px 14px;
    margin-top: 0.5rem;
  }

  .timer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .time-unit {
    min-width: 65px;
    padding: 14px 8px;
  }

  .time-value {
    font-size: 26px;
  }

  .time-label {
    font-size: 9px;
  }
  
  .hero .hero-logo { 
    width: clamp(90px, 35vw, 160px) !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 3vh 0 18vh 0; /* Even more bottom padding for small screens */
  }
  
  .section {
    padding: 0.5vh var(--pad);
  }
  
  .timer-container {
    padding: 14px 10px;
  }

  .timer-grid {
    gap: 6px;
  }

  .time-unit {
    min-width: 55px;
    padding: 10px 6px;
  }

  .time-value {
    font-size: 22px;
  }

  .time-label {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  
  .hero-logo {
    width: clamp(80px, 30vw, 140px) !important;
  }
}

/* Mobile responsive word roller */
@media (max-width: 768px) {
  #tagline-animation {
    padding: 0 !important;
  }
  
  #tagline-animation h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .word-roller {
    width: 100% !important;
    text-align: center !important;
    margin-right: 0 !important;
    margin-bottom: 0.2rem !important;
  }
  
  .word-roller li {
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  #tagline-animation h2 {
    font-size: clamp(1rem, 4.5vw, 1.4rem) !important;
  }
}

@media (max-width: 768px) {
  .tagline-heading {
    flex-direction: column !important;
    align-items: center !important;
  }
}

.tagline-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
}

/* Instagram and in-app browser specific fixes */
@supports (-webkit-touch-callout: none) {
  /* iOS specific */
  body {
    height: 100svh;
  }
  
  @media (max-width: 768px) {
    .container {
      padding-bottom: 20vh !important; /* Extra padding for Instagram */
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding-bottom: 22vh !important;
    }
  }
}