:root {
  --bg: #050509;
  --fg: #f8fafc;
  --muted: rgba(203, 213, 225, 0.68);
  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --surface: rgba(15, 15, 30, 0.7);
  --border: rgba(148, 163, 184, 0.14);
  --shadow: 0 24px 80px rgba(76, 29, 149, 0.18);
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 70%),
    linear-gradient(180deg, #050509 0%, #0b0b14 50%, #050509 100%);
  color: var(--fg);
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

.page-shell {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 48px) 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.brand {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.35);
  font-size: 14px;
  color: var(--muted);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-card {
  width: min(768px, 100%);
  text-align: center;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.logo-placeholder {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.headline {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.tagline {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  margin: 12px 0;
}

.subline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 0;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-badge {
  display: block;
  height: 64px;
  width: auto;
}

.app-store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16, 9, 40, 0.25);
}

.app-store-button:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.7);
  outline-offset: 3px;
}

.page-body {
  width: min(768px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(9, 9, 17, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
}

.muted-block {
  color: var(--muted);
  font-size: 15px;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 64px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 12px;
}

.footer-links a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--accent);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.embed-frame {
  margin-top: 24px;
  padding: 20px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(15, 15, 30, 0.55);
}

.embed-frame iframe {
  width: 100%;
  border: 0;
  border-radius: 18px;
}

/* Contact & Support Page Styles */
.intro-text {
  margin-bottom: 32px;
}

.support-section,
.faq-section,
.general-section,
.help-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.support-section {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}

.section-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--fg);
}

.support-email {
  margin: 16px 0;
  font-size: 18px;
}

.email-link {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.email-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* FAQ Accordion Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 15, 30, 0.4);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(15, 15, 30, 0.5);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 12px;
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-answer p {
  padding: 0 0 20px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--accent-strong);
}

.help-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.help-section strong {
  color: var(--fg);
  font-weight: 600;
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    gap: 16px;
  }

  .content-card,
  .page-body {
    padding: 28px;
  }

  .support-section,
  .faq-section,
  .general-section,
  .help-section {
    margin-top: 32px;
    padding-top: 24px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-answer p {
    padding-bottom: 16px;
    font-size: 14px;
  }

  .support-email {
    font-size: 16px;
  }
}
