:root {
  --bg: #071a33;
  --bg-soft: #0a254a;
  --panel: rgba(10, 37, 74, 0.7);
  --panel-strong: rgba(10, 37, 74, 0.88);
  --text: #ffffff;
  --muted: #bed0e6;
  --accent: #d4af37;
  --line: rgba(212, 175, 55, 0.38);
  --hover-glow: rgba(212, 175, 55, 0.25);
}

/* Bootstrap override baseline */
.row {
  --bs-gutter-x: 1.2rem;
  --bs-gutter-y: 1.2rem;
}

html[data-theme="light"] {
  --bg: #f4f7fc;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #0a254a;
  --muted: #39577e;
  --accent: #0a254a;
  --line: rgba(10, 37, 74, 0.25);
  --hover-glow: rgba(10, 37, 74, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.page-enter {
  opacity: 0;
  transform: translateY(8px);
}
body.page-enter.page-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% -10%, rgba(212, 175, 55, 0.17), transparent 30%),
    radial-gradient(circle at 90% 110%, rgba(100, 142, 212, 0.16), transparent 34%);
}

.container {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--bg-soft) 40%, transparent);
  backdrop-filter: blur(10px);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-solid {
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 72px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.28));
}

.brand-name {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--text); }

.utility-toggles {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-cta {
  margin-left: auto;
}

.toggle-btn, .btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.58rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.toggle-btn:hover, .btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 65%, white);
  box-shadow: 0 0 0 1px var(--hover-glow), 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary {
  background: linear-gradient(90deg, #9a740c, #f0dc9b);
  color: #121212;
  border-color: transparent;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

main { padding: 2.2rem 0 3rem; }
section { padding: 1.25rem 0; }
h1, h2, h3 {
  margin: 0 0 0.7rem;
  font-family: Montserrat, Inter, sans-serif;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.13; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); }
p { margin: 0 0 0.8rem; color: var(--muted); }

.hero {
  text-align: left;
  padding-top: 2.6rem;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.hero-media video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--accent) 65%, var(--text));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: color-mix(in srgb, var(--accent) 65%, var(--text));
  margin-bottom: 0.55rem;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25), 0 0 24px var(--hover-glow);
  border-color: color-mix(in srgb, var(--accent) 70%, #ffffff);
}

.stack {
  display: grid;
  gap: 1rem;
}

.seo-stack {
  gap: 1.1rem;
}

.seo-block p {
  line-height: 1.75;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.92rem;
}
input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 90%, transparent);
  color: var(--text);
  padding: 0.66rem 0.72rem;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 60%, #ffffff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}

.full { grid-column: 1 / -1; }

.carousel-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.carousel-track {
  display: flex;
  width: max-content;
  animation: journey-slide 30s linear infinite;
  will-change: transform;
}
.journey-card {
  width: min(300px, 74vw);
  margin: 0.8rem 0.5rem;
}
@keyframes journey-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  color: var(--muted);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie + chatbot */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 1rem));
  z-index: 72;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.cookie-banner p { margin: 0; font-size: 0.86rem; }
.cookie-actions { display: flex; gap: 0.4rem; }

.ta-chat-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #ffffff);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 70%, #ffffff), var(--bg-soft));
  color: #fff;
  font-size: 1.05rem;
  z-index: 78;
}
.ta-chat-welcome {
  position: fixed;
  right: 14px;
  bottom: 74px;
  z-index: 77;
  max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ta-chat-welcome.show { opacity: 1; transform: translateY(0); }
.ta-chat-box {
  position: fixed;
  right: 14px;
  bottom: 72px;
  width: min(360px, calc(100% - 1rem));
  z-index: 79;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.32);
  display: none;
}
.ta-chat-box.open { display: block; }
.ta-chat-header { padding: 0.7rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.ta-chat-log { max-height: 260px; overflow: auto; padding: 0.7rem; font-size: 0.84rem; }
.ta-line { margin: 0 0 0.5rem; }
.ta-bot strong { color: color-mix(in srgb, var(--accent) 70%, #ffffff); }
.ta-user strong { color: #9ec3ff; }
.ta-chat-input-row { display: flex; gap: 0.45rem; padding: 0.7rem; border-top: 1px solid var(--line); }
.ta-chat-input-row input { flex: 1; }
.ta-chat-input-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #9a740c, #f0dc9b);
  color: #111;
  font-weight: 700;
  padding: 0 0.75rem;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .brand-sub { display: none; }
  .utility-toggles { margin-left: 0; }
  .nav-cta { display: none; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ta-chat-toggle {
    width: 44px;
    height: 44px;
    bottom: 10px;
    right: 10px;
  }
  .ta-chat-box { right: 10px; width: min(330px, calc(100% - 12px)); }
  .ta-chat-welcome { right: 10px; max-width: 248px; }

  .seo-block {
    padding: 1rem;
  }

  .seo-block p {
    line-height: 1.8;
  }
}
