/* ============================================================
   Tech Gravity — Developer Site
   Pixel art / retro aesthetic, professional tone
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:          #0d0f1a;
  --bg-card:     #141728;
  --bg-card-alt: #1a1f36;
  --border:      #2a2f4a;
  --accent:      #6c63ff;
  --accent-alt:  #ff6584;
  --text:        #e2e4f0;
  --text-muted:  #7b80a0;
  --pixel-green: #39d353;
  --pixel-blue:  #58a6ff;
  --pixel-yellow:#f0e68c;
  --radius:      4px;
  --font-pixel:  'Press Start 2P', monospace;
  --font-body:   'Inter', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Pixel grid background (subtle) ────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: var(--accent); }

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--pixel-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* Blinking cursor on eyebrow */
.hero-eyebrow::after {
  content: '_';
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 4vw, 30px);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(108,99,255,.35);
}
.btn-primary:hover {
  background: #7b74ff;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 0 28px rgba(108,99,255,.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Section headings ───────────────────────────────────────── */
.section-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--pixel-blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 20px);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
}

.divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 20px 0 40px;
  image-rendering: pixelated;
}

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--text-muted); font-size: 15px; line-height: 1.9; }
.about-text p strong { color: var(--text); font-weight: 600; }

.about-stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.stack-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--pixel-yellow);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.stack-list li::before {
  content: '▸';
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
}

/* ── Apps ───────────────────────────────────────────────────── */
#apps { background: var(--bg-card-alt); }

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.app-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(108,99,255,.15);
}

.app-icon-wrap {
  padding: 32px 24px 32px 32px;
  display: flex;
  align-items: flex-start;
}

/* Pixel art app icon placeholder */
.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: #1a1f36;
  border: 2px solid var(--border);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  overflow: hidden;
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* Pixel art sudoku grid pattern */
.app-icon .px { width: 100%; height: 100%; }
.px-dark  { background: #0d0f1a; }
.px-acc   { background: #6c63ff; }
.px-lt    { background: #2a2f4a; }
.px-green { background: #39d353; }

.app-body { padding: 32px 32px 32px 0; }

.app-platform {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--pixel-green);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.app-name {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.app-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 520px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 10px;
  letter-spacing: 0.03em;
}

.app-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* App Store badge */
.badge-appstore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: opacity 0.15s, transform 0.15s;
}
.badge-appstore svg { width: 16px; height: 16px; flex-shrink: 0; }
.badge-appstore:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }

/* Coming soon chip */
.coming-soon {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  letter-spacing: 0.1em;
  align-self: center;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-email {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 16px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.contact-email:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

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

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── Privacy page ───────────────────────────────────────────── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
}

.prose-page h1 {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.6;
}

.prose-page .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.prose-page h2 {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin: 40px 0 16px;
  line-height: 1.7;
}

.prose-page p,
.prose-page li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
}

.prose-page ul {
  padding-left: 20px;
  margin-top: 8px;
}

.prose-page li { margin-bottom: 6px; }

.prose-page a { color: var(--accent); }
.prose-page a:hover { text-decoration: underline; }

.prose-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
  transition: color 0.15s;
}
.prose-page .back-link:hover { color: var(--text); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  section { padding: 60px 0; }

  .hero { padding: 60px 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .app-icon-wrap {
    padding: 28px 28px 0;
  }

  .app-body {
    padding: 20px 28px 28px;
  }

  .contact-card { padding: 32px 24px; }

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

  .nav-links { gap: 20px; }
}

@media (max-width: 400px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
}
