/* ── CSS Reset & Base Styles ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #FAF5EE;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(254, 235, 200, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(253, 216, 170, 0.3) 0%, transparent 60%);
}

/* Custom selection styling */
::selection {
  background-color: #7A5C43;
  color: #ffffff;
}

/* ── Typography & Google Fonts ── */
.font-serif {
  font-family: 'Instrument Serif', Georgia, Cambria, "Times New Roman", Times, serif;
}

.font-sans {
  font-family: 'Manrope', sans-serif;
}

/* ── Tailored Utility Styles ── */
.min-h-screen {
  min-height: 100vh;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem; /* 672px */
}

.max-w-4xl {
  max-width: 56rem; /* 896px */
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ── Flex & Grid Utilities ── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Spacing and Utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-16 > * + * { margin-top: 4rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: clamp(2.5rem, 6vw, 3rem); line-height: 1.1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-light { font-weight: 300; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.italic { font-style: italic; }

/* Color Utilities */
.text-slate-900 { color: #0f172a; }
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-white { color: #ffffff; }

.text-amber-600 { color: #d97706; }
.text-emerald-600 { color: #059669; }
.text-orange-600 { color: #ea580c; }
.text-blue-800 { color: #1e40af; }
.text-rose-400 { color: #fb7185; }

.bg-slate-950 { background-color: #020617; }
.bg-slate-900 { background-color: #7A5C43; } /* warm copper active language selector */
.bg-slate-100 { background-color: #f1f5f9; }
.bg-white { background-color: #ffffff; }

.bg-amber-50 { background-color: #fef3c7; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-blue-100 { background-color: #dbeafe; }

.bg-rose-500 { background-color: #f43f5e; }

/* ── Custom Interactive Components ── */
.lang-pill-container {
  background-color: rgba(241, 245, 249, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.2);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded { border-radius: 0.25rem; }

.border { border-style: solid; border-width: 1px; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* Custom Dividers */
.divide-y > * + * {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: #f1f5f9;
}

/* SOS Dark Block specific styles */
.bg-\[\#181121\] {
  background-color: #261C14; /* Warm premium espresso shade */
}

.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

.border-white\/5 {
  border-color: rgba(255, 255, 255, 0.05);
}

.hover\:border-white\/10:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Pulsing SOS animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* WiFi layout styling */
.bg-\[\#FBFBFA\] {
  background-color: #FBFBFA;
}

.border-slate-50 {
  border-color: #f8fafc;
}

.object-contain {
  object-fit: contain;
}

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-1.5 { width: 0.375rem; }
.h-1.5 { height: 0.375rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.-bottom-2 { bottom: -0.5rem; }
.left-1/2 { left: 50%; }
.-translate-x-1/2 { transform: translateX(-50%); }
.whitespace-nowrap { white-space: nowrap; }

/* Grid Layout Gaps */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Hover effects for links */
a {
  color: inherit;
  text-decoration: none;
}

.hover\:bg-slate-50:hover {
  background-color: #f8fafc;
}

/* Pl-10 layout helper for emergency subtitle */
.pl-10 {
  padding-left: 2.5rem;
}

/* Distinctive premium background for page header */
header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(246, 245, 240, 0.7));
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 3rem 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
}
