/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #f5f5f7;
  --surface:   #ffffff;
  --border:    rgba(0,0,0,0.08);
  --text:      #1d1d1f;
  --text-muted:#6e6e73;
  --accent:    #0071e3;
  --accent-hov:#0077ed;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --nav-h:     60px;
  --max-w:     1080px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,247,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.05); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,113,227,0.08) 0%, transparent 70%);
}
.hero-inner { max-width: 680px; }

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hov); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: rgba(0,0,0,0.06);
  color: var(--text);
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: rgba(0,0,0,0.1); transform: translateY(-1px); }

/* ─── Platform Cards ──────────────────────────────────────────── */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 100px;
}
.platform-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.platform-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 20px;
}
.platform-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.platform-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.card-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.card-link:hover { text-decoration: underline; }

/* ─── Page Hero ───────────────────────────────────────────────── */
.page-hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,113,227,0.07) 0%, transparent 70%);
}
.page-hero-inner { max-width: 600px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

/* ─── Apps Grid ───────────────────────────────────────────────── */
.apps-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.app-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
}
.empty-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 80px 32px;
}
.empty-icon {
  width: 56px;
  height: 56px;
  color: var(--text-muted);
  margin: 0 auto 20px;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.empty-state p { color: var(--text-muted); font-size: 15px; }

/* ─── Support ─────────────────────────────────────────────────── */
.support-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px 100px;
}
.support-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-group label span { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-error {
  background: #fff2f2;
  border: 1px solid #ffcdd2;
  color: #c00;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 4px;
}
.support-confirm {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.support-confirm svg {
  width: 56px;
  height: 56px;
  color: #30d158;
  margin: 0 auto 20px;
}
.support-confirm h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.support-confirm p { color: var(--text-muted); margin-bottom: 28px; }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .platforms { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; border-radius: var(--radius-sm); }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-copy { margin-left: 0; }
}
