/*
 * Sudoku App - Static Website Styles
 * Aesthetic: Refined minimalism with geometric precision
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #121212;
  --bg-surface: #1E1E1E;
  --bg-elevated: #252525;
  --text-primary: #FFFFFF;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #3A3A4A;
  --border: #2A2A2A;
  --grid-line: rgba(255, 255, 255, 0.04);
}

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

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grid background pattern */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Main container */
.container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 800px;
}

/* Page wrapper */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Navigation */
.nav {
  padding: 32px 0;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link::before {
  content: '←';
  font-size: 0.875rem;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav-link:hover::before {
  transform: translateX(-3px);
  opacity: 1;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 0 120px;
}

.hero-title {
  font-family: 'DM Mono', monospace;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
}

.hero-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--text-muted);
  margin: 32px auto 0;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  max-width: 320px;
}

/* Navigation links on home */
.home-links {
  display: flex;
  gap: 40px;
  margin-top: 64px;
}

.home-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 0;
  position: relative;
  transition: color 0.2s ease;
}

.home-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

.home-link:hover {
  color: var(--text-primary);
}

.home-link:hover::after {
  width: 100%;
}

/* Content Pages */
.content {
  flex: 1;
  padding: 40px 0 120px;
}

.page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: 'DM Mono', monospace;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Text content */
.text-content {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
}

.text-content p {
  margin-bottom: 24px;
}

.text-content p:last-child {
  margin-bottom: 0;
}

.text-content a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
  transition: border-color 0.2s ease;
}

.text-content a:hover {
  border-color: var(--text-primary);
}

/* Support form section */
.form-intro {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.form-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .home-links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .form-container {
    padding: 20px;
  }
}

/* Subtle fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .content {
  animation: fadeIn 0.6s ease-out;
}
