/* ============================================
   Sean Makes Stuff - Global Styles
   ============================================ */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #007aff;
  --color-accent-hover: #0056cc;
  --color-border: #e5e5e7;
  --color-badge-ios: #007aff;
  --color-badge-macos: #34c759;
  --color-badge-chrome: #fbbc04;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 960px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

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

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

/* ============================================
   Layout
   ============================================ */

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

main {
  flex: 1;
}

/* ============================================
   Navigation
   ============================================ */

.site-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav__brand:hover {
  color: var(--color-text);
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav__links a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav__links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ============================================
   Hero
   ============================================ */

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

.hero__image {
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   Section
   ============================================ */

.section {
  padding: 60px 0;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  text-align: center;
}

/* ============================================
   Project Cards
   ============================================ */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--color-border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  overflow: hidden;
}

.project-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.project-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--ios {
  background: rgba(0, 122, 255, 0.1);
  color: var(--color-badge-ios);
}

.badge--macos {
  background: rgba(52, 199, 89, 0.1);
  color: var(--color-badge-macos);
}

.badge--chrome {
  background: rgba(251, 188, 4, 0.15);
  color: #9a7400;
}

.badge--gpt {
  background: rgba(16, 163, 127, 0.1);
  color: #0d8c6d;
}

.project-card__top-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card__samples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}

.project-card__samples img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}

.project-card__samples > * {
  min-width: 0;
}

.project-card__link {
  font-size: 0.9375rem;
  font-weight: 500;
}

.project-card--coming-soon {
  opacity: 0.55;
  pointer-events: none;
}

.project-card--coming-soon .project-card__icon {
  background: var(--color-border);
}

/* ============================================
   Rockstar (Tip Jar)
   ============================================ */

.rockstar {
  text-align: center;
  padding: 60px 0;
}

.rockstar__tagline {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.rockstar__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.rockstar__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.rockstar__art-img {
  width: 160px;
  height: auto;
  border-radius: var(--radius);
}

.rockstar__qr-img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
}

.rockstar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-text);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.rockstar__btn:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
  transform: scale(1.03);
}

.rockstar__btn--deal {
  background: var(--color-accent);
}

.rockstar__btn--deal:hover {
  background: var(--color-accent-hover);
}

/* ============================================
   Project Detail Page
   ============================================ */

.project-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.project-hero__icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  background: var(--color-border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.project-hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.project-hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-hero__tagline {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
}

.project-description {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  text-align: center;
  padding-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-item__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.feature-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshots {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

.screenshot-placeholder {
  width: 200px;
  height: 430px;
  border-radius: var(--radius);
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  text-align: center;
  padding: 16px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: scale(1.03);
}

.btn--primary {
  background: var(--color-text);
  color: #fff;
}

.btn--primary:hover {
  background: #333;
  color: #fff;
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ============================================
   Support Page
   ============================================ */

.support-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--color-border);
  border-radius: 100px;
  padding: 3px;
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

.support-tabs-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.support-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: none;
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-stack);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: background 0.2s, color 0.2s;
}

.support-tab:hover {
  color: var(--color-text);
}

.support-tab.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.support-tab__icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}

.support-tab__label {
  white-space: nowrap;
}

.support-panel {
  display: none;
}

.support-panel.active {
  display: block;
}

.support-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.faq {
  max-width: 640px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-stack);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.faq__question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform 0.2s;
}

.faq__item.active .faq__question::after {
  content: "\2212";
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__answer__inner {
  padding: 0 0 20px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

/* ============================================
   Privacy / Legal Page
   ============================================ */

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.legal h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

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

.legal ul {
  margin: 8px 0 16px 24px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  margin-top: 40px;
}

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

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.site-footer__links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.site-footer__links a {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.site-footer__links a:hover {
  color: var(--color-text);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.0625rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

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

  .site-nav__links {
    gap: 16px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .screenshots {
    flex-direction: column;
    align-items: center;
  }

  .screenshot-placeholder {
    width: 100%;
    max-width: 240px;
  }
}
