:root {
  --bg: #0b1220;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0ea5e9;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", sans-serif;
  color: var(--text); background: #f6f8fb;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 10; }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: 0.2px; color: var(--text); }
.nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--primary); }

/* Hero */
.hero { padding: 65px 0; background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero-content h1 { font-size: 40px; margin: 0 0 8px; }
.hero-subtitle { margin: 0 0 20px; color: #e2e8f0; }
.hero-actions { display: flex; gap: 12px; }

/* Phone mockup */
.hero-mockup { display: flex; justify-content: center; }
.phone { position: relative; width: 288px; max-width: 42vw; aspect-ratio: 9/19; border-radius: 32px; background: #0b1220; box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 0 0 10px rgba(255,255,255,0.08); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 22px; background: #0b1220; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
.phone-screen { width: 100%; height: 100%; object-fit: cover; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.btn-primary { background: var(--surface); color: var(--text); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-secondary:hover { border-color: #fff; }
.btn-large { height: 44px; padding: 0 22px; font-size: 15px; }

/* Sections */
.section { padding: 56px 0; }
.section-title { font-size: 26px; margin: 0 0 8px; }
.section-subtitle { color: var(--muted); margin: 0 0 18px; }

/* Intro */
.intro-card { background: var(--surface); border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.intro-note { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery-item { background: var(--surface); border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; cursor: zoom-in; }

@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(2px); z-index: 50; }
.modal.show { display: flex; }
.modal-image { max-width: min(880px, 92vw); max-height: 86vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: none; border-radius: 8px; background: #ffffff; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.modal-close:hover { filter: brightness(0.95); }

/* Download */
.download { background: #f1f5f9; }
.download-desc { color: var(--muted); margin-bottom: 14px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid #e5e7eb; }
.footer-container { padding: 18px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* Features */
.features { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-item { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.feature-item h4 { margin: 0 0 6px; font-size: 16px; }
.feature-item p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mockup { order: -1; margin-bottom: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}
.screenshots .container { max-width: 1300px; }