/* ==========================================================================
   XYJECTA DESIGN SYSTEM — PROFILE 3: BENTO MAGAZINE
   Palette: Slate (#1e293b, #334155), Indigo (#6366f1), Light Slate (#f1f5f9)
   Fonts: Merriweather (Display) + Plus Jakarta Sans (Body)
   Class Prefix: xy-*
   ========================================================================== */

:root {
  --xy-slate-900: #0f172a;
  --xy-slate-800: #1e293b;
  --xy-slate-700: #334155;
  --xy-slate-600: #475569;
  --xy-slate-500: #64748b;
  --xy-slate-400: #94a3b8;
  --xy-slate-300: #cbd5e1;
  --xy-slate-200: #e2e8f0;
  --xy-slate-100: #f1f5f9;
  --xy-slate-50:  #f8fafc;
  --xy-white:     #ffffff;

  --xy-indigo-50:  #eef2ff;
  --xy-indigo-100: #e0e7ff;
  --xy-indigo-500: #818cf8;
  --xy-indigo-600: #6366f1;
  --xy-indigo-700: #4f46e5;
  --xy-indigo-900: #312e81;

  --xy-emerald-500: #10b981;
  --xy-amber-500:   #f59e0b;

  --xy-font-serif: 'Merriweather', Georgia, serif;
  --xy-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --xy-shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --xy-shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.06);
  --xy-shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.04);
  --xy-shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.05);

  --xy-radius-sm: 8px;
  --xy-radius-md: 12px;
  --xy-radius-lg: 18px;
  --xy-radius-xl: 24px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--xy-font-sans);
  background-color: var(--xy-slate-100);
  color: var(--xy-slate-800);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--xy-indigo-600);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--xy-indigo-700);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--xy-font-serif);
  color: var(--xy-slate-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.35rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.3rem, 1.45rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.15rem;
  color: var(--xy-slate-600);
}

p:last-child {
  margin-bottom: 0;
}

.xy-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.xy-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.xy-section-sm {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.xy-section-dark {
  background-color: var(--xy-slate-800);
  color: var(--xy-slate-100);
}

.xy-section-dark h2,
.xy-section-dark h3,
.xy-section-dark h4 {
  color: var(--xy-white);
}

.xy-section-dark p {
  color: var(--xy-slate-300);
}

.xy-section-white {
  background-color: var(--xy-white);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.xy-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--xy-slate-200);
  transition: all 0.3s ease;
}

.xy-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.xy-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.xy-brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--xy-slate-800), var(--xy-indigo-600));
  border-radius: var(--xy-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xy-white);
  font-family: var(--xy-font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

.xy-brand-text {
  display: flex;
  flex-direction: column;
}

.xy-brand-title {
  font-family: var(--xy-font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--xy-slate-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.xy-brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--xy-indigo-600);
}

.xy-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.xy-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--xy-slate-700);
  padding: 0.6rem 0.2rem;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.xy-nav-link:hover,
.xy-nav-link.xy-active {
  color: var(--xy-indigo-600);
}

.xy-nav-link.xy-active::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--xy-indigo-600);
  border-radius: 2px;
}

.xy-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.xy-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--xy-slate-300);
  border-radius: var(--xy-radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.xy-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--xy-slate-800);
  transition: all 0.3s ease;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.xy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--xy-radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  border: 1px solid transparent;
  line-height: 1.2;
}

.xy-btn-primary {
  background-color: var(--xy-indigo-600);
  color: var(--xy-white);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.xy-btn-primary:hover {
  background-color: var(--xy-indigo-700);
  color: var(--xy-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.xy-btn-dark {
  background-color: var(--xy-slate-800);
  color: var(--xy-white);
}

.xy-btn-dark:hover {
  background-color: var(--xy-slate-900);
  color: var(--xy-white);
  transform: translateY(-2px);
}

.xy-btn-outline {
  background-color: transparent;
  border-color: var(--xy-slate-300);
  color: var(--xy-slate-800);
}

.xy-btn-outline:hover {
  border-color: var(--xy-indigo-600);
  color: var(--xy-indigo-600);
  background-color: var(--xy-indigo-50);
}

.xy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--xy-indigo-50);
  color: var(--xy-indigo-700);
  border: 1px solid var(--xy-indigo-100);
}

.xy-badge-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--xy-slate-200);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   BENTO GRID MAGAZINE SYSTEM (PROFILE 3 SIGNATURE)
   ========================================================================== */

