/* ==========================================================================
   RuleLens Landing Page Stylesheet
   Theme: Matched strictly to Frontend Ink-Wash Palette (#faf8f4 / #1e1c1a)
   ========================================================================== */

:root {
  /* Ink wash palette from frontend tailwind.config.js */
  --ink-50:  #faf8f4;   /* soft ivory — page background */
  --ink-100: #f3f0ea;   /* slightly deeper ivory — sections */
  --ink-200: #e8e4dc;   /* warm parchment — borders */
  --ink-300: #c9c4bb;   /* cool warm gray — subtle elements */
  --ink-400: #9a9590;   /* medium cool gray — muted text */
  --ink-500: #6b6760;   /* darker cool gray — body text */
  --ink-600: #4a4743;   /* charcoal mid — headings */
  --ink-700: #2d2b28;   /* deep charcoal */
  --ink-800: #1e1c1a;   /* near black charcoal */
  --ink-900: #120f0d;   /* deepest ink */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows from frontend tailwind.config.js */
  --shadow-card: 0 1px 4px 0 rgb(30 28 26 / 0.06), 0 1px 2px -1px rgb(30 28 26 / 0.04);
  --shadow-panel: 0 4px 16px -2px rgb(30 28 26 / 0.08), 0 2px 8px -2px rgb(30 28 26 / 0.05);
  --shadow-lift: 0 10px 32px -4px rgb(30 28 26 / 0.14), 0 4px 12px -2px rgb(30 28 26 / 0.07);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--ink-50);
  color: var(--ink-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Highlighted Top Announcement Banner */
.top-banner {
  background: linear-gradient(90deg, #120f0d 0%, #1e1c1a 50%, #2d2b28 100%);
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 2px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.top-banner-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.banner-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.banner-highlight-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
}

.banner-text {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fbbf24;
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-200);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo — Matching frontend Navbar.tsx */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-box {
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background-color: var(--ink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(30, 28, 26, 0.15);
  transition: background-color 0.2s ease;
}

.brand-logo:hover .logo-box {
  background-color: var(--ink-700);
}

.logo-text {
  color: var(--ink-50);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: -0.025em;
}

.brand-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-800);
}

.brand-sub {
  color: var(--ink-500);
}

/* Header Status */
.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: #ffffff;
  border: 1px solid var(--ink-200);
  border-radius: 9999px;
  box-shadow: var(--shadow-card);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}

.status-text {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--ink-700);
}

/* Background Pattern */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 650px;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #c9c4bb 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #fdfaf6 0%, #f8f4ee 45%, #f4f0e8 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Main Hero Section */
.main-content {
  padding-top: 110px;
}

.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-card);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-600);
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ink-600);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink-800);
  margin-bottom: 1.5rem;
}

.hero-highlight {
  color: var(--ink-500);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--ink-400);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-status-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: var(--ink-400);
}

.icon-shield {
  width: 14px;
  height: 14px;
  color: var(--ink-400);
}

/* Stats Strip */
.stats-section {
  background-color: #ffffff;
  border-y: 1px solid var(--ink-200);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat-item {
  padding: 0 1rem;
}

.stat-item.border-left {
  border-left: 1px solid var(--ink-200);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-800);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-400);
  margin-top: 0.25rem;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background-color: var(--ink-50);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.75rem;
  display: block;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-800);
}

.section-sub {
  color: var(--ink-400);
  font-size: 1rem;
  margin-top: 0.75rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--ink-200);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}

.feature-card {
  padding: 1.75rem;
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-panel);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background-color: var(--ink-100);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

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

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.6;
}

/* Steps Section */
.steps-section {
  padding: 5rem 0;
  background-color: #ffffff;
  border-top: 1px solid var(--ink-200);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-badge {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background-color: var(--ink-800);
  color: var(--ink-50);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  margin-bottom: 1rem;
}

.step-check {
  width: 16px;
  height: 16px;
  color: var(--ink-400);
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 0.35rem;
}

.step-text {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 260px;
}

/* CTA Banner */
.cta-section {
  background-color: var(--ink-800);
  color: var(--ink-50);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 700px;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-50);
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--ink-300);
  line-height: 1.65;
}

/* Responsive Queries */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .stats-grid, .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stat-item.border-left {
    border-left: none;
    border-top: 1px solid var(--ink-200);
    padding-top: 1rem;
  }
}
