/* ================================================================
   Indie Egg — Global Stylesheet
   ================================================================ */

/* ===== Variables ===== */
:root {
  --bg:           #0D0820;
  --surface:      #1A0A4B;
  --accent:       #F5C842;
  --text:         #F0EEF8;
  --text-muted:   #9B97B8;
  --border:       rgba(255, 255, 255, 0.08);

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width:    1100px;
  --nav-height:   64px;
  --ease:         0.2s ease;
  --radius:       16px;
  --radius-pill:  9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

img  { display: block; max-width: 100%; }
svg  { display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ================================================================
   Navigation
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13, 8, 32, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  width:  7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
  white-space: nowrap;
}

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

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width:  44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width:  20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  min-height: 44px;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover  { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #0D0820;
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(245, 200, 66, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* ================================================================
   Section utilities
   ================================================================ */
.section { padding: 96px 0; }

.section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ================================================================
   Homepage — Hero
   ================================================================ */
.hero {
  position: relative;
  padding: 112px 0 96px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 720px;
  background: radial-gradient(ellipse at 50% 20%, rgba(88, 40, 200, 0.24) 0%, transparent 62%);
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 30px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.02;
  margin-bottom: 22px;
}

.hero-heading .gold {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(245, 200, 66, 0.18);
}

.hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.hero-note {
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.45;
}

/* ================================================================
   Homepage — About
   ================================================================ */
.about-body {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.about-body p + p { margin-top: 10px; }

/* ================================================================
   Homepage — App Cards
   ================================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  transition: border-color var(--ease), box-shadow var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

.app-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.44);
}

.app-card-icon {
  width:  80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(140deg, #2D1060 0%, #4A1FA0 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 20px;
  user-select: none;
}

.app-card-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.app-card-name a {
  color: inherit;
  transition: color var(--ease);
}

.app-card-name a:hover { color: var(--accent); }

.app-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

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

.footer-copy {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.65;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.65;
  transition: color var(--ease), opacity var(--ease);
}

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

/* ================================================================
   App Detail Page (scramblr.html)
   ================================================================ */
.app-detail {
  padding: 64px 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.65;
  margin-bottom: 40px;
  transition: color var(--ease), opacity var(--ease);
}

.back-link:hover {
  color: var(--accent);
  opacity: 1;
}

.app-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
}

.app-hero-icon {
  width:  100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(140deg, #2D1060 0%, #4A1FA0 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
  user-select: none;
}

.app-hero-info h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.app-hero-tagline {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  line-height: 1.4;
}

.app-hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 28px;
}

/* ===== Screenshots ===== */
.screenshots {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.screenshots h2,
.features h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.screenshot-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.5;
}

/* ===== Features ===== */
.features {
  padding: 64px 0 96px;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 12px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-emoji {
  font-size: 20px;
  line-height: 1.4;
  flex-shrink: 0;
  user-select: none;
}

.feature-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-body span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================================================================
   Prose pages — Privacy + Support
   ================================================================ */
.page-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  line-height: 1.08;
}

.page-header p {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-muted);
}

.prose-wrapper { padding: 56px 0 96px; }

.prose { max-width: 680px; }

.prose .effective-date {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.55;
  margin-bottom: 48px;
  letter-spacing: 0.01em;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 48px 0 14px;
}

.prose h2:first-of-type { margin-top: 0; }

.prose p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 14px;
}

.prose ul {
  margin-bottom: 14px;
}

.prose ul li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.prose ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.75;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 200, 66, 0.35);
  transition: text-decoration-color var(--ease);
}

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

.prose .closing-note {
  margin-top: 48px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-muted);
  opacity: 0.8;
  line-height: 1.7;
  font-style: italic;
}

/* ================================================================
   Support page — Contact block
   ================================================================ */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 520px;
  margin-bottom: 64px;
}

.contact-block h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.contact-block p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* ================================================================
   FAQ (support.html)
   ================================================================ */
.faq-section h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--ease);
  line-height: 1.4;
  min-height: 44px;
}

.faq-q:hover { color: var(--accent); }

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease;
  opacity: 0.8;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 14px 22px 18px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-a { display: block; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
  /* Show hamburger, hide inline links */
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13, 8, 32, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-108%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.28s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 18px;
    padding: 10px 0;
    width: 100%;
  }

  /* Sections */
  .section  { padding: 64px 0; }
  .hero     { padding: 80px 0 64px; }

  /* App detail */
  .app-hero-inner {
    flex-direction: column;
    gap: 20px;
  }

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

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Contact */
  .contact-block { padding: 24px 22px; }
}

@media (max-width: 560px) {
  /* Screenshots stack on small mobile */
  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 240px;
    margin: 0 auto;
  }

  /* App cards full width */
  .apps-grid { grid-template-columns: 1fr; }

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

/* ================================================================
   New components — site expansion
   ================================================================ */

/* Status pill — Early Access, Live, etc. */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(245, 200, 66, 0.12);
  border: 1px solid rgba(245, 200, 66, 0.3);
  color: var(--accent);
  vertical-align: middle;
  margin-left: 10px;
}

/* Stats bar — used on web project pages */
.stats-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.stats-bar span {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--text-muted);
}

.stats-bar strong {
  color: var(--text);
  font-weight: 600;
}

/* Works page section — padding before each product group */
.works-section { padding: 72px 0 0; }

/* Web project visit link — text-style CTA */
.web-visit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--ease);
}

.web-visit-link:hover { gap: 10px; }
