:root {
  color-scheme: dark;
  --bg: #031127;
  --bg-soft: #061b39;
  --panel: rgba(5, 22, 50, 0.76);
  --panel-strong: rgba(6, 24, 56, 0.92);
  --panel-soft: rgba(5, 22, 50, 0.5);
  --line: rgba(116, 190, 255, 0.2);
  --text: #f5f9ff;
  --muted: #a9b8d4;
  --cyan: #18d9ff;
  --blue: #347dff;
  --violet: #8d4bff;
  --pink: #f353d7;
  --amber: #ffb22e;
  --green: #15e59a;
  --orange: #ff6b35;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
   --container: min(100% - 48px, 1210px);
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #edf5ff;
  --bg-soft: #f7fbff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --panel-soft: rgba(255, 255, 255, 0.5);
  --line: rgba(16, 85, 150, 0.16);
  --text: #071831;
  --muted: #50627c;
  --orange: #ff6b35;
  --shadow: 0 24px 70px rgba(31, 82, 139, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 8%, rgba(32, 118, 255, 0.26), transparent 26rem),
    radial-gradient(circle at 78% 10%, rgba(239, 67, 211, 0.14), transparent 25rem),
    linear-gradient(180deg, var(--bg), #031328 48%, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

[data-theme='light'] body {
  background:
    radial-gradient(circle at 18% 6%, rgba(27, 160, 255, 0.28), transparent 26rem),
    radial-gradient(circle at 80% 8%, rgba(245, 92, 190, 0.16), transparent 24rem),
    linear-gradient(180deg, #eaf5ff, #f8fbff 48%, #edf4ff);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(113, 188, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 188, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 60px;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 4vw, 4.25rem);
  background: rgba(3, 17, 39, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(3, 17, 39, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

[data-theme='light'] .site-header {
  background: rgba(248, 252, 255, 0.88);
  border-bottom-color: rgba(20, 58, 102, 0.16);
  box-shadow: 0 8px 30px rgba(31, 82, 139, 0.1);
}

[data-theme='light'] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(20, 58, 102, 0.2);
  box-shadow: 0 10px 34px rgba(31, 82, 139, 0.15);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand .brand-tagline {
  display: block;
  margin-top: 0.08rem;
  padding-left: 0.12rem;
  color: rgba(222, 237, 255, 0.76);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.42rem, 0.52vw, 0.52rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.105em;
  text-transform: camelcase;
}

[data-theme='light'] .brand .brand-tagline {
  color: rgba(7, 24, 49, 0.66);
}

.brand span {
  background: linear-gradient(90deg, var(--cyan), #3a86ff 70%);
  -webkit-background-clip: text;
  color: transparent;
}

.brand strong {
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--amber));
  -webkit-background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
  padding: 0.4rem 0;
}

[data-theme='light'] .main-nav a {
  color: #243b5a;
  font-weight: 750;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  scale: 0 1;
  border-radius: 999px;
  background: linear-gradient(90deg, #8d4bff, #f353d7);
  box-shadow: 0 0 12px rgba(141, 75, 255, 0.6);
  transition: scale 0.25s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: #ffffff;
}

[data-theme='light'] .main-nav a:hover,
[data-theme='light'] .main-nav a.active {
  color: #102d55;
}

[data-theme='light'] .main-nav a:focus-visible {
  outline: 2px solid rgba(16, 45, 85, 0.42);
  outline-offset: 2px;
  color: #102d55;
}

.main-nav a:hover::after, .main-nav a.active::after {
  scale: 1 1;
}

.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.language-static { display: inline-flex; align-items: center; justify-content: center; gap: 0.42rem; cursor: default; user-select: none; }
.icon-button, .lang-button, .theme-toggle, .login-button, .nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

[data-theme='light'] .icon-button,
[data-theme='light'] .lang-button,
[data-theme='light'] .theme-toggle,
[data-theme='light'] .login-button,
[data-theme='light'] .nav-toggle {
  border-color: rgba(20, 58, 102, 0.18);
  color: #102d55;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 16px rgba(31, 82, 139, 0.1);
}

[data-theme='light'] .nav-toggle span { background: #102d55; }

.icon-button, .theme-toggle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
}

.lang-button, .login-button {
  min-height: 2.2rem;
  border-radius: 999px;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #8d4bff, #f353d7);
  border: 0;
  color: white;
  box-shadow: 0 8px 24px rgba(141, 75, 255, 0.35);
}

.login-button:hover {
  box-shadow: 0 12px 32px rgba(141, 75, 255, 0.5);
}

[data-theme='light'] .login-button {
  color: #ffffff;
  border: 1px solid rgba(99, 71, 230, 0.24);
  background: linear-gradient(135deg, #167eea 0%, #704aff 56%, #bd43e8 100%);
  box-shadow: 0 9px 24px rgba(88, 70, 220, 0.28);
}

[data-theme='light'] .login-button:hover {
  color: #ffffff;
  border-color: rgba(99, 71, 230, 0.34);
  background: linear-gradient(135deg, #126fd4 0%, #603be8 56%, #ab35d7 100%);
  box-shadow: 0 13px 30px rgba(88, 70, 220, 0.38);
}

.theme-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 0.15rem; width: 3.6rem; }
.theme-toggle span { display: grid; place-items: center; border-radius: 999px; line-height: 1; }
.theme-toggle .sun { background: rgba(255, 178, 46, 0.96); color: #fff; box-shadow: 0 0 18px rgba(255, 178, 46, 0.6); }
[data-theme='light'] .theme-toggle .moon { background: #10213b; color: #fff; }
[data-theme='light'] .theme-toggle .sun { background: transparent; color: var(--amber); box-shadow: none; }

.icon-button:hover, .lang-button:hover, .theme-toggle:hover, .login-button:hover { transform: translateY(-2px); border-color: rgba(141, 75, 255, 0.5); background: rgba(141, 75, 255, 0.15); }

.nav-toggle { display: none; width: 2.2rem; height: 2.2rem; border-radius: 0.5rem; padding: 0.5rem; }
.nav-toggle span { display: block; height: 2px; margin: 0.2rem 0; border-radius: 999px; background: var(--text); }

.section-pad { width: min(100% - 2rem, 1320px); margin-inline: auto; }
.compact { margin-top: 1rem; }

.hero-section {
  position: relative;
  min-height: 12rem;
  padding-top: clamp(2.2rem, 5vw, 4.2rem);
}

.hero-media {
  position: absolute;
  inset: 0 calc(50% - 50vw) auto;
  height: 12rem;
  overflow: hidden;
  z-index: -1;
  border-bottom: 1px solid var(--line);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 39, 0.95), rgba(3, 17, 39, 0.36) 48%, rgba(3, 17, 39, 0.9)),
    linear-gradient(180deg, rgba(3, 17, 39, 0.14), var(--bg) 95%);
}

[data-theme='light'] .hero-media::after {
  background:
    linear-gradient(90deg, rgba(238, 247, 255, 0.92), rgba(238, 247, 255, 0.28) 48%, rgba(238, 247, 255, 0.88)),
    linear-gradient(180deg, rgba(238, 247, 255, 0.1), var(--bg) 95%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.03);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.52fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
.hero-grid-explore { 
  position: relative; 
  z-index: 1; 
  display: grid; 
  grid-template-columns: minmax(0, 570px) 1fr; 
  align-items: end; 
  min-height: 278px; 
  margin-top: 60px; 
  margin-bottom: 60px
}
   
.hero::before {
      content: "";
      margin-top:60px;
      position: absolute;
      inset: 0 0 auto 48%;
      height: 382px;
      background:
        linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 12%, transparent 42%),
        linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 72%, transparent) 100%),
        url("../images/slider/slider11.jpg") center / cover no-repeat;
      border-bottom-left-radius: 90px;
      filter: saturate(1.06);
      opacity: .96;
    }

.hero-copy { max-width: 46rem; padding-top: 0.7rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  font-weight: 800;
  font-size: 0.84rem;
}

[data-theme='light'] .eyebrow { background: rgba(255, 255, 255, 0.66); }
.eyebrow span { color: var(--amber); }

h1, h2, h3, p { margin: 0; }
.hero-copy h1 {
  margin-top: 1rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
  /* font-size: clamp(3.6rem, 8vw, 7.45rem); */
  font-size:clamp(2.75rem, 5.5vw, 4.7rem);
  line-height: 0.88;
  letter-spacing: 0;
  max-width: 48rem;
}

.hero-copy h1 span {
  display: block;
  background: linear-gradient(92deg, #13cfff, #4c8dff 34%, #a854ff 62%, #ff5dbc 78%, #ffad1f);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(77, 139, 255, 0.22);
}

.hero-copy p {
  max-width: 38rem;
  margin-top: 1.05rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}
.hero-copy .spark { 
  display: inline-grid; 
  place-items: center; 
  width: 32px; 
  height: 32px; 
  margin-left: 8px; 
  color: var(--blue); 
  font-size: 1.5rem; 
  vertical-align: 38px; 
  animation: twinkle 2.8s ease-in-out infinite; 
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.primary-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.2rem;
  padding: 0 1.45rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, #0ad4ff, #3e7cff 45%, #bf45ff);
  box-shadow: 0 18px 36px rgba(38, 116, 255, 0.32), 0 0 28px rgba(199, 70, 255, 0.25);
}

.ghost-button { border: 1px solid rgba(255, 255, 255, 0.48); color: var(--text); background: rgba(5, 13, 29, 0.36); }
[data-theme='light'] .ghost-button { background: rgba(255, 255, 255, 0.62); border-color: rgba(16, 85, 150, 0.18); }
.primary-button:hover, .ghost-button:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(88, 105, 255, 0.34); }

.assistant-panel, .card-panel, .stats-strip {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(4, 15, 34, 0.66));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

[data-theme='light'] .assistant-panel,
[data-theme='light'] .card-panel,
[data-theme='light'] .stats-strip { background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.62)); }

.assistant-panel {
  position: relative;
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: 1.55rem;
  overflow: hidden;
}

.assistant-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-head div { display: flex; align-items: center; gap: 0.55rem; font-size: 1.08rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.assistant-spark { color: var(--pink); text-shadow: 0 0 20px var(--pink); }
.beta-pill { padding: 0.25rem 0.55rem; border-radius: 999px; background: rgba(142, 87, 255, 0.28); color: #d8c9ff; font-size: 0.72rem; font-weight: 900; }
[data-theme='light'] .beta-pill { color: #6335c7; }
.assistant-panel p { margin-top: 0.85rem; color: var(--muted); line-height: 1.55; }
.prompt-list { display: grid; gap: 0.7rem; margin-top: 1rem; }
.prompt-list button {
  width: 100%;
  min-height: 2.65rem;
  padding: 0 1rem;
  border: 1px solid rgba(141, 75, 255, 0.38);
  border-radius: 999px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(90deg, rgba(24, 217, 255, 0.13), rgba(141, 75, 255, 0.18));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.prompt-list button:hover { transform: translateX(4px); border-color: rgba(24, 217, 255, 0.7); }
.assistant-form { display: grid; grid-template-columns: 1fr auto; gap: 0.65rem; margin-top: 1.25rem; padding: 0.45rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(1, 9, 22, 0.4); }
[data-theme='light'] .assistant-form { background: rgba(255, 255, 255, 0.7); }
.assistant-form input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; padding: 0 0.7rem; }
.assistant-form button { width: 2.35rem; height: 2.35rem; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, var(--violet), var(--pink)); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.1rem;
  border-radius: 1rem;
  overflow: hidden;
}

.stats-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.85rem 1.15rem;
  border-right: 1px solid var(--line);
}
.stats-strip article:last-child { border-right: 0; }
.stats-strip span { grid-row: span 3; font-size: 1.8rem; color: var(--cyan); text-shadow: 0 0 22px currentColor; }
.stats-strip p { color: var(--muted); font-size: 0.76rem; }
.stats-strip strong { font-size: 1.26rem; line-height: 1.05; }
.stats-strip small { color: var(--muted); }

/* Modern Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, rgba(3, 17, 39, 0.98) 0%, rgba(6, 27, 56, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(24, 217, 255, 0.1);
    position: relative;
    z-index: 15;
    margin-top: -1px;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
}

[data-theme='light'] .stats-bar {
    background: rgba(255, 255, 255, 0.95);
}

.stats-strip {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

/* Stat Card */
.stat-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-right: 1px solid rgba(116, 190, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    background: rgba(24, 217, 255, 0.05);
}

.stat-card:last-child {
    border-right: 0;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, rgba(24, 217, 255, 0.2), rgba(52, 125, 255, 0.2));
    color: var(--cyan);
    box-shadow: 0 4px 20px rgba(24, 217, 255, 0.3);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, rgba(141, 75, 255, 0.2), rgba(243, 83, 215, 0.2));
    color: var(--violet);
    box-shadow: 0 4px 20px rgba(141, 75, 255, 0.3);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, rgba(255, 178, 46, 0.2), rgba(255, 107, 53, 0.2));
    color: var(--amber);
    box-shadow: 0 4px 20px rgba(255, 178, 46, 0.3);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 178, 46, 0.2));
    color: var(--orange);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.stat-card:nth-child(5) .stat-icon {
    background: linear-gradient(135deg, rgba(243, 83, 215, 0.2), rgba(141, 75, 255, 0.2));
    color: var(--pink);
    box-shadow: 0 4px 20px rgba(243, 83, 215, 0.3);
}

