/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #0d0d0f;
  --surface:   #1a1a1f;
  --surface2:  #22222a;
  --border:    #2e2e3a;
  --accent:    #6c63ff;
  --accent2:   #ff6584;
  --text:      #e8e8f0;
  --muted:     #888899;
  --radius:    12px;
  --max-w:     1100px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

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

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

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ──────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-brand span {
  color: var(--accent);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); text-decoration: none; }
.nav-back svg { flex-shrink: 0; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 5px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Section titles ────────────────────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
}

/* ── Apps section ──────────────────────────────────────────── */
.apps-section {
  padding: 64px 0 80px;
}

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

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 12%, transparent);
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.app-icon img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
}

.app-info { flex: 1; }
.app-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.app-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

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

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

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

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

/* ── Contact section ───────────────────────────────────────── */
.contact-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}
.email-link:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-brand span { color: var(--accent); }

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Support page specific ─────────────────────────────────── */
.support-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.support-hero .app-icon {
  margin: 0 auto 24px;
  width: 100px;
  height: 100px;
  font-size: 2.4rem;
  border-radius: 22px;
}

.support-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.support-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.support-content {
  padding: 0 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.support-section {
  margin-bottom: 48px;
}

.support-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.support-section p {
  color: var(--muted);
  line-height: 1.7;
}
.support-section p + p { margin-top: 12px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

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

.faq-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.contact-support-card {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 12%, var(--surface)),
    color-mix(in srgb, var(--accent2) 8%, var(--surface))
  );
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.contact-support-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  border: none;
  padding: 0;
}

.contact-support-card p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.contact-support-card .email-link {
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: inline-flex;
}

.contact-support-card .hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* ── Screenshots gallery ───────────────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.screenshot-frame {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screenshot-frame img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  background: var(--surface2);
}

.screenshot-frame img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.screenshot-frame figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .apps-section { padding: 48px 0 64px; }
  .apps-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .support-content { padding: 0 0 60px; }
}
