:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #4b5563;
  --subtle: #6b7280;
  --accent: #111827;
  --accent-hover: #374151;
  --max-width: 920px;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

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

/* Intro */
.intro {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.intro h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.intro p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 20px;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.btn:hover {
  background: var(--surface);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Sections */
.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* App Cards */
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.app-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.83rem;
  color: var(--subtle);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

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

.app-description {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.app-features {
  list-style: disc;
  margin-left: 18px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-features li + li {
  margin-top: 4px;
}

/* Screenshot Strip */
.previews-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.screenshot-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.shot-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  cursor: pointer;
  flex: 0 0 auto;
  overflow: hidden;
  display: block;
}

.shot-btn:hover {
  border-color: #9ca3af;
}

.shot-btn img {
  display: block;
  height: 240px;
  width: auto;
  object-fit: cover;
}

/* About & Contact */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.info-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
}

.info-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.info-box p {
  font-size: 0.93rem;
  color: var(--muted);
}

.info-box a {
  color: var(--text);
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  color: var(--subtle);
  font-size: 0.86rem;
}

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

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--subtle);
}

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

/* Simple Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-img {
  max-width: 82vw;
  max-height: 85vh;
  border-radius: 8px;
  background: #ffffff;
}

.lightbox-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
}

@media (max-width: 600px) {
  .app-card {
    padding: 18px;
  }
  .shot-btn img {
    height: 190px;
  }
  .lightbox-btn {
    padding: 6px 10px;
  }
}
