/* ============================================
   SHELFMATE LANDING - DARK BRUTALIST EDITION
   ============================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --text: #fafafa;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent: #ffffff;
  --accent-subtle: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --glow: rgba(255, 255, 255, 0.03);
}

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

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 9999;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 64px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  color: #000;
}

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

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

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

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: #000;
}

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

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--accent-subtle);
}

.btn-large {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: 10px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(24px, 5vw, 64px) 80px;
  position: relative;
}

.hero-content {
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero h1 .text-dim {
  color: var(--text-dim);
}

.hero-description {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* Hero Visual - Floating App Preview */
.hero-visual {
  position: absolute;
  right: clamp(24px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 35vw, 520px);
  pointer-events: none;
}

.app-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 50px rgba(0,0,0,0.5),
    0 0 100px rgba(255,255,255,0.02);
}

.app-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.app-preview-dots {
  display: flex;
  gap: 6px;
}

.app-preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.app-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

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

.poster-item {
  aspect-ratio: 2/3;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg));
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.poster-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
}

.poster-item.has-image {
  background-size: cover;
  background-position: center;
}

/* Poster colors for visual interest */
.poster-item:nth-child(1) { background: linear-gradient(145deg, #1a1a2e, #16213e); }
.poster-item:nth-child(2) { background: linear-gradient(145deg, #2d132c, #1a0a1a); }
.poster-item:nth-child(3) { background: linear-gradient(145deg, #1a1a1a, #0f0f0f); }
.poster-item:nth-child(4) { background: linear-gradient(145deg, #0f2027, #203a43); }
.poster-item:nth-child(5) { background: linear-gradient(145deg, #232526, #414345); }
.poster-item:nth-child(6) { background: linear-gradient(145deg, #1e130c, #2c1810); }
.poster-item:nth-child(7) { background: linear-gradient(145deg, #141e30, #243b55); }
.poster-item:nth-child(8) { background: linear-gradient(145deg, #1a1a2e, #0f0f0f); }

/* ============================================
   SECTION STYLING
   ============================================ */

.section {
  padding: clamp(80px, 12vh, 160px) clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 700px;
  margin-bottom: 64px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   FEATURES GRID
   ============================================ */

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

.feature-card {
  background: var(--bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-elevated);
}

.feature-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

/* ============================================
   MODES SECTION
   ============================================ */

.modes-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mode-card {
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: default;
}

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

.mode-card span {
  margin-right: 10px;
  opacity: 0.4;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: clamp(100px, 15vh, 200px) clamp(24px, 5vw, 64px);
  text-align: center;
  border-top: 1px solid var(--border);
  background: 
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,255,255,0.03), transparent);
}

.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 48px clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays */
.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }
.reveal:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .hero-visual {
    display: none;
  }
  
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav {
    height: 64px;
    padding: 0 20px;
  }
  
  .hero {
    padding: 100px 20px 60px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .feature-card {
    padding: 32px 24px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-left {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
