/* Calm Lands Companion Website - Modern Spira Theme */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

:root {
  /* FFX Modern Spira Palette */
  --primary-dark: #050510;      /* Abyss Black */
  --primary-mid: #0a0a20;       /* Deep Void */
  --primary-light: #151530;     /* Twilight */
  
  /* Accents */
  --accent-cyan: #00f0ff;       /* Bioluminescent Cyan */
  --accent-cyan-dim: rgba(0, 240, 255, 0.5);
  --accent-gold: #ffd700;       /* Spirit Gold */
  --accent-gold-dim: rgba(255, 215, 0, 0.5);
  --accent-purple: #bd00ff;     /* Void Purple */

  /* UI Colors */
  --background: #000000;        /* Pure Black */
  --surface: rgba(20, 20, 40, 0.6); /* Glass Surface */
  --surface-highlight: rgba(40, 40, 70, 0.4);
  
  /* Borders */
  --border-cyan: rgba(0, 240, 255, 0.3);
  --border-gold: rgba(255, 215, 0, 0.3);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  background-image: 
    radial-gradient(circle at 50% 0%, #1a1a40 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 30%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.02em;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

h2 {
  font-size: 2rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ========================================
   Layout
   ======================================== */

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

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

/* ========================================
   Header / Navigation
   ======================================== */

.site-header {
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--accent-gold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

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

/* ========================================
   Hero Section
   ======================================== */

.hero {
  text-align: center;
  padding: 8rem 0 6rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.8;
}

/* ========================================
   Cards (Glassmorphism)
   ======================================== */

.ffx-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ffx-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.ffx-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #e6a900 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Features Grid
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.feature-card h3 {
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border-gold);
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-2xl);
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  list-style: none;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
}

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

/* ========================================
   App Badges
   ======================================== */

.app-badges {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.app-badge {
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.app-badge:hover {
  transform: scale(1.05);
  opacity: 1;
}

.app-badge.coming-soon {
  position: relative;
  opacity: 0.5;
  cursor: default;
}

.app-badge.coming-soon:hover {
  transform: none;
}

/* ========================================
   Content Pages (Privacy, Support)
   ======================================== */

.content-section {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-2xl);
}

.content-section h2 {
  margin-top: 0;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--spacing-md);
}

.content-section h3 {
  color: var(--accent-cyan);
  margin-top: var(--spacing-xl);
}

.content-section ul, .content-section ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.content-section li {
  margin-bottom: var(--spacing-xs);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  
  .site-header nav {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .nav-links {
    gap: var(--spacing-md);
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .content-section {
    padding: var(--spacing-lg);
  }
}
