@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-black: #000000;
  --bg-surface: #09090b;
  --bg-surface-elevated: #121215;
  --bg-card: rgba(14, 14, 17, 0.7);
  --border-subtle: #1f1f23;
  --border-muted: #27272a;
  --border-hover: #3f3f46;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent-white: #ffffff;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background grid pattern */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Cold top glow spotlight */
.bg-spotlight {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(59, 130, 246, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}

.nav-wrapper {
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-muted);
}

.nav-brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Layout Container */
main.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px 100px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 80px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: 100px;
  padding: 4px 14px 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-pill-badge {
  background: #ffffff;
  color: #000000;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-headline {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Minimalist Button System */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background-color: #e4e4e7;
  border-color: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-muted);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-direct {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  transition: all 0.15s var(--ease);
  margin-bottom: 12px;
}

.btn-direct:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

/* Bento Showcase Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bento-card.col-7 {
  grid-column: span 7;
}

.bento-card.col-5 {
  grid-column: span 5;
}

.bento-card.col-12 {
  grid-column: span 12;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.card-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Feature checklist tags */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.feature-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Sleek Mirror Download Box */
.download-module {
  margin-top: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.download-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.download-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alt-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s var(--ease);
}

.alt-link:hover {
  background: var(--border-hover);
  color: #ffffff;
  border-color: #52525b;
}

.alt-link svg, .alt-link img {
  width: 15px;
  height: 15px;
}

/* App Frame Showcase */
.app-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  margin-top: 16px;
}

.app-frame-bar {
  height: 36px;
  background: #0d0d10;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.traffic-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27272a;
}

.app-frame-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.app-frame-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Code block terminal style */
.code-terminal {
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a1a1aa;
  overflow-x: auto;
  line-height: 1.6;
}

.code-terminal .highlight {
  color: #fafafa;
}

.code-terminal .comment {
  color: #52525b;
}

/* Section Header */
.section-meta {
  margin-bottom: 24px;
}

.section-headline {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #ffffff;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Screenshots Row */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.gallery-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

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

.gallery-card-info {
  padding: 14px 18px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.gallery-card-sub {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

/* Modal Lightbox */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 1100px;
  max-height: 90vh;
  position: relative;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-muted);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  background: var(--bg-surface);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-headline {
    font-size: 38px;
  }
  .bento-card.col-7,
  .bento-card.col-5 {
    grid-column: span 12;
  }
  .gallery-row {
    grid-template-columns: 1fr;
  }
}
