/* DayCity Landing Page - style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg-start: #0f0c29;
  --color-bg-mid: #302b63;
  --color-bg-end: #24243e;
  --color-text: #f5f5f7;
  --color-text-muted: #a1a1a6;
  --color-accent: #7b93c1;
  --color-accent-glow: rgba(123, 147, 193, 0.3);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1100px;
  --spacing-section: 100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, var(--color-bg-start) 0%, var(--color-bg-mid) 50%, var(--color-bg-end) 100%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.lang-switcher {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.lang-active {
  color: #fff;
  font-weight: 700;
}

.lang-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-link:hover {
  color: #fff;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding-top: 25vh;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(123, 147, 193, 0.15);
  border: 1px solid rgba(123, 147, 193, 0.3);
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #fff 0%, #dde4f0 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero .subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hide-mobile {
  display: inline;
}

/* ========== CTA BUTTONS ========== */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge-link {
  display: inline-flex;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge {
  height: 54px;
}

.google-play-badge {
  height: 80px;
  margin: -13px 0;
}

/* ========== SECTION TITLES ========== */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FEATURES ========== */
.features {
  position: relative;
  z-index: 1;
  padding: var(--spacing-section) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 24, 48, 0.8) 100%);
}

.features h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: -0.03em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== GALLERY ========== */
.gallery {
  position: relative;
  z-index: 1;
  padding: var(--spacing-section) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-visual {
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.gallery-info {
  position: relative;
  z-index: 1;
  padding: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.gallery-flag {
  font-size: 1.2rem;
}

.gallery-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.gallery-time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: auto;
  font-weight: 500;
}

/* ========== CITY VISUAL BACKGROUNDS ========== */
/* Each city tile uses an actual snapshot image */

.city-tokyo {
  background-image: url('images/cities/tokyo-jp.webp');
}

.city-paris {
  background-image: url('images/cities/paris-fr.webp');
}

.city-newyork {
  background-image: url('images/cities/new-york-us.webp');
}

.city-london {
  background-image: url('images/cities/london-gb.webp');
}

.city-sydney {
  background-image: url('images/cities/sydney-au.webp');
}

.city-dubai {
  background-image: url('images/cities/dubai-ae.webp');
}

.city-singapore {
  background-image: url('images/cities/singapore-sg.webp');
}

.city-hongkong {
  background-image: url('images/cities/hong-kong-hk.webp');
}

.city-seoul {
  background-image: url('images/cities/seoul-kr.webp');
}

.city-berlin {
  background-image: url('images/cities/berlin-de.webp');
}

.city-barcelona {
  background-image: url('images/cities/barcelona-es.webp');
}

.city-rome {
  background-image: url('images/cities/rome-it.webp');
}

.city-amsterdam {
  background-image: url('images/cities/amsterdam-nl.webp');
}

.city-toronto {
  background-image: url('images/cities/toronto-ca.webp');
}

.city-rio {
  background-image: url('images/cities/rio-de-janeiro-br.webp');
}

.city-mexico {
  background-image: url('images/cities/mexico-city-mx.webp');
}

.city-bangkok {
  background-image: url('images/cities/bangkok-th.webp');
}

.city-kyoto {
  background-image: url('images/cities/kyoto-jp.webp');
}

.city-istanbul {
  background-image: url('images/cities/istanbul-tr.webp');
}

.city-moscow {
  background-image: url('images/cities/moscow-ru.webp');
}

.city-losangeles {
  background-image: url('images/cities/los-angeles-us.webp');
}

.city-sanfrancisco {
  background-image: url('images/cities/san-francisco-us.webp');
}

.city-shanghai {
  background-image: url('images/cities/shanghai-cn.webp');
}

.city-vienna {
  background-image: url('images/cities/vienna-at.webp');
}

.city-copenhagen {
  background-image: url('images/cities/copenhagen-dk.webp');
}

.city-stockholm {
  background-image: url('images/cities/stockholm-se.webp');
}

.city-lisbon {
  background-image: url('images/cities/lisbon-pt.webp');
}

.city-prague {
  background-image: url('images/cities/prague-cz.webp');
}

.city-buenosaires {
  background-image: url('images/cities/buenos-aires-ar.webp');
}

.city-helsinki {
  background-image: url('images/cities/helsinki-fi.webp');
}

/* ========== FINAL CTA ========== */
.final-cta {
  position: relative;
  z-index: 1;
  padding: var(--spacing-section) 0;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 12, 41, 0.5) 100%);
}

