:root {
  --brand-primary: #1a1a2e;
  --brand-accent: #e94560;
  --brand-accent-light: #ff6b6b;
  --brand-secondary: #16213e;
  --text-primary: #f0f0f0;
  --text-muted: #a0a0b0;
  --surface: #1f2b47;
  --surface-hover: #263552;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 860px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--brand-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--brand-accent-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Header ---- */
.site-header {
  background: var(--brand-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.site-header .logo-link:hover {
  text-decoration: none;
  color: var(--brand-accent-light);
}

.header-breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Hero ---- */
.hero {
  padding: 72px 24px 48px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero .app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero .app-icon-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.store-badge img {
  height: 44px;
  border-radius: 8px;
}

.store-badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Content area ---- */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ---- Section cards ---- */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.section-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--brand-accent-light);
}

.section-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.section-card h3:first-of-type {
  margin-top: 0;
}

.section-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.section-card ul, .section-card ol {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 20px;
  margin-bottom: 12px;
}

.section-card ul li, .section-card ol li {
  margin-bottom: 6px;
}

/* ---- App grid (homepage) ---- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.app-card:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  text-decoration: none;
}

.app-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.app-card .card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.app-card .card-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--brand-primary);
}

.chip:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent-light);
  text-decoration: none;
}

/* ---- Feature list ---- */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--brand-accent-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Contact highlight ---- */
.contact-highlight {
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.contact-highlight .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-highlight a {
  font-weight: 600;
}

/* ---- Subnav ---- */
.app-subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  justify-content: center;
}

.subnav-link {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: border-color 0.15s, color 0.15s;
}

.subnav-link:hover,
.subnav-link.active {
  border-color: var(--brand-accent);
  color: var(--brand-accent-light);
  text-decoration: none;
}

/* ---- Page title (policy / support) ---- */
.page-hero {
  padding: 52px 24px 36px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-hero .meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}

.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.site-footer .footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.site-footer .copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .section-card { padding: 24px 18px; }
  .app-grid { grid-template-columns: 1fr; }
}
