/* 
  claws - Minimalist High Contrast UI
  Tailored for a sophisticated tech aesthetic.
*/

:root {
  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #0e0e0e;
  
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.25);
  
  --text-main: #ffffff;
  --text-muted: #888888;
  
  --accent: #ffffff;
  --accent-invert: #000000;
  
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

/* Base Typography */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* Background Grids */
.page-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.grid-pattern {
  width: 100vw;
  height: 100vh;
  position: fixed;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center 20%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center 20%, #000, transparent 80%);
}

/* High-End Frosted Navbar */
.top-nav {
  position: fixed; 
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex; 
  justify-content: center; 
  align-items: center;
}
.nav-content {
  width: 100%; 
  max-width: 1040px; 
  padding: 0 24px;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}
.nav-brand { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  text-decoration: none; 
  color: #fff; 
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.8; }
.nav-logo { 
  width: 18px; 
  height: 18px; 
  filter: grayscale(1) invert(1) brightness(2);
}
.nav-wordmark { 
  font-weight: 600; 
  font-size: 15px; 
  letter-spacing: -0.01em; 
}
.nav-links { 
  display: flex; 
  gap: 32px; 
}
.nav-links a { 
  text-decoration: none; 
  color: var(--text-muted); 
  font-size: 13px; 
  font-weight: 500; 
  transition: color 0.15s; 
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  text-decoration: none; 
  border-radius: var(--radius-pill); 
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1); 
  cursor: pointer; 
  border: 1px solid transparent;
}
.btn-sm { height: 28px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 14px; }

.btn-primary { 
  background: var(--accent); 
  color: var(--accent-invert); 
}
.btn-primary:hover { 
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,255,255,0.25);
}

.btn-secondary { 
  background: transparent; 
  color: #fff; 
  border-color: var(--border); 
}
.btn-secondary:hover { 
  background: rgba(255,255,255,0.05); 
  border-color: var(--border-hover); 
}

.btn-ghost { 
  background: transparent; 
  color: var(--text-muted); 
}
.btn-ghost:hover { 
  color: #fff; 
}

/* Main Container */
main { 
  max-width: 1040px; 
  margin: 0 auto; 
  padding: 180px 24px 80px; 
}

/* Hero Section */
.hero-section { 
  text-align: center; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}
.hero-chip {
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  padding: 4px 12px; 
  border-radius: var(--radius-pill); 
  border: 1px solid var(--border);
  font-size: 12px; 
  font-weight: 500;
  color: var(--text-muted); 
  margin-bottom: 24px;
  background: rgba(255,255,255,0.02);
}
.hero-chip .arr { color: #fff; font-family: monospace; }
.hero-h1 { 
  font-size: clamp(3rem, 7vw, 5.5rem); 
  font-weight: 700; 
  line-height: 1.05; 
  letter-spacing: -0.05em; 
  margin-bottom: 24px; 
  color: #fff; 
}
.text-glow {
  background: linear-gradient(135deg, #ffffff 0%, #71717a 100%);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}
.hero-p { 
  font-size: 1.15rem; 
  color: var(--text-muted); 
  max-width: 580px; 
  margin: 0 auto 40px; 
  line-height: 1.6; 
}
.hero-btns { 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
}

/* Visual UI Window Placeholder */
.visual-section { 
  margin-top: 80px; 
}
.app-window {
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.app-header {
  height: 38px; 
  background: var(--bg-secondary); 
  border-bottom: 1px solid var(--border);
  display: flex; 
  align-items: center; 
  padding: 0 14px;
}
.traffic-lights { display: flex; gap: 6px; }
.traffic-lights span { 
  width: 10px; height: 10px; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.15); 
}
.app-body {
  aspect-ratio: 16/9; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 100%);
}
.app-placeholder-text { 
  color: var(--text-muted); 
  font-size: 13px; 
}
.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sections Global */
.section-title { 
  text-align: center; 
  margin-bottom: 60px; 
}
.section-title h2 { 
  font-size: 2.2rem; 
  letter-spacing: -0.04em; 
  margin-bottom: 12px; 
}
.section-title p { 
  font-size: 1.05rem; 
  color: var(--text-muted); 
}

/* Bento Cards */
.bento-section { margin-top: 160px; }
.bento-grid {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
}
.bento-card {
  padding: 36px; 
  border-radius: var(--radius-lg); 
  border: 1px solid var(--border);
  background: var(--bg-card);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.bento-card:hover { 
  border-color: var(--border-hover); 
  transform: translateY(-2px);
}
.bento-h3 { 
  font-size: 1.25rem; 
  font-weight: 600; 
  margin-bottom: 12px; 
}
.bento-p { 
  color: var(--text-muted); 
  font-size: 0.95rem; 
}

/* 5-Column Grid Compare Matrix */
.compare-section { margin-top: 160px; }
.compare-wrapper {
  overflow-x: auto;
  padding-bottom: 20px;
}
.compare-table {
  min-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-row {
  display: grid;
  grid-template-columns: 140px repeat(4, 1fr);
  gap: 12px;
}
.compare-cell {
  display: flex;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text-muted);
}
.compare-header {
  margin-bottom: 8px;
}
.compare-header .compare-cell {
  border: none;
  background: transparent;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding: 0 16px;
}
.compare-header .cell-axis {
  justify-content: flex-start;
}

.cell-axis {
  border: none;
  background: transparent;
  color: #e0e0e0;
  font-weight: 500;
  font-size: 15px;
}
.cell-highlight {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ececec;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 12px;
  font-family: monospace;
}
.status-good { background: rgba(52, 199, 89, 0.15); color: #34c759; }
.status-good::after { content: '✓'; }

.status-mid { background: rgba(255, 159, 10, 0.15); color: #ff9f0a; }
.status-mid::after { content: '−'; }

.status-bad { background: rgba(255, 59, 48, 0.15); color: #ff3b30; }
.status-bad::after { content: '×'; transform: scale(1.1); }

.badge-pro {
  background: rgba(52, 120, 255, 0.2);
  color: #6a9cff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 600;
}

.col-title {
  display: inline-flex;
  align-items: center;
}


/* Small Interfaces Gallery Grid */
.interfaces-section { margin-top: 160px; }
.interfaces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mini-window .app-body {
  aspect-ratio: 16/10;
}

/* Call to Action */
.cta-section { margin-top: 160px; margin-bottom: 60px; }
.cta-box {
  padding: 80px 40px; 
  text-align: center;
  border-radius: 20px; 
  border: 1px solid var(--border);
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 100%);
}
.cta-box h2 { font-size: 2.2rem; margin-bottom: 12px; }
.cta-box p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 32px 24px; 
}
.footer-wrap { 
  max-width: 1040px; 
  margin: 0 auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.footer-brand { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: #fff; 
  font-weight: 600; 
  font-size: 14px; 
}
.footer-brand img { 
  width: 16px; 
  height: 16px; 
  filter: grayscale(1) invert(1) brightness(2); 
}
.footer-links { 
  color: #666; 
  font-size: 13px; 
}

/* Reveal Animations */
.fade-in { 
  opacity: 0; 
  transform: translateY(16px); 
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}
.fade-in.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Responsive */
@media (max-width: 768px) {
  .hero-h1 { font-size: 2.8rem; }
  .bento-grid, .interfaces-grid { grid-template-columns: 1fr; gap: 16px; }
  .nav-links { display: none; }
  .hero-btns { flex-direction: column; width: 100%; }
  .btn-lg { width: 100%; }
  .footer-wrap { flex-direction: column; gap: 16px; align-items: flex-start; }
}