.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.final-cta p {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* ========== FOOTER ========== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 16px 0;
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-x-link {
  display: inline-flex;
  align-items: center;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ========== FADE-IN ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ========== MARQUEE BACKGROUND ========== */
.marquee-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0;
  animation: marqueeReveal 1.5s ease 0.5s forwards;
}

@keyframes marqueeReveal {
  to {
    opacity: 1;
  }
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  transform: scale(1.4);
  transform-origin: center center;
}

.marquee-row {
  display: flex;
  gap: 12px;
  width: max-content;
}

/* Row animations - alternating directions */
.marquee-row:nth-child(odd) {
  animation: scrollLeft 60s linear infinite;
}

.marquee-row:nth-child(even) {
  animation: scrollRight 60s linear infinite;
}

/* Stagger row speeds and animation-delay offsets to break vertical alignment */
.marquee-row:nth-child(1) {
  animation-duration: 55s;
  animation-delay: -8s;
}

.marquee-row:nth-child(2) {
  animation-duration: 70s;
  animation-delay: -15s;
}

.marquee-row:nth-child(3) {
  animation-duration: 50s;
  animation-delay: -22s;
}

.marquee-row:nth-child(4) {
  animation-duration: 65s;
  animation-delay: -5s;
}

.marquee-row:nth-child(5) {
  animation-duration: 58s;
  animation-delay: -30s;
}

.marquee-row:nth-child(6) {
  animation-duration: 72s;
  animation-delay: -18s;
}

.marquee-row:nth-child(7) {
  animation-duration: 48s;
  animation-delay: -35s;
}

.marquee-row:nth-child(8) {
  animation-duration: 62s;
  animation-delay: -10s;
}

.marquee-row:nth-child(9) {
  animation-duration: 53s;
  animation-delay: -28s;
}

.marquee-row:nth-child(10) {
  animation-duration: 68s;
  animation-delay: -20s;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--scroll-dist, -50%));
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(var(--scroll-dist, -50%));
  }

  to {
    transform: translateX(0);
  }
}

.city-tile {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.city-tile-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px;
  background-size: cover;
  background-position: center;
}

.city-tile-flag {
  font-size: 1rem;
  line-height: 1;
  margin-top: 2px;
}

.city-tile-name {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Gradient overlays for marquee */
.marquee-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.marquee-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10, 10, 26, 0.4) 0%, var(--color-bg-start) 85%),
    linear-gradient(to bottom, transparent 0%, rgba(10, 10, 26, 0.3) 70%, var(--color-bg-end) 100%);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-section: 60px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    align-items: center;
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hide-mobile {
    display: none;
  }

  .hero-visual {
    max-width: 220px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .store-badges {
    flex-direction: row;
    gap: 8px;
  }

  .footer-links {
    flex-direction: row;
    gap: 12px;
  }

  .city-tile {
    width: 150px;
    height: 150px;
    border-radius: 12px;
  }

  .city-tile-flag {
    font-size: 0.9rem;
  }

  .city-tile-name {
    font-size: 0.7rem;
  }

  .marquee-container {
    gap: 8px;
    transform: scale(1.3);
  }

  .marquee-row {
    gap: 8px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .marquee-row {
    animation: none !important;
  }

  .marquee-background {
    animation: none !important;
    opacity: 0.5;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero h1,
  .hero .subhead,
  .hero-badge,
  .hero-visual,
  .cta-group {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}