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

:root {
  --bg: #000;
  --bg-surface: #0a0a0a;
  --bg-card: #111;
  --text: #e0e0e0;
  --text-muted: #888;
  --cyan: #00e5ff;
  --magenta: #ff2d78;
  --green: #00e676;
  --orange: #ff9100;
  --yellow: #ffd600;
  --nav-height: 56px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#bg-canvas.loaded {
  opacity: 1;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }

img { max-width: 100%; height: auto; }

/* ===== Nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
  height: var(--nav-height);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav-logo img {
  border-radius: 4px;
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-app-store img { display: block; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
}

.hero-logo {
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: .02em;
}

.hero-cta {
  display: inline-block;
}
.hero-cta img {
  height: 54px;
  transition: transform .15s;
}
.hero-cta:hover img {
  transform: scale(1.05);
}

/* ===== Video Section ===== */
.video-section {
  padding: 40px 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.video-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text);
}

.video-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.video-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  flex: 1 1 240px;
  max-width: 280px;
}

.video-card video {
  width: 100%;
  display: block;
}

.video-card .video-label {
  padding: 12px 16px;
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 680px) {
  .video-card { max-width: 240px; }
}

/* ===== Screenshots ===== */
.screenshots-section {
  padding: 28px 0 60px;
}

.screenshots-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 32px;
  padding: 0 20px;
}

.screenshot-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 16px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.screenshot-scroll::-webkit-scrollbar { height: 6px; }
.screenshot-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshot-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 276px;
}

.screenshot-item img {
  width: 100%;
  border-radius: 20px;
  border: 2px solid #222;
  box-shadow: 0 8px 32px rgba(0, 229, 255, .08);
}

.screenshot-item .screenshot-label {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

@media (min-width: 640px) {
  .screenshot-scroll {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .screenshot-item { width: 253px; }
}

.screenshots-tagline {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  padding: 0 20px;
  line-height: 2.2;
}

/* ===== Credits ===== */
.credits-section {
  text-align: center;
  padding: 40px 20px 60px;
  border-top: 1px solid #1a1a1a;
}

.credits-section p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.credits-section .credit-name {
  color: var(--text);
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 40px 20px;
  text-align: center;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-links a:hover { color: var(--text); }

.footer-app-store img { display: block; }

.footer-copy {
  font-size: .8rem;
  color: #555;
}

/* ===== Page Content (Support, Privacy) ===== */
.page-content {
  min-height: calc(100vh - var(--nav-height) - 200px);
  padding: 60px 20px;
}

.page-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}

.page-inner h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.page-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text);
}

.page-inner p {
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-inner ul, .page-inner ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-inner li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

.page-inner strong { color: var(--text); }

.page-inner em {
  color: #666;
  font-style: italic;
}

.page-inner a { color: var(--cyan); }

.page-inner code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* ===== Utility ===== */
@media (max-width: 480px) {
  .hero { padding: 48px 16px 40px; }
  .hero-tagline { font-size: 1.2rem; }
  .hero-cta img { height: 44px; }
  .nav-logo span { display: none; }
  .nav-links { gap: 16px; }
}
