:root {
  /* Brand + typography tokens shared across the /apps pages */
  --font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text: #f7f4ff;
  --text-muted: rgba(247, 244, 255, 0.72);
  --text-secondary: rgba(199, 197, 214, 0.78);
  --bg: #04030a;
  --bg-panel: #0d0b18;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 45px 80px rgba(3, 0, 15, 0.55);

  --white: #ffffff;
  --light-grey: #dfe0eb;
  --medium-grey: #9b9cb2;
  --dark-grey: #181522;
  --primary-orange: #ff932f;
  --secondary-orange: #ff7a45;
  --accent-orange: #ffb960;
  --accent-tapescam: #c096ff;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background: radial-gradient(circle at top, rgba(36, 27, 66, 0.4), transparent 55%), var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body.apps-shell {
  background: radial-gradient(circle at 20% -10%, rgba(96, 71, 196, 0.55), transparent 45%), var(--bg);
  padding-top: 4.5rem; /* offset fixed nav */
}

.apps-content {
  width: min(1200px, 100% - 3rem);
  margin: 0 auto;
  padding: 60px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
ol {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  .apps-content {
    width: calc(100% - 2rem);
    padding: 3.5rem 1rem 4rem;
  }
}

footer.apps-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.apps-footer .footer-grid,
.apps-footer .footer-bottom {
  width: min(1200px, 100% - 3rem);
  margin: 0 auto;
}

.apps-footer .footer-grid {
  margin-bottom: 2rem;
}

.apps-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.apps-footer h3,
.apps-footer h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.apps-footer h3 {
  font-size: 1.25rem;
}

.apps-footer p {
  margin: 0;
  color: var(--text-muted);
}

.apps-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.apps-footer .footer-links a {
  color: var(--light-grey);
  text-decoration: none;
  font-weight: 500;
}

.apps-footer .footer-links a:hover {
  color: var(--white);
}

.apps-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.apps-footer .footer-bottom a {
  color: var(--accent-tapescam);
}
