/* ================================================
   SoulKitchen Apps — styles.css
   Dark, minimal, retro-futuristic professional
   ================================================ */

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

/* ---- Reset & base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base:        #0b0d12;
  --bg-surface:     #13151c;
  --bg-elevated:    #1a1d26;
  --border:         #282c38;
  --text-primary:   #dce1ec;
  --text-secondary: #8892a4;
  --text-muted:     #555f72;
  --accent-blue:    #5b8dee;
  --accent-violet:  #8b7fd4;
  --accent-hover:   #7aa2f7;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Mono', monospace;
  --max-width:      900px;
  --radius:         8px;
}

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

body {
  background-color: var(--bg-base);
  background-image: linear-gradient(160deg, #0b0d12 0%, #0f1120 55%, #0b0d12 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Nav ---- */
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--accent-hover);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* ---- Main ---- */
main {
  flex: 1;
  width: 100%;
  padding: 0 1.5rem;
}

/* ---- Hero (index) ---- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent-violet);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* ---- Cards ---- */
.card-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.card:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), 0 4px 24px rgba(91, 141, 238, 0.08);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

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

/* ---- Contact (index) ---- */
.contact-section {
  max-width: var(--max-width);
  margin: 0 auto 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--accent-hover);
}

/* ---- Policy pages ---- */
.policy-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.policy-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.policy-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.policy-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.policy-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.policy-body p {
  margin-bottom: 1rem;
}

.policy-body ul,
.policy-body ol {
  margin: 0.75rem 0 1rem 1.25rem;
}

.policy-body li {
  margin-bottom: 0.4rem;
}

.policy-body a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---- Separator ---- */
.sep {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
  border: none;
  margin: 0 auto 2.5rem;
  border-radius: 2px;
  opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .nav-container {
    padding: 0 1rem;
  }

  main {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

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

  .policy-wrapper {
    padding: 2.5rem 0 3.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
  }
}
