/* =========================================================
   HackITon'26 — Coming Soon — style.css
   ========================================================= */

/* ----------------------------------------------------------
   0. Reset & Box Model
   ---------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Remove blue tap flash on Android Chrome */
  -webkit-tap-highlight-color: transparent;
}

/* ----------------------------------------------------------
   1. Design Tokens
   ---------------------------------------------------------- */
:root {
  --bg-base:        #080808;
  --bg-card:        rgba(15, 15, 18, 0.72);
  --gold:           #E8B84B;
  --gold-light:     #F5CE72;
  --gold-dim:       rgba(232, 184, 75, 0.18);
  --gold-glow:      rgba(232, 184, 75, 0.25);
  --cyan:           rgba(56, 189, 199, 0.08);
  --white:          #F0EEE9;
  --muted:          rgba(240, 238, 233, 0.62);  /* boosted for mobile readability */
  --border:         rgba(232, 184, 75, 0.28);
  --border-subtle:  rgba(255, 255, 255, 0.10);
  --shadow-card:    0 8px 48px rgba(0, 0, 0, 0.55);
  --shadow-cat:     0 20px 60px rgba(0, 0, 0, 0.65);

  --radius-card:    16px;
  --font-main:      'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ----------------------------------------------------------
   2. Base
   ---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent font inflation on landscape mobile */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--white);
  min-height: 100vh;
  /* iOS Safari 100vh fix */
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  position: relative;
  /* iOS momentum scrolling */
  -webkit-overflow-scrolling: touch;
}

/* ----------------------------------------------------------
   3. Ambient Background Orbs
   ---------------------------------------------------------- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.bg-orb--gold {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232, 184, 75, 0.12) 0%, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.bg-orb--cyan {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 199, 0.07) 0%, transparent 70%);
  bottom: 10%;
  right: 5%;
  animation: orbFloat 22s ease-in-out infinite alternate-reverse;
}

.bg-orb--gold2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 184, 75, 0.07) 0%, transparent 70%);
  bottom: 20%;
  left: 5%;
  animation: orbFloat 26s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0%   { transform: translateY(0px) scale(1); }
  100% { transform: translateY(40px) scale(1.08); }
}

/* ----------------------------------------------------------
   4. Noise Overlay (grain texture)
   ---------------------------------------------------------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ----------------------------------------------------------
   5. Page Wrapper
   ---------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  /* Safe area insets for iOS notch + home bar */
  padding: calc(56px + env(safe-area-inset-top)) 24px calc(env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  gap: 0;
}

/* ----------------------------------------------------------
   6. Logo Section
   ---------------------------------------------------------- */
.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 44px;

  /* Animation initial state */
  opacity: 0;
  transform: translateY(-16px);
}

.logo-section.anim-in {
  animation: fadeSlideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.85);
  border: 1.5px solid rgba(232, 184, 75, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(232, 184, 75, 0.08),
    0 0 24px rgba(232, 184, 75, 0.12),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  animation: logoPulse 3.8s ease-in-out infinite;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(232, 184, 75, 0.08),
      0 0 20px rgba(232, 184, 75, 0.10),
      inset 0 0 20px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(232, 184, 75, 0.16),
      0 0 36px rgba(232, 184, 75, 0.20),
      inset 0 0 20px rgba(0, 0, 0, 0.5);
  }
}

/* ----------------------------------------------------------
   7. Hero Section
   ---------------------------------------------------------- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 680px;
  gap: 0;
}

/* ----------------------------------------------------------
   8. Chad Cat
   ---------------------------------------------------------- */
.cat-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;

  /* Animation initial state */
  opacity: 0;
  transform: translateY(28px);
}

.cat-wrapper.anim-in {
  animation: fadeSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.cat-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 0 60px rgba(232, 184, 75, 0.12);
  pointer-events: none;
  animation: catGlow 4s ease-in-out infinite;
}

@keyframes catGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(232, 184, 75, 0.10); }
  50%       { box-shadow: 0 0 70px rgba(232, 184, 75, 0.18); }
}

.cat-img {
  display: block;
  width: min(360px, 90vw);
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-cat);
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------
   9. Main Heading
   ---------------------------------------------------------- */
.heading-wrapper {
  margin-bottom: 18px;

  opacity: 0;
  transform: translateY(20px);
}

.heading-wrapper.anim-in {
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.main-heading {
  font-family: var(--font-main);
  font-size: clamp(1.75rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  /* Prevent heading from breaking awkwardly on narrow phones */
  word-break: keep-all;
  overflow-wrap: break-word;
}

.heading-white {
  color: var(--white);
}

.heading-gold {
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(232, 184, 75, 0.30),
    0 0 40px rgba(232, 184, 75, 0.12);
}

/* ----------------------------------------------------------
   10. Supporting Text
   ---------------------------------------------------------- */
.support-text {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;

  opacity: 0;
  transform: translateY(16px);
}

.support-text.anim-in {
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

/* ----------------------------------------------------------
   11. Divider
   ---------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 36px;

  opacity: 0;
}

.divider.anim-in {
  animation: fadeIn 0.7s ease 0.85s forwards;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.3), transparent);
}

.divider-icon {
  display: flex;
  align-items: center;
  color: var(--gold);
  opacity: 0.8;
}

.pot-icon {
  width: 20px;
  height: 20px;
}

/* ----------------------------------------------------------
   12. Status Card
   ---------------------------------------------------------- */
.status-card {
  /* Solid fallback for browsers without backdrop-filter (older Android) */
  background: rgba(12, 12, 14, 0.92);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 28px 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  width: calc(100% - 32px);
  max-width: 340px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateY(20px);
}

.status-card.anim-in {
  animation: fadeSlideUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.45), transparent);
}

.status-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(240, 238, 233, 0.45);
  /* no text-transform — it's casual lowercase now */
}