.xy-bento-hero {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.xy-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.xy-bento-cell {
  background-color: var(--xy-white);
  border: 1px solid var(--xy-slate-200);
  border-radius: var(--xy-radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--xy-shadow-sm);
  display: flex;
  flex-direction: column;
}

.xy-bento-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--xy-shadow-lg);
  border-color: var(--xy-indigo-100);
}

.xy-bento-span-8 {
  grid-column: span 8;
}

.xy-bento-span-7 {
  grid-column: span 7;
}

.xy-bento-span-6 {
  grid-column: span 6;
}

.xy-bento-span-5 {
  grid-column: span 5;
}

.xy-bento-span-4 {
  grid-column: span 4;
}

.xy-bento-span-3 {
  grid-column: span 3;
}

.xy-bento-span-12 {
  grid-column: span 12;
}

/* Bento Hero Feature Cell */
.xy-bento-hero-lead {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid var(--xy-indigo-600);
  justify-content: space-between;
}

.xy-bento-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--xy-indigo-600);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.xy-bento-hero-lead h1 {
  margin-bottom: 1.25rem;
}

.xy-bento-hero-lead .xy-lead-p {
  font-size: 1.15rem;
  color: var(--xy-slate-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.xy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Bento Stat Cell */
.xy-bento-stat {
  background-color: var(--xy-slate-800);
  color: var(--xy-white);
  border-color: var(--xy-slate-700);
  justify-content: center;
}

.xy-bento-stat:hover {
  border-color: var(--xy-indigo-500);
}

.xy-bento-stat-num {
  font-family: var(--xy-font-serif);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700;
  color: var(--xy-indigo-500);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.xy-bento-stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--xy-slate-200);
  margin-bottom: 0.25rem;
}

.xy-bento-stat-desc {
  font-size: 0.82rem;
  color: var(--xy-slate-400);
  line-height: 1.4;
}

/* Bento Visual Media Cell */
.xy-bento-media {
  padding: 0;
  position: relative;
  min-height: 320px;
}

.xy-bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.xy-bento-media:hover img {
  transform: scale(1.04);
}

.xy-bento-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--xy-white);
}

.xy-bento-media-overlay h3 {
  color: var(--xy-white);
  margin-bottom: 0.4rem;
}

.xy-bento-media-overlay p {
  color: var(--xy-slate-200);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Bento Quote / Editorial Cell */
.xy-bento-quote {
  background: linear-gradient(135deg, var(--xy-indigo-900) 0%, var(--xy-slate-800) 100%);
  color: var(--xy-white);
  border-color: rgba(99, 102, 241, 0.3);
  justify-content: space-between;
}

.xy-bento-quote blockquote {
  font-family: var(--xy-font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--xy-slate-100);
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid var(--xy-indigo-500);
}

.xy-bento-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.xy-bento-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--xy-indigo-500);
}

.xy-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--xy-white);
}

.xy-author-role {
  font-size: 0.78rem;
  color: var(--xy-indigo-100);
}

/* ==========================================================================
   INTERACTIVE ACTIVITY-REST BALANCE MATRIX (PROFILE 3 SIGNATURE MODULE)
   ========================================================================== */

.xy-matrix-card {
  background-color: var(--xy-white);
  border: 1px solid var(--xy-slate-200);
  border-radius: var(--xy-radius-xl);
  box-shadow: var(--xy-shadow-xl);
  overflow: hidden;
}

