@import url('/assets/fonts/fonts.css');

:root {
  /* Canvas Hierarchy: Deep Charcoal Obsidian */
  --canvas-base: #0B0E14;
  --canvas-surface: rgba(22, 27, 38, 0.75);
  --canvas-surface-elevated: #161B26;
  --canvas-card: rgba(26, 32, 44, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-specular: rgba(255, 255, 255, 0.14);
  --border-active: rgba(88, 101, 242, 0.4);

  /* Signature Starlight Meridian Gradient */
  --brand-blurple: #5865F2;
  --brand-sky: #38BDF8;
  --brand-meridian: linear-gradient(135deg, #5865F2 0%, #38BDF8 100%);
  --brand-meridian-text: linear-gradient(135deg, #A5B4FC 0%, #38BDF8 50%, #FFFFFF 100%);

  /* Circadian Semantics */
  --circadian-awake: #57F287;
  --circadian-winddown: #FEE75C;
  --circadian-asleep: #818CF8;
  --milestone-gold: #EAB308;

  /* Text Hierarchy */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--canvas-base);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #FFFFFF;
}

/* Background Ambient Aurora */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle at 50% 20%, rgba(88, 101, 242, 0.15) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism & Materials */
.glass-nav {
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.glass-card {
  background: var(--canvas-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: var(--border-specular);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.65);
}

.hud-preview-panel {
  background: rgba(14, 18, 26, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-specular);
  border-radius: 14px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--brand-meridian);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #FFFFFF;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-primary {
  background: var(--brand-meridian);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-specular);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Typography & Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #A5B4FC;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid rgba(87, 242, 135, 0.25);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #57F287;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--circadian-awake);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--circadian-awake);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: var(--brand-meridian-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Trust Badges Row (Inspired by baodaoalert) */
.trust-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.trust-icon {
  font-size: 1rem;
}

.trust-title {
  font-weight: 600;
  color: var(--text-primary);
}

/* Interactive HUD Simulation Card */
.hud-showcase {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: left;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hud-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.hud-friend-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.friend-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-specular);
}

.friend-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  position: relative;
}

.status-pill {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0E121A;
}

.friend-names {
  display: flex;
  flex-direction: column;
}

.friend-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
}

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

.friend-clock {
  font-family: var(--font-mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.clock-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.clock-diff {
  font-size: 0.76rem;
  font-weight: 600;
}

.circadian-awake { color: var(--circadian-awake); }
.circadian-winddown { color: var(--circadian-winddown); }
.circadian-asleep { color: var(--circadian-asleep); }

.hud-footer-action {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

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

/* Screenshots Showcase Section */
.screenshots-section {
  padding: 70px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.screenshot-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screenshot-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 50%, rgba(26, 32, 44, 0.9) 0%, rgba(11, 14, 20, 0.98) 100%);
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.screenshot-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-card:hover .screenshot-img-wrap img {
  transform: scale(1.02);
}

.screenshot-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.screenshot-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Feature Grid */
.features-section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 32px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-sky);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

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

/* Store Downloads Section */
.download-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(88, 101, 242, 0.04) 50%, transparent 100%);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(22, 27, 38, 0.85);
  border: 1px solid var(--border-specular);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  cursor: pointer;
}

.store-badge:hover {
  border-color: var(--brand-sky);
  background: rgba(30, 36, 52, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
}

.store-badge-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.store-badge-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.store-badge-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  line-height: 1.2;
}

.store-badge-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.status-pill-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-live {
  background: rgba(87, 242, 135, 0.15);
  border: 1px solid rgba(87, 242, 135, 0.35);
  color: #57F287;
}

.status-pending {
  background: rgba(254, 231, 92, 0.12);
  border: 1px solid rgba(254, 231, 92, 0.3);
  color: #FEE75C;
}

/* Expandable Store Notice Card */
.store-status-notice {
  margin: 28px auto 0;
  max-width: 720px;
  padding: 22px 26px;
  background: rgba(26, 32, 46, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  text-align: left;
  position: relative;
  animation: fadeInNotice 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.store-notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.store-notice-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-notice-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  transition: color 0.15s ease;
}

.store-notice-close:hover {
  color: #FFFFFF;
}

.store-notice-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Free Core Guarantee Banner */
.free-core-banner {
  margin: 0 auto 40px;
  max-width: 860px;
  padding: 24px 32px;
  background: rgba(87, 242, 135, 0.05);
  border: 1px solid rgba(87, 242, 135, 0.25);
  border-radius: 16px;
  text-align: center;
}

.free-core-banner h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.free-core-banner p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Patronage / Pricing Section */
.patronage-section {
  padding: 70px 0 90px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.tier-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-card.highlight {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(22, 27, 40, 0.85);
  box-shadow: 0 16px 48px -6px rgba(56, 189, 248, 0.15);
}

.tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-mono);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.tier-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.tier-features li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-features li svg {
  flex-shrink: 0;
  color: var(--circadian-awake);
}

/* FAQ Accordion */
.faq-section {
  padding: 70px 0 90px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--canvas-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--brand-sky);
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 14, 20, 0.95);
  padding: 48px 0 32px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.legal-notice {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  text-align: center;
}

/* Legal Document Layout */
.legal-container {
  max-width: 820px;
  margin: 50px auto 90px;
  padding: 0 24px;
}

.legal-card {
  padding: 44px;
}

.legal-card h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: #FFFFFF;
}

.legal-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 22px 0 10px;
  color: #A5B4FC;
}

.legal-card p, .legal-card ul {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card strong {
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(11, 14, 20, 0.98);
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero {
    padding: 50px 0 30px;
  }
  .legal-card {
    padding: 24px;
  }
  .features-grid, .screenshots-grid, .store-grid {
    grid-template-columns: 1fr;
  }
}
