/* ====================================================
   Shelf landing page - dark theme matching the app
   ==================================================== */

:root {
  --bg:            #1E1E22;
  --surface:       #2A2A30;
  --surface-2:     #34343C;
  --border:        #3F3F47;
  --text:          #E8E8E8;
  --text-secondary:#B8B8C0;
  --text-muted:    #8A8A92;
  --accent:        #5C5C62;
  --accent-hover:  #7A7A82;
  --accent-glow:   rgba(122, 122, 130, 0.25);
  --link:          #B8B8FF;
  --link-hover:    #DCDCFF;
  --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 20px 48px rgba(0, 0, 0, 0.5);
  --radius:        12px;
  --radius-sm:     8px;
  --font:          'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--link-hover); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 12px; color: var(--text-secondary); }

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

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

section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
section:first-of-type { border-top: none; }

/* ===================== Header / Nav ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 30, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-links .lang-switch {
  margin-left: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 720px) {
  .nav-links a:not(.lang-switch) { display: none; }
}

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

.hero {
  padding: 120px 0 96px;
  text-align: center;
  border-top: none;
}
.hero-logo {
  width: 128px;
  height: 128px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 24px var(--accent-glow));
}
.hero h1 {
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent-hover);
  color: var(--text);
}

.btn .icon { width: 18px; height: 18px; }

/* ===================== About ===================== */

.about p {
  font-size: 1.1rem;
  max-width: 760px;
  color: var(--text);
}
.about .lead {
  color: var(--text);
  font-size: 1.2rem;
}

/* ===================== Widgets grid ===================== */

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.widget-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-hover);
  background: var(--surface-2);
}
.widget-card .widget-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--accent-hover);
}
.widget-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}
.widget-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================== Screenshots ===================== */

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.screenshot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.screenshot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
.screenshot figcaption {
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ===================== Download ===================== */

.download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 28px;
  text-align: center;
}
.download-box .platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.download-box .platforms span { display: inline-flex; align-items: center; gap: 6px; }

/* ===================== FAQ ===================== */

.faq {
  margin-top: 28px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 18px 22px;
  transition: border-color 0.15s ease;
}
.faq details[open] {
  border-color: var(--accent-hover);
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 14px 0 0;
  color: var(--text-secondary);
}

/* ===================== About / Contacts ===================== */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-card a {
  font-size: 1.05rem;
  word-break: break-all;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer a {
  color: var(--text-secondary);
}
.site-footer a:hover {
  color: var(--text);
}

/* ===================== Misc ===================== */

code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--text);
}

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

/* Subtle scrollbar (Webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
