/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #007AFF;
  --accent-dark:   #0062CC;
  --bg:            #ffffff;
  --bg-alt:        #f5f5f7;
  --bg-card:       #ffffff;
  --text:          #1d1d1f;
  --text-secondary:#6e6e73;
  --border:        #d2d2d7;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover:  0 6px 24px rgba(0,0,0,0.12);
  --max-width:     960px;
  --font:          -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #000000;
    --bg-alt:        #1c1c1e;
    --bg-card:       #1c1c1e;
    --text:          #f5f5f7;
    --text-secondary:#98989d;
    --border:        #38383a;
    --shadow:        0 2px 12px rgba(0,0,0,0.4);
    --shadow-hover:  0 6px 24px rgba(0,0,0,0.6);
  }
}

html { scroll-behavior: smooth; }

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

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

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

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

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--border); }

/* ─── Nav ──────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  nav { background: rgba(0,0,0,0.85); }
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  border-top: none;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,122,255,0.35);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Section headings ─────────────────────────────────────────── */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 520px;
}

/* ─── App Cards ────────────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

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

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.app-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.app-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-card-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.app-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 980px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.app-card-footer {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Social links ─────────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 980px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ─── About ────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ─── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

/* ─── App detail page ──────────────────────────────────────────── */
.app-hero {
  padding: 60px 0 48px;
}

.app-hero-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.app-hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.app-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.app-hero-meta h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.app-hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
}

.app-badges { display: flex; gap: 12px; flex-wrap: wrap; }

.appstore-badge {
  display: inline-block;
  height: 40px;
}

.appstore-badge img {
  height: 40px;
  width: auto;
}

/* ─── Store download buttons ───────────────────────────────────── */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 44px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.store-btn:hover {
  opacity: 0.82;
  transform: translateY(-1px);
  text-decoration: none;
}

.store-btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: #fff;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn-text small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.store-btn-text strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 580px) {
  .app-hero-inner { flex-direction: column; }
  .app-hero-icon { width: 88px; height: 88px; border-radius: 20px; }
}

/* ─── Features grid ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Legal pages ──────────────────────────────────────────────── */
.legal-content {
  max-width: 680px;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 36px 0 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-meta {
  display: inline-block;
  margin-bottom: 36px;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: 0.5; }

/* ─── Page nav (for app sub-pages) ────────────────────────────── */
.page-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.page-nav a {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.page-nav a:hover { color: var(--text); text-decoration: none; }
.page-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Support FAQ ──────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--text-secondary); }
.faq-item[open] summary::after { content: "−"; }

.faq-body {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── Contact box ──────────────────────────────────────────────── */
.contact-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-box-text h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-box-text p { color: var(--text-secondary); font-size: 0.9rem; }

/* ─── Coming Soon badge ────────────────────────────────────────── */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 980px;
  border: 1.5px dashed var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.coming-soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ─── Nav active link ──────────────────────────────────────────── */
.nav-active { color: var(--accent) !important; }

/* ─── Timeline ─────────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}

.timeline-item {
  display: flex;
  gap: 24px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 6px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--border);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot--current {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 8px 0;
  min-height: 24px;
}

.timeline-content {
  flex: 1;
  padding-bottom: 32px;
}

.timeline-item--last .timeline-content {
  padding-bottom: 0;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.job-role {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.job-company {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}

.job-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.tag--current {
  background: rgba(0,122,255,0.1);
  color: var(--accent);
  border-color: rgba(0,122,255,0.3);
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.job-meta-sep { opacity: 0.4; }

.job-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.job-bullets {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.job-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.job-subroles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.job-subrole {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.job-subrole-title {
  font-weight: 600;
  color: var(--text);
}

.job-subrole-period {
  color: var(--text-secondary);
}

.job-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

@media (max-width: 580px) {
  .timeline-item { gap: 16px; }
  .job-card { padding: 20px; }
  .job-header { flex-direction: column; }
}

/* ─── Utilities ────────────────────────────────────────────────── */
.text-secondary { color: var(--text-secondary); }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
