/* ============================================================
   TINYSQUARE STUDIO — LAYOUT CSS
   Main App Layout: Desktop Split-Screen & Mobile Scroll
   ============================================================ */

/* --- Main App Container --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.app-container {
  display: flex;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* ============================================================
   DESKTOP (>= 1024px): Centered Layout
   ============================================================ */
@media (min-width: 1024px) {
  .app-container {
    flex-direction: row;
    justify-content: center;
  }

  /* HERO — Centered Panel */
  .hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 700px;
    height: 100%;
    padding: var(--space-12);
    background-color: var(--color-bg);
    overflow: hidden;
  }

  /* SHOWCASE — Hidden */
  .showcase-section {
    display: none;
  }

  /* Hide mobile-only scroll indicators */
  .scroll-indicator {
    display: none;
  }
}

/* ============================================================
   MOBILE (< 1024px): Vertical Scroll Snap
   ============================================================ */
@media (max-width: 1023px) {
  body {
    overflow: hidden;
  }

  .app-container {
    flex-direction: column;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    height: 100dvh;
  }

  /* HERO — Full Viewport Height */
  .hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh; /* Force height */
    flex-shrink: 0;      /* Don't let sections squash each other */
    padding: var(--space-6) var(--space-6) var(--space-4);
    padding-top: calc(var(--space-8) + env(safe-area-inset-top));
    padding-bottom: calc(var(--space-12) + env(safe-area-inset-bottom));
    background-color: var(--color-bg);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* SHOWCASE — Hidden */
  .showcase-section {
    display: none;
  }

  .showcase-content {
    display: none;
  }

  /* Scroll Indicator Arrows */
  .scroll-indicator {
    display: none;
  }
}

/* ============================================================
   HERO CONTENT LAYOUT
   ============================================================ */
.hero-content {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: var(--space-4);
  width: 100%;
}

@media (max-width: 1023px) {
  .logo-wrapper {
    max-width: 100%;
  }
}

.logo {
  height: 32px; /* Increased for better visibility */
  width: auto;
  filter: invert(0.8);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-bold);
  margin-left: var(--space-4);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
  transition: color var(--transition-fast);
  font-family: inherit;
}

.lang-btn:hover {
  color: #FFFFFF;
}

.lang-btn.is-active {
  color: #FFFFFF;
}

.lang-separator {
  color: var(--color-stroke);
  opacity: 0.3;
}

.manifesto {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 480px;
}

@media (max-width: 1023px) {
  .manifesto {
    gap: var(--space-2); /* Tighter spacing for mobile to fit more text */
  }
}

.manifesto__tagline {
  font-size: var(--fs-lg);
  font-weight: var(--font-weight-bold);
}

.manifesto__body {
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   HERO FOOTER
   ============================================================ */
/* Legal Modal Watermark */
.modal__legal-watermark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  opacity: 0.4;
}

.modal__legal-watermark img {
  height: 24px;
  width: auto;
}

.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding-top: var(--space-12);
  position: relative;
}

@media (max-width: 1023px) {
  .hero-footer {
    gap: var(--space-2);
  }
}

.footer__label {
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}

.footer__email {
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  transition: color var(--transition-fast);
}

.footer__email:hover {
  color: var(--color-stroke);
}

/* LEGAL MODAL (Terms / Privacy) */
.modal--legal .modal__container {
  background-color: var(--color-surface);
  width: 90%;
  max-width: 800px;
  height: 85vh;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  position: relative;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal__legal-content {
  color: var(--color-text-primary);
}

.modal__legal-content h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-6);
  color: var(--color-text-primary);
}

.modal__legal-content h3 {
  font-size: var(--fs-md);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.modal__legal-content p,
.modal__legal-content li {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.footer__legal-text {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  max-width: 340px;
  line-height: 1.6;
  margin-top: var(--space-2);
}

/* ============================================================
   SYMBOL DISPLAY (Main Visual Anchor)
   ============================================================ */
.symbol-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px; /* Adjusted scale for new symbol */
  animation: float 6s ease-in-out infinite;
  transition: transform var(--transition-base);
}

.main-symbol {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)) invert(0.8);
}

@media (max-width: 1023px) {
  .symbol-container {
    width: 90px;
  }
}


