/* ============================================
   NothingHere — Landing Page Styles
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  --color-bg: #08080f;
  --color-bg-alt: #0e0e1a;
  --color-surface: #141422;
  --color-surface-hover: #1a1a30;
  --color-border: #1e1e35;
  --color-border-hover: #2e2e50;
  --color-text: #eeeef5;
  --color-text-secondary: #9898b0;
  --color-text-muted: #585870;
  --color-accent: #4f8fff;
  --color-accent-hover: #6ba3ff;
  --color-accent-glow: rgba(79, 143, 255, 0.2);
  --color-accent-glow-strong: rgba(79, 143, 255, 0.35);
  --color-orange: #ff8c42;
  --color-orange-glow: rgba(255, 140, 66, 0.15);
  --color-green: #42d68c;
  --color-green-glow: rgba(66, 214, 140, 0.15);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  --max-width: 1120px;
  --nav-height: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: rgba(8, 8, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}

.nav-brand svg {
  width: 28px;
  height: 28px;
  transform: translateY(-2px);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links .github-link {
  display: flex;
  align-items: center;
}

.nav-links .github-link svg {
  width: 22px;
  height: 22px;
  fill: var(--color-text-secondary);
  transition: fill 0.2s;
}

.nav-links .github-link:hover svg {
  fill: var(--color-text);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 1px;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-logo {
  width: 128px;
  height: 128px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease-out both;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.hero-tagline {
  font-size: 20px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.5;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.45s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 24px var(--color-accent-glow);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 0 36px var(--color-accent-glow-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.hero-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero-meta span {
  margin: 0 6px;
}

/* ========== Section Base ========== */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

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

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.blue {
  background: var(--color-accent-glow);
  color: var(--color-accent);
}

.feature-icon.orange {
  background: var(--color-orange-glow);
  color: var(--color-orange);
}

.feature-icon.green {
  background: var(--color-green-glow);
  color: var(--color-green);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* ========== How It Works ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 32px);
  right: calc(16.67% + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-border), var(--color-accent), var(--color-border));
  opacity: 0.5;
}

.step {
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.keycap {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-width: 3px;
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
  margin: 0 2px;
  line-height: 1.4;
}

/* ========== Guard Mode ========== */
.guard-section {
  background: var(--color-bg-alt);
}

.guard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.guard-text h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-align: left;
}

.guard-badge {
  display: inline-block;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.guard-text p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.guard-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.menu-bar-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  transition: border-color 0.4s;
}

.menu-bar-mock.armed {
  border-color: rgba(79, 143, 255, 0.3);
}

.menu-bar-mock .menu-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: color 0.4s;
}

.menu-bar-mock.armed .menu-icon {
  color: var(--color-accent);
}

.menu-bar-mock.disarmed .menu-icon {
  color: var(--color-text-muted);
}

.guard-pill {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.4s ease;
  letter-spacing: 0.3px;
}

.guard-pill.armed {
  background: linear-gradient(135deg, rgba(79, 143, 255, 0.2), rgba(79, 143, 255, 0.08));
  color: var(--color-accent);
  border: 1px solid rgba(79, 143, 255, 0.3);
}

.guard-pill.disarmed {
  background: linear-gradient(135deg, rgba(152, 152, 176, 0.12), rgba(152, 152, 176, 0.05));
  color: var(--color-text-muted);
  border: 1px solid rgba(152, 152, 176, 0.15);
}

.guard-state {
  position: relative;
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guard-state-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.guard-state-item.hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.guard-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ========== The Story ========== */
.story-section {
  background: var(--color-bg-alt);
}

.story-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.story-quote {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.15;
  position: absolute;
  top: -24px;
  left: -24px;
  pointer-events: none;
  user-select: none;
}

.story-content p {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.story-content p:last-child {
  margin-bottom: 0;
  color: var(--color-text);
  font-weight: 500;
}

/* ========== Download CTA ========== */
.download-section {
  text-align: center;
  padding: 120px 0;
}

.download-section h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.download-section .download-sub {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
}

.download-section .btn-primary {
  font-size: 18px;
  padding: 16px 40px;
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-brand svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transform: translateY(-2px);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--color-text);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========== Responsive: Tablet ========== */
@media (max-width: 1023px) {
  .hero-title {
    font-size: 52px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps::before {
    display: none;
  }

  .guard-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .guard-text h2 {
    text-align: center;
  }

  .guard-text p {
    text-align: center;
  }

  .guard-badge {
    display: block;
    text-align: center;
  }
}

/* ========== Responsive: Mobile ========== */
@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

  .hero-tagline {
    font-size: 17px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }

  section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .story-quote {
    font-size: 80px;
    top: -16px;
    left: -8px;
  }

  .story-content p {
    font-size: 16px;
  }

  .download-section h2 {
    font-size: 32px;
  }

  .download-section {
    padding: 80px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
