/* Context Studio — Landing Page Styles */

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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --border-subtle: #222222;
  --text-primary: #e8e8e8;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #4a9eff;
  --accent-hover: #6bb3ff;
  --accent-glow: rgba(74, 158, 255, 0.12);
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-width: 960px;
}

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

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

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

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
.cta-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Layout */

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

/* Hero */

.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero-name {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 400;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* Features */

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

.features-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  /* Visually styled as label, not as heading — intentional */
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: #2a2a2a;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Status */

.status {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.status-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-glow);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.status-text {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

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

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

.footer-legal {
  display: flex;
  gap: 20px;
  font-size: 0.8125rem;
}

.footer-legal a {
  color: var(--text-muted);
}

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

/* Fade-in animation */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legal pages */

.legal {
  padding: 80px 0 60px;
  max-width: 680px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-back:hover {
  color: var(--accent);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  * {
    transition-duration: 0s !important;
  }
}

/* Responsive */

@media (max-width: 640px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal {
    padding: 60px 24px 40px;
  }
}
