/* The Nerd That Wasn't - Global Styles */
/* Matching Spirit Sense app theme */

:root {
  /* Colors - Spirit Sense palette */
  --bg-primary: #1A1A2E;
  --bg-secondary: #16161F;
  --accent-gold: #C9A86C;
  --text-primary: #E0E0F0;
  --text-muted: #8A8A9E;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.04);

  /* Spacing - 8pt grid */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;

  /* Typography */
  --font-display: 'Philosopher', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--text-muted);
  max-width: 65ch;
}

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

a:hover {
  opacity: 0.8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-weight: 400;
}

nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-primary);
  opacity: 1;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) 0;
  position: relative;
}

.hero h1 {
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 40px rgba(201, 168, 108, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Section */
section {
  padding: var(--space-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--accent-gold);
}

/* App Cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.app-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
              0 0 60px rgba(201, 168, 108, 0.15);
  border-color: var(--accent-gold);
}

.app-card:hover::before {
  opacity: 1;
}

.app-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.app-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.app-card p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.app-screenshot {
  width: 100%;
  height: 240px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px solid var(--glass-border);
}

.badge {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.badge:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(201, 168, 108, 0.3);
}

.badge.coming-soon {
  background: var(--glass);
  color: var(--text-muted);
  cursor: default;
}

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

/* About Section */
.about {
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin: 0 auto var(--space-md);
  font-size: 1.1rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--accent-gold);
  font-size: 1rem;
  transition: all 0.2s ease;
  margin-top: var(--space-md);
}

.contact-email:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(201, 168, 108, 0.2);
  opacity: 1;
}

/* Footer */
footer {
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

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

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

/* Legal Pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md);
}

.legal-page h1 {
  margin-bottom: var(--space-sm);
  color: var(--accent-gold);
}

.legal-page .date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.legal-page h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--glass-border);
}

.legal-page ul {
  padding-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.legal-page li {
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}

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

.legal-page a {
  color: var(--accent-gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-page a:hover {
  border-bottom-color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-xl: 32px;
    --space-xxl: 48px;
  }

  .header-content {
    flex-direction: column;
    gap: var(--space-sm);
  }

  nav ul {
    gap: var(--space-sm);
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Philosopher:wght@400&family=Inter:wght@400;500;600&display=swap');
