/* Base */
:root {
  --bg: #0b0e14;
  --bg-elev: #0f1320;
  --elev-2: #12182a;
  --text: #e6e7ea;
  --text-dim: #a4a8b7;
  --primary: #7c5cff;
  --primary-600: #6a49ff;
  --secondary: #1f6feb;
  --accent: #23d997;
  --muted: #22283a;
  --outline: #2b3146;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -20%, rgba(124,92,255,0.15), transparent 60%),
              radial-gradient(1000px 500px at -10% 20%, rgba(31,111,235,0.12), transparent 60%),
              var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,20,0.6);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--outline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 6px 14px rgba(124,92,255,.35)); }
.brand span { font-size: 18px; }

.nav-list { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text-dim); text-decoration: none; font-weight: 500; }
.nav-list a:hover { color: var(--text); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--outline); color: var(--text); border-radius: 10px; padding: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; font-weight: 600; transition: .2s ease; }
.btn-small { padding: 8px 12px; border-radius: 10px; }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-secondary { background: var(--muted); color: var(--text); border-color: var(--outline); }
.btn-secondary:hover { border-color: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--outline); }
.btn-ghost:hover { border-color: var(--primary); color: #fff; }

/* Hero */
.hero { padding: 72px 0 32px; border-bottom: 1px solid var(--outline); background: linear-gradient(180deg, rgba(124,92,255,.06), rgba(0,0,0,0)); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; letter-spacing: .2px; }
.hero p { color: var(--text-dim); margin: 0 0 20px; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.store-badge { margin-top: 10px; opacity: .9; display: flex; justify-content: flex-start; }
.store-badge img { display: block; width: 220px; height: auto; max-width: 100%; }

/* Phone mock */
.hero-media { display: flex; justify-content: center; }
.phone-frame { position: relative; width: 320px; height: 640px; border-radius: 32px; background: var(--bg-elev); border: 1px solid var(--outline); box-shadow: var(--shadow); overflow: hidden; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 160px; height: 24px; background: var(--elev-2); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; border: 1px solid var(--outline); border-top: none; }
.phone-screen { position: absolute; inset: 24px 12px 12px; background: linear-gradient(180deg, #0f1320, #0b0e14); border-radius: 24px; padding: 16px; display: grid; align-content: start; gap: 12px; }
.app-card.featured { display: grid; grid-template-columns: 56px 1fr; gap: 12px; background: linear-gradient(180deg, rgba(124,92,255,.16), rgba(124,92,255,.06)); border: 1px solid var(--outline); border-radius: 16px; padding: 12px; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--muted); font-size: 26px; box-shadow: inset 0 0 0 1px var(--outline); }
.app-icon-img { width: 56px; height: 56px; border-radius: 14px; display: block; background: var(--muted); border: 1px solid var(--outline); object-fit: cover; }
.app-meta h3 { margin: 0 0 4px; font-size: 16px; }
.app-meta p { margin: 0 0 8px; color: var(--text-dim); font-size: 13px; }
.badges { display: flex; gap: 8px; }
.badge { font-size: 11px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--outline); padding: 4px 8px; border-radius: 999px; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: linear-gradient(180deg, rgba(35,217,151,.06), rgba(0,0,0,0)); border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); }
.section-head { margin-bottom: 24px; }
.section-head h2 { margin: 0 0 6px; font-size: 26px; }
.section-head p { margin: 0; color: var(--text-dim); }

/* Apps grid */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--bg-elev); border: 1px solid var(--outline); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.app-content h3 { margin: 0 0 6px; font-size: 18px; }
.app-content p { margin: 0 0 10px; color: var(--text-dim); font-size: 14px; }
.app-tags { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.app-tags li { font-size: 12px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--outline); padding: 4px 8px; border-radius: 999px; }
.app-cta { text-decoration: none; color: #fff; background: linear-gradient(180deg, var(--secondary), #1659c5); border: 1px solid #2e4e91; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.app-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

.apps-cta { text-align: center; margin-top: 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-card { background: var(--bg-elev); border: 1px solid var(--outline); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.about-card h3 { margin: 0 0 8px; font-size: 18px; }
.about-card p { margin: 0; color: var(--text-dim); }

/* Contact */
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(180deg, rgba(124,92,255,.10), rgba(0,0,0,0)); border: 1px solid var(--outline); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.contact-mail { color: #fff; font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--outline); padding: 24px 0; background: rgba(0,0,0,.2); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.site-footer nav { display: flex; gap: 12px; }
.site-footer nav a { color: var(--text-dim); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer p { margin: 0; text-align: right; color: var(--text-dim); }

/* Responsive */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 16px; }
  .store-badge img { width: 180px; }
  .nav-toggle { display: inline-flex; }
  .nav-list { position: absolute; right: 16px; top: 64px; flex-direction: column; align-items: stretch; gap: 12px; background: var(--bg-elev); border: 1px solid var(--outline); padding: 12px; border-radius: 12px; display: none; }
  .nav-list.active { display: flex; }
  .apps-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer p { text-align: center; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}