.stat-card:nth-child(6) .stat-icon {
    background: linear-gradient(135deg, rgba(21, 230, 154, 0.2), rgba(24, 217, 255, 0.2));
    color: var(--green);
    box-shadow: 0 4px 20px rgba(21, 230, 154, 0.3);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-content p {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.stat-value strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-value small {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Animation for stat numbers */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card {
    animation: fadeIn 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.stat-card:nth-child(6) { animation-delay: 0.6s; }

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

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.card-panel { border-radius: 1rem; padding: 1rem; overflow: hidden; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.95rem; }
.section-title-row h2 { font-family: 'Space Grotesk', Inter, sans-serif; font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.section-title-row a { padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.live-dot { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.7rem; color: #ff70da; font-size: 0.75rem; font-weight: 900; }
.live-dot::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: currentColor; box-shadow: 0 0 16px currentColor; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.metric { position: relative; min-height: 5.9rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 0.75rem; overflow: hidden; background: rgba(6, 21, 48, 0.66); }
[data-theme='light'] .metric { background: rgba(255, 255, 255, 0.72); }
.metric p { color: var(--muted); font-size: 0.75rem; }
.metric strong { display: block; margin-top: 0.2rem; font-size: 1.04rem; }
.metric span { position: absolute; top: 2rem; right: 0.75rem; font-weight: 900; font-size: 0.82rem; }
.metric i { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.65rem; height: 1.4rem; background: currentColor; clip-path: polygon(0 88%, 10% 62%, 20% 68%, 31% 39%, 43% 51%, 55% 28%, 66% 34%, 78% 13%, 91% 22%, 100% 10%, 100% 100%, 0 100%); opacity: 0.8; }
.green { color: var(--green); } .pink { color: var(--pink); } .amber { color: var(--amber); } .cyan { color: var(--cyan); }

.map-visual {
  position: relative;
  height: 9.8rem;
  margin: 0.9rem -1rem -1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 37%, rgba(24, 217, 255, 0.35), transparent 8rem),
    linear-gradient(145deg, rgba(39, 116, 255, 0.12), rgba(141, 75, 255, 0.08)),
    repeating-linear-gradient(25deg, rgba(25, 161, 255, 0.14) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(150deg, rgba(91, 255, 191, 0.1) 0 1px, transparent 1px 26px);
}
.tower { position: absolute; left: 50%; top: 18%; width: 0.35rem; height: 4.2rem; border-radius: 999px; background: white; box-shadow: 0 0 24px 10px rgba(24, 217, 255, 0.35); transform: translateX(-50%); }
.tower::after { content: ''; position: absolute; left: 50%; bottom: -0.55rem; width: 3.1rem; height: 1.1rem; border: 2px solid var(--cyan); border-radius: 50%; transform: translateX(-50%); }
.node { position: absolute; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px currentColor; animation: pulse 2.6s infinite; }
.n1 { left: 18%; top: 42%; } .n2 { left: 68%; top: 28%; animation-delay: .5s; } .n3 { left: 80%; top: 62%; animation-delay: 1s; }
.route { position: absolute; height: 3px; width: 38%; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); filter: drop-shadow(0 0 10px var(--cyan)); }
.r1 { left: 10%; top: 54%; rotate: -17deg; } .r2 { left: 42%; top: 45%; rotate: 11deg; } .r3 { left: 28%; top: 72%; rotate: 4deg; }
 .search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; max-width: 560px; margin-top:30px }
    .search-box, .filter-main {
      min-height: 52px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--panel);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(18px);
      display: flex;
      align-items: center;
      transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    }
    .search-box:focus-within, .filter-main:hover { border-color: rgba(22, 119, 255, .38); box-shadow: var(--shadow-md); }
    .search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 18px 0 23px; font-weight: 650; }
    .search-box input::placeholder { color: var(--subtle); }
    .search-box button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--text); border-radius: 50%; } 
.filter-main { border: 0; padding: 0 26px; gap: 10px; color: var(--text); font-weight: 800; }
.container { width: var(--container); margin-inline: auto; }
/* Category shell styles moved to component blade file for better organization */

    .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; margin-bottom: 20px; }
    .filters { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .select-chip { height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--text); padding: 0 15px; display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 750; box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease; }
    .select-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
    .sort { color: var(--muted); font-size: .84rem; font-weight: 700; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
    .sort b { color: var(--violet); }
    .sort button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--blue); }

