/* ============================================
   GlimpseVision — Glance Website
   Dark, Apple-esque, spatial computing vibes
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent: #6e8efb;
  --accent-secondary: #a777e3;
  --border: rgba(255, 255, 255, 0.08);
  --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 980px;
  --max-width-narrow: 680px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-y: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  opacity: 0.8;
}

/* ---- Navigation ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

nav .logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

nav .nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

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

/* ---- Hero ---- */

.hero {
  padding: 160px 24px 40px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.hero-screenshot {
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: 16px;
  overflow: hidden;
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.app-store-badge {
  display: inline-block;
}

.app-store-badge img {
  height: 54px;
}

.app-store-badge .badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text-primary);
  color: var(--bg);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover .badge-placeholder {
  transform: scale(1.03);
}

.app-store-badge .badge-placeholder svg {
  width: 20px;
  height: 24px;
}

/* ---- Sections ---- */

section {
  padding: 48px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

section.narrow {
  max-width: var(--max-width-narrow);
}

.section-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  margin: 0 auto 48px;
  border: none;
}

section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 32px;
}

section h2.center {
  text-align: center;
}

section p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

section p:last-child {
  margin-bottom: 0;
}

/* ---- Sources Grid ---- */

.sources-section {
  text-align: center;
}

.sources-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.sources-grid span {
  display: inline-block;
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}

.sources-grid span:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ---- Category Pills ---- */

.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.category-list span {
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
  border: 1px solid rgba(110, 142, 251, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---- Screenshot Placeholder (inline) ---- */

.inline-screenshot {
  width: 100%;
  margin: 40px 0 0;
  border-radius: 12px;
  overflow: hidden;
}

.inline-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

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

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

footer .footer-meta {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

footer .footer-meta a {
  color: var(--text-tertiary);
}

footer .footer-meta a:hover {
  color: var(--text-secondary);
}

/* ---- Fade-in Animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Privacy & Support Pages ---- */

.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.page-header .last-updated {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.page-header .page-intro {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-top: 12px;
}

.content-section {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 36px;
  color: var(--text-primary);
}

.content-section h3:first-child {
  margin-top: 0;
}

.content-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---- Contact Form ---- */

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 48px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-stack);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.contact-form button:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.email-alt {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 64px;
}

/* ---- FAQ ---- */

.faq {
  margin-top: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ---- Changelog Lists ---- */

.changelog ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.changelog ul li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  padding: 6px 0 6px 20px;
  position: relative;
}

.changelog ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.changelog ul li strong {
  color: var(--text-primary);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .hero {
    padding: 120px 20px 60px;
  }

  .hero .screenshot-placeholder {
    height: 200px;
  }

  section {
    padding: 64px 20px;
  }

  .contact-form {
    padding: 24px;
  }

  nav .nav-inner {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  nav .nav-links {
    gap: 16px;
  }

  nav .nav-links a {
    font-size: 0.8125rem;
  }

  .sources-grid span {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
}