.xy-matrix-header {
  background: linear-gradient(135deg, var(--xy-slate-800), var(--xy-slate-700));
  color: var(--xy-white);
  padding: 2.5rem;
  border-bottom: 3px solid var(--xy-indigo-600);
}

.xy-matrix-header h3 {
  color: var(--xy-white);
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.xy-matrix-header p {
  color: var(--xy-slate-300);
  font-size: 0.95rem;
  max-width: 680px;
}

.xy-matrix-body {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.xy-control-group {
  margin-bottom: 1.85rem;
}

.xy-control-group:last-child {
  margin-bottom: 0;
}

.xy-control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.xy-control-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--xy-slate-800);
}

.xy-control-val {
  font-family: var(--xy-font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--xy-indigo-600);
  background-color: var(--xy-indigo-50);
  padding: 0.2rem 0.65rem;
  border-radius: var(--xy-radius-sm);
  border: 1px solid var(--xy-indigo-100);
}

.xy-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--xy-slate-200);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.xy-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--xy-indigo-600);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
  border: 2px solid var(--xy-white);
  transition: transform 0.15s ease, background 0.15s ease;
}

.xy-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--xy-indigo-700);
}

.xy-control-sub {
  font-size: 0.78rem;
  color: var(--xy-slate-500);
  margin-top: 0.35rem;
}

/* Matrix Results Panel */
.xy-matrix-result-panel {
  background-color: var(--xy-slate-50);
  border: 1px solid var(--xy-slate-200);
  border-radius: var(--xy-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.xy-score-circle-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--xy-slate-200);
}

.xy-score-gauge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--xy-indigo-600) calc(var(--gauge-pct, 70) * 1%), var(--xy-slate-200) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--xy-shadow-sm);
  flex-shrink: 0;
}

.xy-score-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--xy-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.xy-score-num {
  font-family: var(--xy-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--xy-slate-900);
}

.xy-score-pct {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--xy-slate-500);
  text-transform: uppercase;
}

.xy-score-meta h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.xy-score-state {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background-color: var(--xy-indigo-100);
  color: var(--xy-indigo-700);
}

.xy-rec-box {
  margin-bottom: 1.5rem;
}

.xy-rec-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--xy-slate-600);
  margin-bottom: 0.6rem;
}

.xy-rec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.xy-rec-item {
  font-size: 0.9rem;
  color: var(--xy-slate-700);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.xy-rec-item::before {
  content: '✓';
  color: var(--xy-emerald-500);
  font-weight: 700;
}

/* ==========================================================================
   FEATURE CARDS & RESEARCH GRIDS
   ========================================================================== */

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

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

.xy-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.xy-card {
  background-color: var(--xy-white);
  border: 1px solid var(--xy-slate-200);
  border-radius: var(--xy-radius-md);
  padding: 2rem;
  box-shadow: var(--xy-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.xy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--xy-shadow-md);
  border-color: var(--xy-indigo-100);
}

.xy-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--xy-radius-sm);
  background-color: var(--xy-indigo-50);
  color: var(--xy-indigo-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--xy-indigo-100);
}

.xy-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--xy-radius-sm);
  margin-bottom: 1.25rem;
}

.xy-card-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--xy-indigo-600);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   FORMS & INPUT FIELDS
   ========================================================================== */

.xy-form-card {
  background-color: var(--xy-white);
  border: 1px solid var(--xy-slate-200);
  border-radius: var(--xy-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--xy-shadow-md);
}

.xy-form-group {
  margin-bottom: 1.5rem;
}

.xy-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--xy-slate-800);
  margin-bottom: 0.5rem;
}

