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

:root {
  /* ── Pure Black & White Studio Theme (Aligned with Desktop UI) ── */
  --bg-deep: #000000;
  --bg-dark: #000000;
  --bg-panel: #0A0A0A;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.10);
  --border-glow: rgba(255, 255, 255, 0.28);
  
  --accent-primary: #FFFFFF;
  --accent-secondary: #E4E4E7;
  --accent-muted: #A1A1AA;
  --accent-dim: #52525B;
  
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-main);
}

body {
  overflow-x: hidden;
  background-color: #000000;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  min-height: 100vh;
}

/* Background Subtle Grid Lines */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* ── Header & Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.nav-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link:hover {
  color: #FFFFFF;
}

.nav-download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #FFFFFF;
  color: #000000;
  text-decoration: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.nav-download-btn:hover {
  background: #F4F4F5;
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  z-index: 1;
  padding: 150px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.hero-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px #FFFFFF;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.4); }
}

.hero-title {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.hero-title .gradient-text {
  background: linear-gradient(180deg, #FFFFFF 40%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-primary-download {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: #FFFFFF;
  color: #000000;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-download:hover {
  background: #F4F4F5;
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.35);
}

.btn-primary-download.downloading {
  background: #E4E4E7;
  transform: scale(0.98);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.btn-primary-download svg {
  width: 22px;
  height: 22px;
}

.btn-primary-download .btn-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-primary-download .btn-label-title {
  font-size: 16px;
  line-height: 1.2;
}

.btn-primary-download .btn-label-sub {
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(0, 0, 0, 0.6);
  margin-top: 2px;
}

.btn-secondary-zip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: #FFFFFF;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary-zip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

/* ── Interactive Live Reticle Widget (Monochrome Studio) ── */
.hero-widget-card {
  background: #0A0A0A;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.02);
  position: relative;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.widget-fps-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FFFFFF;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.reticle-display-viewport {
  width: 100%;
  height: 240px;
  background: #000000;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.viewport-crosshairs-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
}

.viewport-axis-x {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.viewport-axis-y {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

#preview-svg-container {
  position: relative;
  z-index: 2;
  transition: transform 0.1s ease;
}

.widget-controls {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.shape-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.shape-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shape-btn.active, .shape-btn:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.color-palette {
  display: flex;
  gap: 8px;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-dot.active {
  transform: scale(1.2);
  border-color: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ── Feature Highlights Grid ── */
.section {
  padding: 100px 48px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #0A0A0A;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.04);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.feature-tag {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Typography & Roblox Showcase ── */
.typography-showcase {
  background: #0A0A0A;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 40px;
  margin-top: 40px;
}

.typo-input-group {
  margin-bottom: 28px;
}

.typo-input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.typo-input {
  width: 100%;
  padding: 16px 20px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  font-family: var(--font-main);
  font-size: 16px;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.typo-input:focus {
  border-color: #FFFFFF;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.18);
}

.typo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.typo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.typo-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.typo-name {
  font-size: 11px;
  font-weight: 700;
  color: #E4E4E7;
  font-family: var(--font-mono);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.typo-preview-text {
  font-size: 15px;
  color: #FFFFFF;
  line-height: 1.4;
  word-break: break-word;
}

/* ── Download CTA Banner ── */
.download-cta-section {
  padding: 60px 48px 120px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-banner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), #0A0A0A;
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.03);
}

.cta-banner h2 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.cta-banner p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #18181B;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-card);
  padding: 40px 48px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-links a:hover {
  color: #FFFFFF;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    gap: 48px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .typo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 100px 20px 40px;
  }
  .hero-title {
    font-size: 40px;
  }
  .section {
    padding: 60px 20px;
  }
  .typo-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 30px 20px;
  }
}
