/* ───────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --white: #ffffff;
  --title-color: #ffffff;
  --subtitle-color: #666666;
  --footer-color: #f5f5f5;
  --accent-blue: #3a3aff;
  --nav-cta-border: rgba(255, 255, 255, 0.35);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
}

html {
  font-size: 16px;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-serif);
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ───────────────────────────────────────────
   NAV
─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  background: transparent;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-8px);
  animation: fadeUp 0.7s ease forwards 0.1s;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  background: #D9D9D9;
  border: none;
  border-radius: 100px;
  padding: 10px 24px 10px 16px;
  transition: background 0.2s ease;
  opacity: 0;
  transform: translateY(-8px);
  animation: fadeUp 0.7s ease forwards 0.2s;
}

.nav-cta:hover {
  background: #e8e8e8;
}

.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────
   HERO
─────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vh, 36px);
  max-width: 900px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--title-color);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title-line1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.35s;
}

.hero-title-line2 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  font-weight: 400;
  color: var(--subtitle-color);
  line-height: 1.75;
  letter-spacing: 0.01em;
  max-width: 540px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s ease forwards 0.65s;
}

.hero-subtitle em {
  font-style: italic;
}

/* ───────────────────────────────────────────
   APP ICON
─────────────────────────────────────────── */
.app-icon-wrapper {
  margin-top: clamp(12px, 5vh, 60px);
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  animation: fadeUpScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.app-icon {
  width: 96px;
  height: 96px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(58, 58, 255, 0.5);
}

/* ───────────────────────────────────────────
   FOOTER
─────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: clamp(8px, 2vh, 24px) 24px clamp(12px, 2vh, 24px);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
  flex-shrink: 0;
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: #F5F5F5;
  letter-spacing: 0.01em;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: #999999;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 4px;
}

.footer-links a:hover {
  color: #F5F5F5;
}

.footer-dot {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #999999;
  user-select: none;
}

/* ───────────────────────────────────────────
   ANIMATIONS
─────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeUpScale {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ───────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────── */
@media (max-width: 768px) {
  html {
    height: auto;
    overflow: auto;
  }

  body {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }

  .nav {
    padding: 20px 24px;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 8px 14px 8px 10px;
  }

  .hero {
    flex: 1;
    padding: 90px 20px 24px;
  }

  .hero-content {
    gap: clamp(12px, 2vh, 24px);
  }

  .app-icon {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.85rem;
  }
}

/* short screens — ensure footer never gets clipped */
@media (max-height: 700px) {
  .hero-content {
    gap: 10px;
  }

  .app-icon-wrapper {
    margin-top: 10px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
  }
}