.status-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.status-dots::after {
  content: '...';
  animation: dots 2.4s steps(3, end) infinite;
}

@keyframes dots {
  0%  { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(240, 238, 233, 0.82);  /* boosted for mobile */
  background: rgba(232, 184, 75, 0.10);
  border: 1px solid rgba(232, 184, 75, 0.25);
  border-radius: 100px;
  padding: 6px 16px;  /* slightly larger touch-friendly */
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(232, 184, 75, 0.6);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(232, 184, 75, 0.6); }
  50%       { opacity: 0.6; box-shadow: 0 0 10px rgba(232, 184, 75, 0.9); }
}

/* ----------------------------------------------------------
   13. Bottom Message
   ---------------------------------------------------------- */
.bottom-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;

  opacity: 0;
}

.bottom-message.anim-in {
  animation: fadeIn 0.7s ease 1.15s forwards;
}

.rocket-icon {
  display: flex;
  align-items: center;
  color: var(--gold);
  opacity: 0.75;
  animation: rocketFloat 3s ease-in-out infinite;
}

.rocket-svg {
  width: 18px;
  height: 18px;
}

@keyframes rocketFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

.bottom-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(240, 238, 233, 0.68);  /* clearly visible on AMOLED */
  letter-spacing: 0.01em;
}

/* ----------------------------------------------------------
   14. Brand Signature
   ---------------------------------------------------------- */
.brand-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;

  opacity: 0;
}

.brand-signature.anim-in {
  animation: fadeIn 0.7s ease 1.3s forwards;
}

.brand-year {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(232, 184, 75, 0.70);  /* more visible on dark mobile screens */
  text-transform: uppercase;
}

.brand-apostrophe {
  color: rgba(232, 184, 75, 0.70);
}

.brand-dot {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}

.brand-domain {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(240, 238, 233, 0.50);  /* was 0.3 — too dim on mobile */
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
  /* Minimum tap target */
  padding: 4px 2px;
  display: inline-block;
}

.brand-domain:hover,
.brand-domain:focus {
  color: rgba(240, 238, 233, 0.80);
  outline: none;
}

/* ----------------------------------------------------------
   15. Footer
   ---------------------------------------------------------- */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding: 18px 24px;
  /* iOS home bar safe area */
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.footer-text {
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(240, 238, 233, 0.38);  /* was 0.2 — near-invisible on mobile */
  letter-spacing: 0.03em;
}

/* ----------------------------------------------------------
   16. Keyframe Animations
   ---------------------------------------------------------- */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

/* ----------------------------------------------------------
   17. Responsive — Tablet
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .page-wrapper {
    padding-top: calc(44px + env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .logo-ring {
    width: 96px;
    height: 96px;
    padding: 12px;
  }

  .logo-section {
    margin-bottom: 36px;
  }

  .cat-img {
    /* Use calc instead of min() for older Android WebViews */
    width: 88vw;
    max-width: 300px;
    border-radius: 18px;
  }

  .cat-wrapper {
    margin-bottom: 28px;
  }

  .main-heading {
    font-size: clamp(1.75rem, 8vw, 2.6rem);
  }

  .status-card {
    padding: 24px 28px 20px;
    max-width: 300px;
    width: calc(100% - 32px);
  }
}

/* ----------------------------------------------------------
   18. Responsive — Mobile
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .page-wrapper {
    padding-top: calc(36px + env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .logo-ring {
    width: 84px;
    height: 84px;
    padding: 10px;
  }

  .logo-section {
    margin-bottom: 28px;
  }

  .cat-img {
    width: 86vw;
    max-width: 260px;
    border-radius: 14px;
  }

  .cat-wrapper {
    margin-bottom: 24px;
  }

  .main-heading {
    /* 9vw gives ~1.7rem on 390px iPhone — comfortable and bold */
    font-size: clamp(1.55rem, 9vw, 2.2rem);
    line-height: 1.22;
  }

  .support-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .status-card {
    padding: 22px 20px 18px;
    width: calc(100% - 24px);
    max-width: 280px;
    border-radius: 14px;
  }

  .status-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .status-main {
    font-size: 1.1rem;
  }

  .status-badge {
    font-size: 0.78rem;
    padding: 5px 13px;
  }

  .bottom-message {
    margin-bottom: 24px;
  }

  .bottom-text {
    font-size: 0.88rem;
  }

  .brand-signature {
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .brand-year,
  .brand-domain {
    font-size: 0.72rem;
  }

  /* Ensure footer is safe from iOS home indicator */
  .site-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ----------------------------------------------------------
   19. Small Mobile
   ---------------------------------------------------------- */
@media (max-width: 360px) {
  .main-heading {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .cat-img {
    width: 84vw;
    max-width: 220px;
  }

  .logo-ring {
    width: 76px;
    height: 76px;
    padding: 9px;
  }

  .status-card {
    padding: 18px 16px 16px;
    width: calc(100% - 16px);
  }

  .support-text {
    font-size: 0.88rem;
  }
}

/* ----------------------------------------------------------
   20. Reduced Motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-section,
  .cat-wrapper,
  .heading-wrapper,
  .support-text,
  .divider,
  .status-card,
  .bottom-message,
  .brand-signature {
    opacity: 1 !important;
    transform: none !important;
  }
}
