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

:root {
  --bg: #0b0b0d;
  --bg-card: #131316;
  --bg-card-hover: #1a1a1f;
  --text: #e8e4dc;
  --text-muted: #7a7880;
  --text-subtle: #4a4852;
  --border: rgba(255,255,255,0.07);
  --accent: #e07eb0;
  --accent-dim: rgba(224,126,176,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===========================
   Layout
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Language Switcher
=========================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switcher a {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.lang-switcher a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.lang-switcher .sep {
  color: var(--text-subtle);
  font-weight: 400;
}

/* ===========================
   Site Header
=========================== */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

/* ===========================
   Hero — Homepage
=========================== */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ===========================
   Apps Grid — Homepage
=========================== */
.apps-section {
  padding: 80px 0 120px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 32px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon-placeholder {
  font-size: 1.6rem;
}

.app-card-meta h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-card-meta .app-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.app-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.app-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232,164,90,0.2);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: none;
}

.app-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

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

.app-card-link svg {
  transition: transform 0.2s;
}

.app-card:hover .app-card-link svg {
  transform: translateX(3px);
}

/* ===========================
   App Page — Hero
=========================== */
.app-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.app-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.app-hero-content .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-hero-content .breadcrumb a:hover {
  color: var(--text);
}

.app-hero-content .breadcrumb svg {
  opacity: 0.4;
}

.app-hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.app-hero-content .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 28px;
  font-weight: 400;
}

.app-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

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

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

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
  opacity: 1;
}

.app-hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 3rem;
}

.app-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   Screenshots
=========================== */
.screenshots-section {
  padding: 80px 0;
  overflow: hidden;
}

.screenshots-section .section-title {
  margin-bottom: 40px;
}

.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-subtle) transparent;
  scroll-snap-type: x mandatory;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 4px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--text-subtle);
  border-radius: 4px;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.screenshot-item img {
  height: 520px;
  width: auto;
  display: block;
}

/* ===========================
   Description
=========================== */
.description-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.description-section .container--narrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.description-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.description-section p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ===========================
   Features
=========================== */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.features-section .section-title {
  margin-bottom: 40px;
}

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

.feature-item {
  padding: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   Platforms
=========================== */
.platforms-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.platforms-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.platform-badge svg {
  opacity: 0.6;
}

/* ===========================
   Philosophy callout
=========================== */
.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(232,164,90,0.2);
  border-radius: var(--radius);
  padding: 40px;
  margin: 60px 0;
}

.callout p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  font-weight: 400;
  text-align: center;
}

.callout p strong {
  color: var(--accent);
  font-style: normal;
}

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

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

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

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  .site-nav { display: none; }

  .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .app-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    font-size: 2.4rem;
    order: -1;
  }

  .description-section .container--narrow {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .screenshot-item img {
    height: 380px;
  }

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