/* ===========================
   SamaanOS — Brand Stylesheet
   =========================== */

:root {
  --bg: #1A1A1A;
  --surface: #222222;
  --surface-2: #2A2A2A;
  --text: #F5F0E8;
  --text-muted: #8A847A;
  --accent: #E8790F;
  --accent-dark: #C4650C;
  --accent-light: #FFF0D6;
  --border: rgba(245,240,232,0.1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.brand-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Hero ──────────────────────────────────── */
.hero {
  padding: 80px 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.7;
}

/* Product showcase */
.hero-visual {
  position: relative;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  position: relative;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0 0 12px;
}

.card-img {
  height: 120px;
  width: 100%;
}

.shimmer-bg {
  background: linear-gradient(135deg, #3A3A3A 0%, #4A4A4A 40%, #3A3A3A 100%);
}

.shimmer-bg-2 {
  background: linear-gradient(135deg, #2D2D2D 0%, #3D3D3D 40%, #2D2D2D 100%);
}

.shimmer-bg-3 {
  background: linear-gradient(135deg, #E8D4C4 0%, #D4BFA8 40%, #E8D4C4 100%);
}

.shimmer-bg-4 {
  background: linear-gradient(135deg, #3E3E3E 0%, #4E4E4E 40%, #3E3E3E 100%);
}

.card-meta {
  padding: 8px 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.card-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card-1 { grid-column: 1; grid-row: 1; }
.card-2 { grid-column: 2; grid-row: 1; }
.card-3 { grid-column: 1; grid-row: 2; }
.card-4 { grid-column: 2; grid-row: 2; }

.status-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ADE80;
}

/* ── Stats Bar ─────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 48px;
  background: var(--surface);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 40px;
}

.stat-item:first-child { padding-left: 0; }

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Features ──────────────────────────────── */
.features {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 560px;
}

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

.feature-item {
  background: var(--surface);
  padding: 32px;
  transition: background 0.2s;
}

.feature-item:hover {
  background: var(--surface-2);
}

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

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Categories ────────────────────────────── */
.categories {
  padding: 96px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.categories .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.categories .section-label { color: var(--accent); }

.cat-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.cat-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.cat-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.cat-count {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Philosophy ────────────────────────────── */
.philosophy {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.philosophy-inner {
  max-width: 720px;
}

.philosophy-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}

.philosophy-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.philosophy-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Closing ──────────────────────────────── */
.closing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 96px 48px;
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.closing-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.closing-statement {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.statement-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent);
  font-style: italic;
}

/* ── Footer ────────────────────────────────── */
.site-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .site-nav, .hero, .features, .philosophy, .closing {
    padding-left: 24px;
    padding-right: 24px;
  }
  .stats-bar { padding: 24px 24px; }
  .categories { padding: 64px 24px; }
  .site-footer { padding: 24px; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-inner {
    flex-wrap: wrap;
    gap: 24px;
  }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card:nth-child(5) { grid-column: 1 / -1; }
}