.xy-input,
.xy-textarea,
.xy-select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--xy-slate-800);
  background-color: var(--xy-slate-50);
  border: 1px solid var(--xy-slate-300);
  border-radius: var(--xy-radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.xy-textarea {
  min-height: 130px;
  resize: vertical;
}

.xy-input:focus,
.xy-textarea:focus,
.xy-select:focus {
  outline: none;
  background-color: var(--xy-white);
  border-color: var(--xy-indigo-600);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.xy-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--xy-radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.xy-alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.xy-alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   CORPORATE REGISTRY & OPERATOR BADGES
   ========================================================================== */

.xy-entity-box {
  background-color: var(--xy-white);
  border: 1px solid var(--xy-slate-200);
  border-radius: var(--xy-radius-md);
  padding: 1.75rem;
  box-shadow: var(--xy-shadow-sm);
}

.xy-entity-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--xy-slate-200);
}

.xy-entity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  font-size: 0.9rem;
}

.xy-entity-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xy-slate-500);
  margin-bottom: 0.2rem;
}

.xy-map-wrapper {
  width: 100%;
  height: 380px;
  border-radius: var(--xy-radius-md);
  overflow: hidden;
  border: 1px solid var(--xy-slate-200);
  box-shadow: var(--xy-shadow-sm);
}

.xy-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

.xy-footer {
  background-color: var(--xy-slate-900);
  color: var(--xy-slate-400);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
  border-top: 1px solid var(--xy-slate-800);
}

.xy-footer h4 {
  color: var(--xy-white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-family: var(--xy-font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.xy-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.xy-footer-brand-desc {
  font-size: 0.9rem;
  color: var(--xy-slate-400);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 340px;
}

.xy-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.xy-footer-link {
  color: var(--xy-slate-300);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 0.15rem 0;
  min-height: 28px;
}

.xy-footer-link:hover {
  color: var(--xy-indigo-500);
}

.xy-footer-registry-list {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--xy-slate-300);
}

.xy-footer-registry-list li {
  margin-bottom: 0.5rem;
  list-style: none;
}

.xy-footer-registry-list strong {
  color: var(--xy-slate-100);
}

.xy-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--xy-slate-500);
}

.xy-footer-bottom a {
  color: var(--xy-slate-400);
}

.xy-footer-bottom a:hover {
  color: var(--xy-indigo-500);
}

.xy-disclaimer-text {
  font-size: 0.78rem;
  color: var(--xy-slate-500);
  line-height: 1.5;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--xy-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   COOKIE CONSENT BANNER (GDPR / CONSENT MODE v2)
   ========================================================================== */

.xy-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 580px;
  background-color: var(--xy-slate-900);
  color: var(--xy-white);
  border: 1px solid var(--xy-slate-700);
  border-radius: var(--xy-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--xy-shadow-xl);
  z-index: 9999;
  display: none;
  animation: xySlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes xySlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xy-cookie-title {
  font-family: var(--xy-font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--xy-white);
}

.xy-cookie-text {
  font-size: 0.84rem;
  color: var(--xy-slate-300);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.xy-cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.xy-cookie-actions .xy-btn {
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  min-height: 40px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .xy-bento-span-8,
  .xy-bento-span-7,
  .xy-bento-span-6,
  .xy-bento-span-5,
  .xy-bento-span-4,
  .xy-bento-span-3 {
    grid-column: span 6;
  }
  .xy-bento-hero-lead {
    grid-column: span 12;
  }
  .xy-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xy-matrix-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .xy-bento-span-8,
  .xy-bento-span-7,
  .xy-bento-span-6,
  .xy-bento-span-5,
  .xy-bento-span-4,
  .xy-bento-span-3,
  .xy-bento-span-12 {
    grid-column: span 12;
  }

  .xy-grid-3,
  .xy-grid-2,
  .xy-grid-4 {
    grid-template-columns: 1fr;
  }

  .xy-nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--xy-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--xy-shadow-lg);
    border-bottom: 1px solid var(--xy-slate-200);
    gap: 0.5rem;
  }

  .xy-nav-menu.xy-mobile-open {
    display: flex;
  }

  .xy-mobile-toggle {
    display: flex;
  }

  .xy-entity-grid {
    grid-template-columns: 1fr;
  }

  .xy-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .xy-cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