/* Old category-shell styles moved to component blade */
  .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 424px; gap: 22px; align-items: start; }
    .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-md); backdrop-filter: blur(24px); }
    .destinations { padding: 22px; }
    .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
    .section-head h2 { margin: 0; font-size: clamp(1.12rem, 1.7vw, 1.42rem); line-height: 1.2; font-weight: 800; }
    .section-head a { color: var(--violet); font-size: .8rem; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
    .cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .destination-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-strong); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; }
    .destination-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(22, 119, 255, .28); }
    .card-media { position: relative; aspect-ratio: 1.52 / 1; overflow: hidden; background: #dbe6f4; }
    .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
    .destination-card:hover .card-media img { transform: scale(1.065); }
    .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .34)); pointer-events: none; }
    .tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; border-radius: 999px; padding: 4px 9px; color: #fff; font-size: .66rem; font-weight: 800; background: var(--tag, #2fba6e); box-shadow: 0 8px 18px rgba(0, 0, 0, .16); }
    .favorite { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #62708a; box-shadow: 0 10px 22px rgba(17, 35, 65, .18); transition: transform .2s ease, color .2s ease, background .2s ease; }
    .favorite:hover, .favorite.is-active { transform: scale(1.07); color: #fff; background: var(--pink); }
 .card-body p { min-height: 44px; margin: 12px 0 12px; color: var(--muted); font-size: .76rem; line-height: 1.55; font-weight: 600; }
    .pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
    .mini-pill { border-radius: 999px; padding: 4px 9px; color: color-mix(in srgb, var(--text) 72%, var(--tone)); background: color-mix(in srgb, var(--tone) 12%, transparent); font-size: .66rem; font-weight: 800; }
    .load-more { margin: 22px auto 0; height: 46px; border: 1px solid rgba(86, 101, 255, .24); border-radius: 999px; background: var(--panel-strong); color: var(--violet); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; font-size: .8rem; font-weight: 800; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
    .load-more:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

    .map-panel { padding: 22px; }
    .map-frame { position: relative; aspect-ratio: .98 / 1; border-radius: 16px; overflow: hidden; background: #dfeaf4; border: 1px solid var(--line); }
    .map-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
    html[data-theme="dark"] .map-frame img { filter: saturate(1.05) brightness(.82); }
    .map-frame::after { content: "Semarang"; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); color: #203653; font-size: 1.24rem; font-weight: 800; text-shadow: 0 2px 12px rgba(255,255,255,.9); }
    .pin { position: absolute; z-index: 2; width: 30px; height: 30px; border-radius: 50% 50% 50% 6px; display: grid; place-items: center; color: #fff; background: var(--pin); transform: rotate(-45deg); box-shadow: 0 10px 20px color-mix(in srgb, var(--pin) 35%, transparent); animation: floatPin 3.2s ease-in-out infinite; }
    .pin i { transform: rotate(45deg); font-size: .88rem; }
    .pin:nth-of-type(1) { left: 15%; top: 30%; --pin: #8c4dff; animation-delay: -.2s; }
    .pin:nth-of-type(2) { left: 39%; top: 27%; --pin: #2fba6e; animation-delay: -.8s; }
    .pin:nth-of-type(3) { left: 68%; top: 34%; --pin: #ff9017; animation-delay: -1.1s; }
    .pin:nth-of-type(4) { left: 49%; top: 57%; --pin: #ff4f63; animation-delay: -1.5s; }
    .pin:nth-of-type(5) { left: 74%; top: 66%; --pin: #168bff; animation-delay: -2s; }
    .location-btn { position: absolute; z-index: 3; left: 50%; bottom: 8%; transform: translateX(-50%); border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--violet); padding: 10px 18px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .78rem; box-shadow: 0 14px 28px rgba(43, 71, 123, .2); }
    .map-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-top: 22px; }
    .map-stat { display: grid; grid-template-columns: 28px 1fr auto 12px; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; font-weight: 800; }
    .map-stat i:first-child { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: .78rem; background: var(--stat); }
    .map-stat strong { color: var(--text); font-size: .78rem; }

    .lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1.06fr); gap: 22px; margin-top: 24px; }
    .collection-panel { padding: 20px; }
    .collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .collection-card { position: relative; min-height: 134px; border-radius: 13px; overflow: hidden; color: #fff; box-shadow: var(--shadow-sm); isolation: isolate; }
    .collection-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; transition: transform .5s ease; }
    .collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 30, .08), rgba(5, 12, 30, .78)); z-index: -1; }
    .collection-card div { position: absolute; inset: auto 12px 12px; z-index: 1; }
    .collection-card h3 { margin: 0 0 4px; font-size: .78rem; line-height: 1.25; font-weight: 800; color: #fff; }
    .collection-card span { font-size: .66rem; font-weight: 800; opacity: .9; }
    .collection-card:hover img { transform: scale(1.08); }
    .planner { position: relative; min-height: 210px; padding: 32px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; }
    .planner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, color-mix(in srgb, var(--panel-strong) 96%, transparent) 0 48%, rgba(127, 91, 255, .22)), url("assets/img/explore/planner.jpg") right center / contain no-repeat; opacity: .98; }
    html[data-theme="dark"] .planner::before { opacity: .78; }
    .planner-copy { position: relative; z-index: 1; }
    .planner h2 { margin: 0 0 10px; font-size: 1.45rem; line-height: 1.18; font-weight: 800; }
    .planner p { max-width: 430px; margin: 0 0 24px; color: var(--muted); line-height: 1.7; font-size: .88rem; font-weight: 600; }
    .primary-cta { min-height: 48px; border: 0; border-radius: 999px; padding: 0 24px; color: #fff; display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(115deg, #168bff, #6a52ff 52%, #b542ff); box-shadow: 0 18px 36px rgba(94, 82, 255, .32); font-size: .82rem; font-weight: 800; transition: transform .22s ease, box-shadow .22s ease; }
    .primary-cta:hover { transform: translateY(-2px); box-shadow: 0 26px 48px rgba(94, 82, 255, .42); }

.place-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.place-card, .news-card, .gallery-grid button {
  background-image: var(--img), linear-gradient(135deg, rgba(24, 217, 255, 0.18), rgba(243, 83, 215, 0.15));
  background-size: 145%, cover;
  background-position: center;
}
.image-1 { --img: url('/assets/frontend/images/3d/lawangsewu.png'); background-position: 35% 76%; }
.image-2 { --img: url('/assets/frontend/images/3d/sampokong.png'); background-position: 68% 47%; }
.image-3 { --img: url('/assets/frontend/images/3d/gorjatidiri.png'); background-position: 78% 38%; }
.image-4 { --img: url('/assets/frontend/images/3d/majt.png'); background-position: 88% 29%; }
.image-5 { --img: url('/assets/frontend/images/3d/tugumuda.png'); background-position: 55% 67%; }
.image-6 { --img: url('/assets/frontend/images/3d/gerejablenduk.png'); background-position: 73% 81%; }
.place-card { position: relative; min-height: 10.6rem; border: 1px solid var(--line); border-radius: 0.75rem; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.place-card::before, .news-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 18%, rgba(3, 11, 28, 0.88)); }
.place-card div { position: absolute; inset: auto 0 0; padding: 0.9rem; z-index: 1; }
.place-card h3 { font-size: 1rem; font-weight: 900; }
.place-card p { margin-top: 0.2rem; color: #d5e5ff; font-size: 0.78rem; line-height: 1.35; }
.place-card span { display: inline-block; margin-top: 0.45rem; color: var(--amber); font-size: 0.78rem; font-weight: 900; }
.place-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(24, 217, 255, 0.16); }

.timeline-panel { margin-top: 1.6rem; padding: 1.45rem; }
.timeline-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; padding: 1rem 0 2.25rem; }
.timeline-track::before { content: ''; position: absolute; left: 1%; right: 1%; bottom: 0.85rem; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--pink), var(--amber)); box-shadow: 0 0 22px rgba(93, 153, 255, 0.8); }
.timeline-track article { position: relative; min-height: 9.5rem; padding: 1rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.045); }
[data-theme='light'] .timeline-track article { background: rgba(255, 255, 255, 0.75); }
.timeline-track article::after { content: ''; position: absolute; left: 1.1rem; bottom: -1.77rem; width: 1rem; height: 1rem; border: 4px solid var(--blue); border-radius: 999px; background: var(--bg); box-shadow: 0 0 22px var(--blue); }
.timeline-track span { color: #8ff0d5; font-weight: 900; }
.timeline-track strong { display: block; margin-top: 0.3rem; }
.timeline-track p { margin-top: 0.45rem; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }

.bottom-grid { display: grid; grid-template-columns: 0.85fr 1.45fr 1fr; gap: 1.6rem; margin-bottom: 1.6rem; }
.event-list { display: grid; gap: 0.55rem; }
.event-list a { display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; gap: 0.8rem; min-height: 4.15rem; padding: 0.45rem; border: 1px solid var(--line); border-radius: 0.75rem; background: rgba(7, 24, 54, 0.58); transition: transform 0.2s ease, border-color 0.2s ease; }
[data-theme='light'] .event-list a { background: rgba(255, 255, 255, 0.72); }
.event-list a:hover { transform: translateX(4px); border-color: rgba(243, 83, 215, 0.55); }
.event-list time { display: grid; place-items: center; align-content: center; height: 100%; border-radius: 0.55rem; color: #ff6dff; background: rgba(151, 72, 255, 0.16); line-height: 1; font-weight: 900; }
.event-list time strong { font-size: 1.55rem; }
.event-list b { display: block; font-size: 0.9rem; }
.event-list small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.news-card { position: relative; min-height: 16rem; border: 1px solid var(--line); border-radius: 0.75rem; overflow: hidden; padding: 7rem 0.9rem 0.9rem; }
.news-card > * { position: relative; z-index: 1; }
.news-card span { display: inline-flex; padding: 0.22rem 0.48rem; border-radius: 999px; color: white; background: rgba(20, 190, 255, 0.7); font-size: 0.68rem; font-weight: 900; }
.news-card h3 { margin-top: 0.55rem; font-size: 0.98rem; line-height: 1.28; }
.news-card p { margin-top: 0.45rem; color: #d2def4; font-size: 0.78rem; line-height: 1.45; }
.news-card small { display: block; margin-top: 0.55rem; color: #d2def4; font-size: 0.72rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.gallery-grid button { min-height: 5.8rem; border: 1px solid var(--line); border-radius: 0.65rem; transition: transform 0.22s ease, filter 0.22s ease; }
.gallery-grid button:hover { transform: scale(1.04); filter: saturate(1.25); }

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, 1.35fr) repeat(3, minmax(8rem, 0.7fr)) minmax(16rem, 1.4fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.2rem clamp(1rem, 4vw, 4.25rem) 2.7rem;
  border-top: 1px solid var(--line);
  background: rgba(2, 13, 32, 0.64);
}
[data-theme='light'] .site-footer { background: rgba(247, 251, 255, 0.7); }
.site-footer p, .site-footer a { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.footer-brand p { margin-top: 1rem; max-width: 18rem; }
.socials { display: flex; gap: 0.55rem; margin-top: 1rem; }
.socials a { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.site-footer nav { display: grid; align-content: start; gap: 0.35rem; }
.site-footer h3 { margin: 0 0 0.45rem; font-size: 0.96rem; }
.newsletter-form { position: relative; align-self: start; }
.newsletter-form p { margin: 0.45rem 0 1rem; max-width: 25rem; }
.newsletter-form label { display: block; position: relative; }
.newsletter-form label span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.newsletter-form input { width: 100%; height: 3.2rem; border: 1px solid var(--line); border-radius: 999px; outline: 0; padding: 0 4rem 0 1.2rem; color: var(--text); background: rgba(255, 255, 255, 0.06); }
[data-theme='light'] .newsletter-form input { background: rgba(255, 255, 255, 0.78); }
.newsletter-form button { position: absolute; right: 0.45rem; bottom: 0.42rem; width: 2.35rem; height: 2.35rem; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.chat-orb { position: absolute; right: clamp(1rem, 4vw, 4.25rem); bottom: 1.4rem; width: 5.4rem; height: 5.4rem; border: 3px solid var(--pink); border-radius: 999px; background: radial-gradient(circle at 45% 35%, #ffd0a3 0 20%, #1b243b 21% 36%, #8255ff 37% 100%); box-shadow: 0 0 34px rgba(243, 83, 215, 0.45); }
.chat-orb span { position: absolute; right: 0.2rem; bottom: 4.7rem; width: max-content; max-width: 10rem; padding: 0.45rem 0.65rem; border-radius: 0.7rem; color: #14213a; background: white; font-size: 0.7rem; font-weight: 900; }

.ai-floating-btn { position: absolute; right: clamp(1rem, 4vw, 4.25rem); bottom: 1.4rem; width: 5.4rem; height: 5.4rem; border: 3px solid var(--pink); border-radius: 999px; background: radial-gradient(circle at 45% 35%, #ffd0a3 0 20%, #1b243b 21% 36%, #8255ff 37% 100%); box-shadow: 0 0 34px rgba(243, 83, 215, 0.45); }
.ai-floating-btn span { position: absolute; right: 0.2rem; bottom: 4.7rem; width: max-content; max-width: 10rem; padding: 0.45rem 0.65rem; border-radius: 0.7rem; color: #14213a; background: white; font-size: 0.7rem; font-weight: 900; }


@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.55); opacity: 1; }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto; }
  .nav-toggle { display: block; justify-self: end; }
  .main-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 4.7rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    transform-origin: top;
    scale: 0.98 0;
    opacity: 0;
    pointer-events: none;
    transition: scale 0.2s ease, opacity 0.2s ease;
  }
   .lower-grid { grid-template-columns: 1fr; }
  .main-nav.is-open { scale: 1; opacity: 1; pointer-events: auto; }
  .header-actions { grid-column: 1 / -1; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  
  .hero::before { inset-left: 24%; height: 330px; opacity: .62; }
  .assistant-panel { max-width: 34rem; margin-top: 0; }
  .stats-strip { flex-wrap: wrap; }
  .stat-card { flex: 1 1 calc(33.333% - 1rem); min-width: 200px; }
  .stat-card:nth-child(3) { border-right: 0; }
  .stat-card:nth-child(-n+3) { border-bottom: 1px solid rgba(116, 190, 255, 0.1); }
  .content-grid, .bottom-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: repeat(2, 1fr); padding-bottom: 7.5rem; }
}

@media (max-width: 760px) {
  .site-header { padding: 0.85rem 1rem; gap: 0.75rem; }
  .header-actions { display: grid; grid-template-columns: repeat(4, auto); overflow-x: auto; justify-content: start; padding-bottom: 0.15rem; }
  .main-nav { grid-template-columns: repeat(2, 1fr); }
  .hero-section { min-height: auto; padding-top: 1.5rem; }
  .hero-media { height: 30rem; }
  .hero-copy h1 { font-size: clamp(3.45rem, 17vw, 5.5rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 24rem; }
  .hero::before { inset: 76px 0 auto 0; height: 250px; border-bottom-left-radius: 36px; opacity: .22; }
  .assistant-panel { border-radius: 1.1rem; }
  .stats-strip { flex-wrap: wrap; }
  .stat-card { flex: 1 1 calc(50% - 0.5rem); }
  .stat-card { border-bottom: 1px solid rgba(116, 190, 255, 0.1); }
  .stat-card:nth-child(odd) { border-right: 1px solid rgba(116, 190, 255, 0.1); }
  .stat-card:nth-child(even) { border-right: 0; }
  .stat-card:nth-last-child(-n+2) { border-bottom: 0; }
  .metric-grid, .place-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .category-row { flex-wrap: wrap; justify-content: flex-start; gap: 0.5rem; }
  /* category-shell styles moved to component blade */
  .timeline-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2.5rem; }
  .timeline-track article { flex: 0 0 14rem; scroll-snap-align: start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .chat-orb { width: 4.6rem; height: 4.6rem; }
  .chat-orb span { display: none; }
}

@media (max-width: 480px) {
  .section-pad { width: min(100% - 1rem, 1320px); }
  .brand { font-size: 1.12rem; }
  .brand img { height: 32px; }
  .brand .brand-tagline { max-width: 10.5rem; font-size: 0.4rem; letter-spacing: 0.075em; }
  .login-button { padding: 0 0.8rem; }
  .hero-copy h1 { font-size: 3.35rem; }
  .hero-copy p { font-size: 0.96rem; }
  .stats-strip { flex-direction: column; }
  .stat-card { flex: 1 1 100%; border-right: 0 !important; }
  .stat-card:not(:last-child) { border-bottom: 1px solid rgba(116, 190, 255, 0.1); }
  .metric-grid, .place-grid, .news-grid { grid-template-columns: 1fr; }
  .category-row { flex-wrap: wrap; gap: 0.5rem; }
  .card-panel { padding: 0.85rem; }
  .map-visual { margin-inline: -0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}

/* Form Validation Error Styles */
.is-invalid {
  border-color: #ef4444 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12'%3e%3cpath fill='%23ef4444' d='M4.95 4.95a.75.75 0 0 0-1.06 1.06L4.94 7 3.89 8.06a.75.75 0 0 0 1.06 1.06l1.05-1.05 1.06 1.06a.75.75 0 0 0 1.06-1.06L7 7.06l1.05-1.06a.75.75 0 0 0-1.06-1.06L6 5.94 4.95 4.89z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.75em + 0.75rem);
}

.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.invalid-feedback {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  width: 100%;
}

.invalid-feedback.d-block {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.was-validated textarea:invalid,
.was-validated input:invalid {
  border-color: #ef4444;
}
