:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #0d1117;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
}

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

/* Hero */
.hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(88, 166, 255, 0.13), transparent 70%);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }

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

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

/* Apps section */
.apps {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.apps h2, .about h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.card-stretch {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.app-icon-img {
  width: calc(100% + 3.5rem);
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  margin: -2rem -1.75rem 0;
  border-radius: 12px 12px 0 0;
  object-fit: cover;
}

.app-card h3 { font-size: 1.25rem; }

.app-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  flex-grow: 1;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-domain {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.app-domain:hover { text-decoration: underline; }

/* Store page */
.store-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.store-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.store-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
}

.store-title { flex: 1; min-width: 200px; }

.store-title h1 { font-size: clamp(1.5rem, 4vw, 2rem); }

.store-dev {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.store-dev:hover { text-decoration: underline; }

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

.screenshots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 2rem 0 1.25rem;
  scroll-snap-type: x proximity;
}

.screenshots::-webkit-scrollbar { height: 8px; }
.screenshots::-webkit-scrollbar-track { background: transparent; }
.screenshots::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.shot {
  flex: 0 0 150px;
  aspect-ratio: 9 / 19;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  scroll-snap-align: start;
}

img.shot {
  border-style: solid;
  object-fit: cover;
  display: block;
}

.store-section { padding: 1rem 0; }

.store-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.store-section p {
  color: var(--text-dim);
  max-width: 65ch;
}

.details { display: grid; }

.details > div {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.details dt {
  width: 110px;
  flex-shrink: 0;
  color: var(--text-dim);
}

.details dd { margin: 0; }

.details a { color: var(--accent); }

/* About */
.about {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}

.about p { color: var(--text-dim); }

.about a { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
