/* ==========================================================================
   Farm System Design System - Centered Mobile-First Flat Design
   Aesthetics: Global Pretendard Font, 100vh Center Lock, Highly Polished Minimalist
   ========================================================================== */

:root {
  /* Brand color scheme matching the logo banner */
  --bg-deep: #214b19;         /* Logo forest green background */
  --bg-darker: #183712;       /* Accent background green */
  --bg-card: #0f240b;         /* Crisp solid card background */
  
  /* Accent Tokens */
  --accent-light: #86efac;    /* Minty green highlight */
  --border-flat: rgba(255, 255, 255, 0.25);  /* Solid translucent white border */
  --border-hover: #ffffff;                    /* Pure white border for active hover */
  
  /* Text Color Tokens */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.48);
  
  /* Flat Shadow (Crisp & Solid) */
  --shadow-flat: 4px 4px 0px #0b1509;
  --shadow-flat-hover: 6px 6px 0px #0b1509;
  --transition-speed: 0.2s;
  --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. Reset & Global Base Settings
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden; /* Force absolutely no scrolling */
  background-color: var(--bg-deep);
  color: var(--text-primary);
  
  /* Global Pretendard Font stack integration */
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  background: var(--bg-deep);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-curve);
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   2. Floating Flat Particle Canvas Background
   ========================================================================== */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* ==========================================================================
   3. Page Shell & Vertical Centered Layout
   ========================================================================== */
.page-shell {
  width: 100%;
  height: 100%;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.centered-dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  width: 100%;
  max-width: 500px; /* Highly optimized column width for mobile-first view */
}

/* Brand Header (Centered, Pure White) */
.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Hero Content Section */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-title {
  font-size: clamp(2.05rem, 5.8vw, 2.75rem);
  font-weight: 850;
  line-height: 1.28;
  color: #ffffff;
  word-break: keep-all;
  letter-spacing: -0.03em;
}

.lead-desc {
  font-size: clamp(0.96rem, 1.4vw, 1.05rem);
  line-height: 1.62;
  color: var(--text-secondary);
  word-break: keep-all;
  padding: 0 8px;
}

/* ==========================================================================
   4. Launch Milestone Badge (COMING SOON)
   ========================================================================== */
.launch-badge-section {
  display: flex;
  justify-content: center;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-darker);
  border: 1.5px solid var(--border-flat);
  border-radius: 9999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-flat);
}

.badge-text {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

/* ==========================================================================
   5. Compact Tracks Grid (Mobile-First Layout)
   ========================================================================== */
.tracks-section {
  width: 100%;
}

.mobile-tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.track-pill {
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  border-radius: 8px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  color: #ffffff;
  box-shadow: var(--shadow-flat);
  transition: all var(--transition-speed) var(--transition-curve);
  cursor: default;
}

.track-pill:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -2px;
}

.track-union {
  grid-column: span 2; /* Row 1: UNION takes the entire horizontal row */
}


/* ==========================================================================
   6. Clean Startup-Grade Instagram Button
   ========================================================================== */
.instagram-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.instagram-clean-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px; /* Premium pill button shape */
  padding: 11px 22px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: var(--shadow-flat);
  transition: all 0.22s var(--transition-curve);
}

.instagram-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.22s ease;
}

.instagram-clean-button:hover {
  background: #ffffff;
  color: var(--bg-deep); /* Elegant white inverse hover transition */
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.35);
}

.instagram-clean-button:hover .instagram-icon {
  transform: rotate(5deg) scale(1.05);
}

.instagram-clean-button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* ==========================================================================
   7. Footer Settings
   ========================================================================== */
.dashboard-footer {
  border-top: 1.5px solid var(--border-flat);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  width: 100%;
  box-sizing: border-box;
}

.copyright {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

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

/* ==========================================================================
   8. Dashboard Responsiveness (Extremely Low Height Adjustments)
   ========================================================================== */
@media (max-width: 480px) {
  .page-shell {
    padding: 24px 16px;
  }
  .centered-dashboard {
    gap: 22px;
  }
  .main-title {
    font-size: 2rem;
  }
  .lead-desc {
    font-size: 0.92rem;
  }
  .track-pill {
    height: 44px;
    font-size: 0.88rem;
  }
  .dashboard-footer {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    width: 100%;
  }
}

@media (max-height: 600px) {
  /* Dynamic vertical squishing compression */
  .page-shell {
    padding: 16px;
  }
  .centered-dashboard {
    gap: 16px;
  }
  .hero-content {
    gap: 8px;
  }
  .main-title {
    font-size: 1.85rem;
  }
  .lead-desc {
    font-size: 0.88rem;
  }
  .launch-badge {
    padding: 6px 12px;
  }
  .track-pill {
    height: 40px;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
