/* Shared styles for Kronware app landing pages */

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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --accent: #6c8eff;
  --text: #e2e4ef;
  --muted: #7a7f99;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

/* ── Top nav bar ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-nav .back {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav .back:hover { color: var(--accent); text-decoration: none; }

.site-nav .home-logo {
  height: 28px;
  width: auto;
  opacity: 0.8;
}

/* ── Hero ── */
.app-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.app-hero .hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(108, 142, 255, 0.2);
}

.app-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.app-hero .hero-sub {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 1rem;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.play-btn:hover { opacity: 0.85; text-decoration: none; }

.play-btn svg { width: 18px; height: 18px; fill: #fff; }

/* ── Main content ── */
main {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  width: 100%;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

section p {
  color: var(--text);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* ── Feature groups ── */
.feature-group {
  margin-bottom: 1.4rem;
}

.feature-group h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.feature-group ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.35rem 1.5rem;
}

.feature-group ul li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.1em;
  position: relative;
}

.feature-group ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Privacy badges ── */
.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text);
}

.badge.green { border-color: #2a5a3a; color: #5ecf85; }

/* ── Open Source project cards ── */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.project-card .feature-group { margin-bottom: 1rem; }

.project-card .play-btn { margin-top: auto; align-self: flex-start; }

/* ── More apps grid ── */
.more-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.more-app-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.2s;
}

.more-app-card:hover { border-color: var(--accent); text-decoration: none; }

.more-app-card img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.more-app-card strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
}

.more-app-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .app-hero { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 1.25rem; }
  .app-hero h1 { font-size: 1.7rem; }
  main { padding: 0 1.25rem 3rem; }
  .site-nav { padding: 0.75rem 1.25rem; }
  .more-apps { grid-template-columns: 1fr; }
}
