/* === VARIABLES === */
:root {
  --bg:           #000000;
  --surface:      #0d0d0d;
  --surface-alt:  #050505;
  --border:       #1e1e1e;
  --border-subtle:#111111;
  --text:         #ffffff;
  --text-secondary: #888888;
  --text-muted:   #555555;
  --accent:       #0a84ff;
  --accent-hover: #0070e0;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --nav-height:   56px;
  --max-width:    1100px;
  --radius-card:  20px;
  --section-pad:  80px 24px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(0,0,0,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 40px 100px;
  background: var(--bg);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(10,132,255,0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-eyebrow.loaded { opacity: 1; }
.hero-headline {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-line.loaded {
  opacity: 1;
  transform: translateY(0);
}
.accent { color: var(--accent); }
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-sub.loaded { opacity: 1; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 980px;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s ease;
}
.hero-cta.loaded {
  opacity: 1;
  transform: scale(1);
}
.hero-cta:hover { background: var(--accent-hover); }

/* === APPS === */
.apps-section {
  padding: var(--section-pad);
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
.app-info { flex: 1; }
.app-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.app-platform {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 12px;
}
.app-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 24px;
}
.app-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.app-link:hover { text-decoration: underline; }
.screenshots-strip {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.screenshots-strip::-webkit-scrollbar { display: none; }
.screenshot {
  height: 160px;
  width: auto;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* === ABOUT === */
.about-section {
  padding: var(--section-pad);
  background: var(--surface-alt);
  border-top: 1px solid var(--border-subtle);
}
.about-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 540px;
}
.about-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
}

/* === FOOTER === */
.site-footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a,
.footer-links span {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text-secondary); }

/* === PROSE PAGE === */
.prose-page {
  min-height: calc(100vh - var(--nav-height));
  padding: 72px 24px 96px;
}
.prose-body {
  max-width: 640px;
  margin: 0 auto;
}
.prose-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.prose-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}
.prose-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.prose-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.prose-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.prose-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.prose-body section {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.prose-body section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.prose-body a {
  color: var(--accent);
}
.prose-body a:hover {
  text-decoration: underline;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-line,
  .hero-sub,
  .hero-cta {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-glow { animation: none !important; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero          { padding: 80px 24px 64px; }
  .nav-inner     { padding: 0 24px; }
  .nav-tagline   { display: none; }
  .apps-section  { padding: 64px 24px; }
  .app-card      { flex-direction: column; gap: 20px; padding: 28px; }
  .app-icon      { width: 64px; height: 64px; border-radius: 14px; }
  .about-section { padding: 64px 24px; }
  .site-footer   { padding: 28px 24px; }
  .screenshot    { height: 120px; }
}
@media (max-width: 480px) {
  .footer-inner  { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links  { gap: 16px; }
}
