/**
 * LIMAFY MADE BY CHELO LIMA
 * Official Website Stylesheet - Material Design 3 (Material You)
 */

@import url('m3-tokens.css');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-font-brand);
  overflow-x: hidden;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.m3-navbar-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(29, 33, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  transition: background-color var(--md-sys-motion-duration-short3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  font-size: 32px;
  color: var(--md-sys-color-primary);
  animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--md-sys-color-on-surface);
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--md-sys-color-primary);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--md-sys-motion-duration-short2);
}

.nav-link:hover {
  color: var(--md-sys-color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Material You Dynamic Seed Palette Picker in Nav */
.theme-palette-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--md-sys-color-surface-container-high);
  padding: 6px 12px;
  border-radius: var(--md-sys-shape-corner-full);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.theme-icon {
  font-size: 18px;
  color: var(--md-sys-color-primary);
}

.theme-bubbles {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
}

.color-dot:hover, .color-dot.active {
  transform: scale(1.3);
  border-color: #ffffff;
}

.custom-color-input {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.m3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--md-sys-shape-corner-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
}

.m3-btn.small {
  padding: 6px 14px;
  font-size: 12px;
}

.m3-btn-filled {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 4px 12px rgba(105, 206, 49, 0.25);
}

.m3-btn-filled:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105, 206, 49, 0.35);
}

.m3-btn-tonal {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.m3-btn-tonal:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.m3-btn-outlined {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
}

.m3-btn-outlined:hover {
  background-color: rgba(134, 220, 82, 0.08);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(105, 206, 49, 0.12) 0%, transparent 60%);
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Room Invite Banner */
.room-invite-card {
  width: 100%;
  max-width: 640px;
  background-color: var(--md-sys-color-surface-container-high);
  border: 2px solid var(--md-sys-color-primary);
  border-radius: var(--md-sys-shape-corner-extra-large);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(105, 206, 49, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  animation: slideDown 350ms var(--md-sys-motion-easing-emphasized);
}

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

.invite-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lime-glow {
  font-size: 38px;
  color: var(--md-sys-color-primary);
  filter: drop-shadow(0 0 10px var(--md-sys-color-primary));
}

.invite-text {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
}

.invite-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}


.m3-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 12px;
  font-weight: 600;
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline-variant);
  margin-bottom: 24px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--md-sys-color-primary);
  box-shadow: 0 0 10px var(--md-sys-color-primary);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #a3f971 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 720px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-btn-main {
  font-size: 15px;
  padding: 14px 32px;
}

.hero-btn-discord {
  background-color: #5865F2;
  color: #ffffff;
}

.trust-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
}

.trust-item .material-symbols-rounded {
  font-size: 18px;
  color: var(--md-sys-color-primary);
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--md-sys-color-primary);
  margin-bottom: 8px;
}

.m3-headline-medium {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   INTERACTIVE SIMULATOR CARD
   ========================================================================== */
.simulator-card {
  padding: 24px;
  border-radius: var(--md-sys-shape-corner-extra-large);
  border: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface-container);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.sim-screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.stream-box {
  background-color: var(--md-sys-color-surface-container-high);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--md-sys-color-outline-variant);
}

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

.stream-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.stream-role {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--md-sys-shape-corner-full);
}

.host-tag {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.stream-role.success {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.mock-player {
  background-color: #000000;
  height: 200px;
  border-radius: var(--md-sys-shape-corner-medium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.player-visual-bg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-hero-glyph {
  font-size: 64px;
  opacity: 0.15;
  color: #ffffff;
}

.live-time-display {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  background-color: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: 6px;
}

.stretch-pill {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 11px;
  font-weight: 700;
}

.player-progress {
  height: 6px;
  background-color: rgba(255,255,255,0.2);
  width: 100%;
}

.player-progress-fill {
  height: 100%;
  background-color: var(--md-sys-color-primary);
  transition: width 150ms linear;
}

.stream-controls {
  display: flex;
  gap: 8px;
}

.sim-diagnostics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background-color: var(--md-sys-color-surface-container-lowest);
  padding: 10px;
  border-radius: var(--md-sys-shape-corner-small);
  text-align: center;
}

.sim-diag-item {
  display: flex;
  flex-direction: column;
}

.diag-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--md-sys-color-primary);
}

.simulator-slider-bar {
  background-color: var(--md-sys-color-surface-container-lowest);
  padding: 14px 20px;
  border-radius: var(--md-sys-shape-corner-large);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--md-sys-color-primary);
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--md-sys-shape-corner-large);
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  transition: transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
              border-color var(--md-sys-motion-duration-short3);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--md-sys-color-primary);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--md-sys-shape-corner-medium);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon-wrap .material-symbols-rounded {
  font-size: 28px;
}

.code-pill {
  background-color: var(--md-sys-color-surface-container-highest);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--md-sys-color-primary);
}

/* ==========================================================================
   DISCORD BANNER CARD
   ========================================================================== */
.discord-banner-card {
  background: linear-gradient(135deg, var(--md-sys-color-surface-container-high) 0%, rgba(88, 101, 242, 0.15) 100%);
  border-radius: var(--md-sys-shape-corner-extra-large);
  padding: 40px;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7983f5;
  font-weight: 700;
  margin-bottom: 12px;
}

.discord-step-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discord-btn-glow {
  background-color: #5865F2;
  color: #ffffff;
}

/* ==========================================================================
   INSTALL GRID
   ========================================================================== */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.install-step {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--md-sys-shape-corner-large);
  border: 1px solid var(--md-sys-color-outline-variant);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   LEGAL & ABOUT TABS
   ========================================================================== */
.legal-container-card {
  padding: 32px;
  border-radius: var(--md-sys-shape-corner-large);
  border: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface-container);
}

.legal-tabs-header {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  padding-bottom: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.legal-tab-btn {
  background: transparent;
  border: none;
  color: var(--md-sys-color-on-surface-variant);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-corner-full);
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short2);
  white-space: nowrap;
}

.legal-tab-btn.active {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.legal-tab-content {
  display: none;
  animation: fadeIn 250ms ease;
  line-height: 1.6;
}

.legal-tab-content.active {
  display: block;
}

.legal-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.legal-link {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.credits-list {
  margin: 12px 0 16px 20px;
}

.credits-list li {
  margin-bottom: 8px;
}

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.text-muted { opacity: 0.7; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.m3-footer {
  background-color: var(--md-sys-color-surface-container-lowest);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 60px 24px 30px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-logo {
  font-size: 26px;
  color: var(--md-sys-color-primary);
}

.footer-title {
  font-size: 18px;
  font-weight: 800;
}

.footer-desc {
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
  max-width: 360px;
  margin-bottom: 16px;
}

.footer-ssl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--md-sys-color-primary);
  background-color: var(--md-sys-color-surface-container);
  padding: 6px 12px;
  border-radius: var(--md-sys-shape-corner-full);
}

.footer-links-col h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--md-sys-color-on-surface);
}

.footer-links-col p {
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer-links-col a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-link {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--md-sys-color-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .sim-screen-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .legal-two-cols { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}
