 :root {
  /* Base Colors */
  --bg: #F7FAFC;
  --white: #0F1A1F;
  --muted: #5F6F76;

  --glass: rgba(0,0,0,0.04);
  --panel-bg: rgba(255,255,255,0.78);

  /* Brand Gradient (Logo & CTA) */
  --accent-1: #00C982;
  --accent-2: #00E4FF;
  --cta-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  /* Sizes & Radius */
  --nav-height: 72px;
  --nav-padding: 12px 24px;
  --max-width: 1200px;
  --radius-lg: 16px;
  --radius-md: 12px;

  /* Easing */
  --ease: cubic-bezier(.2,.9,.28,1);
  --ease-fast: cubic-bezier(.4,0,.2,1);
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(0,228,255,0.08), transparent 10%),
    radial-gradient(800px 400px at 90% 90%, rgba(0,201,130,0.06), transparent 10%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}


a {
  color: inherit;
  text-decoration: none;
}


body.no-scroll {
  overflow: hidden;
}


#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  opacity: 0.6;
  will-change: opacity, transform;
}


header {
  width: 100%;
  position: fixed;
  top: 18px;
  left: 0;
  display: flex;
  justify-content: center;
  z-index: 60;
  transition: transform 0.45s var(--ease), backdrop-filter 0.3s ease, opacity 0.3s ease;
}

.nav-glass {
  width: 100%;
  max-width: calc(var(--max-width) + 48px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 30px rgba(15,26,31,0.08);
  backdrop-filter: blur(10px) saturate(1.1);
}

@media (max-width: 980px) {
  header { top: 12px; padding: 8px 12px; }
  .nav-glass { padding: 8px 12px; }
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  letter-spacing: 0.2px;
  color: var(--white);
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-gradient);
  font-weight: 800;
  transform: rotate(-8deg);
  transition: transform .3s, box-shadow .3s;
}

.logo-badge:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,201,130,0.25);
}

@media(max-width:420px) {
  .logo-badge { width: 40px; height: 40px; }
}


nav.navbar {
  display: flex;
  flex: 1;
  gap: 45px;
  align-items: center;
  padding-inline: 20px;
}

@media(max-width:980px) {
  nav.navbar { display: none; }
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.nav-label,
.nav-item .arrow {
  cursor: pointer;
}

.arrow {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 0.25s var(--ease);
}

.nav-item.active .arrow {
  transform: rotate(180deg);
}


.mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.98);
  width: 520px;
  max-width: 90vw;
  padding: 28px;
  background: var(--panel-bg);
  backdrop-filter: blur(22px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 45px rgba(15,26,31,0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 45;
}

.nav-item[aria-expanded="true"] .mega-panel,
.mega-panel[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-item:last-child .mega-panel {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(-10px) scale(0.98);
}

.nav-item:last-child[aria-expanded="true"] .mega-panel {
  transform: translateX(50%) translateY(0) scale(1);
}

.panel-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-column h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.panel-column p {
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.75;
  color: var(--muted);
}

.panel-column a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--white);
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  transition: all 0.25s;
}

.panel-column a:hover {
  background: linear-gradient(90deg, #00C98222, #00E4FF22);
  transform: translateX(3px) scale(1.03);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.subscribeBtn {
  background: var(--cta-gradient);
  color: #0F1A1F;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,201,130,0.18);
  transition: transform 0.18s, box-shadow 0.18s;
}

.subscribeBtn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0,201,130,0.28);
  background: linear-gradient(120deg, #00E4FF, #00C982);
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--white);
  opacity: 0.8;
  padding: 9px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  transition: opacity 0.2s, transform 0.18s;
}

.icon-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.hamburger {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

.hamburger:hover {
  transform: scale(1.05);
  background: rgba(0,0,0,0.04);
}

@media(max-width:980px){
  .hamburger { display: flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(247,250,252,0.7);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
}

.mobile-menu[aria-hidden="false"] {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 100;
  padding-top: 16px;
}

.panel.active { transform: translateX(0); }
.main-panel { transform: translateX(0); }

.panel-header { display: flex; }

.close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--white);
  opacity: 0.8;
  padding: 9px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  transition: opacity 0.2s, transform 0.18s;
}

.close-btn:hover { transform: scale(1.06); }

.back-btn { align-self: flex-start; margin-bottom: 10px; }

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  background: transparent;
  color: var(--white);
}

.mobile-link:hover {
  background: rgba(0,0,0,0.04);
}

.dropdown-header.active {
  background: rgba(0,201,130,0.14);
  color: #00C982;
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  background: var(--panel-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 12px 28px rgba(0,201,130,0.18);
}

.modal input {
  width: 100%;
  padding: 10px;
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #0F1A1F;
}


.slider {
  background-color: #E6ECEF;
  color: #0F1A1F;
}

.mode-switch input:checked + .slider {
  background-color: #0F1A1F;
  color: #fff;
}

.arrow-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  color: var(--white);
}

.arrow-btn:hover { transform: scale(1.06); }

/* Mobile subscribe button */
.mobile-menu .subscribeBtn {
  width: 100%;
  max-width: 320px;
  padding: 14px 0;
  font-size: 1rem;
  text-align: center;
}

/* Dropdowns inside mobile panels */
.dropdown { display: flex; flex-direction: column; }

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  color: var(--white);
}

.dropdown-header.active {
  background: rgba(0,201,130,0.14);
  color: var(--accent-1);
}

.dropdown-content {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-left: 12px;
  margin-top: 5px;
}

.dropdown.open .dropdown-content { display: flex; }


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

.modal-content {
  position: relative;
  background: var(--panel-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 12px 28px rgba(0,201,130,0.18);
}

.modal input {
  width: 100%;
  padding: 10px;
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #FFFFFF;
  color: var(--white);
}

.modal input::placeholder { color: var(--muted); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--white);
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(0,0,0,0.12);
  transform: scale(1.06);
}

/* Subscribe Button */
#subscribeSubmit {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
  background: var(--cta-gradient);
  color: #0F1A1F;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

#subscribeSubmit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Subscribe Message */
#subscribeMessage {
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent-1);
  text-align: center;
}


.mode-switch-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.mode-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #E6ECEF;
  border-radius: 30px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 16px;
  color: var(--white);
}

.slider .sun,
.slider .moon { pointer-events: none; }

.mode-switch input:checked + .slider {
  background-color: #0F1A1F;
  color: #FFFFFF;
}

.slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: 0.4s;
}

.mode-switch input:checked + .slider::before {
  transform: translateX(30px);
}


@media(max-width:540px) {
  .nav-glass { padding:6px 12px; height: 64px; }
  .subscribeBtn { padding:10px 12px; font-size:.9rem; }
  .icon-btn { padding:8px; }
  .nav-actions { flex-wrap: nowrap; gap: 10px; }
}


body {
  background:
    radial-gradient(1400px 700px at 15% 15%, rgba(0,228,255,0.08), transparent 12%),
    radial-gradient(900px 450px at 85% 85%, rgba(0,201,130,0.06), transparent 12%),
    var(--bg);
}


.mega-panel {
  background: var(--panel-bg);
  border: 1px solid rgba(0,0,0,0.06);
}

.panel-column a:hover {
  background: linear-gradient(90deg, #00C98222, #00E4FF22);
  transform: translateX(3px) scale(1.03);
}


.subscribeBtn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0,201,130,0.28);
  background: linear-gradient(120deg, #00E4FF, #00C982);
}


.panel-column p {
  opacity: 0.85;
  color: grey;
}

.dropdown-header.active {
  background: rgba(0,201,130,0.14);
  color: var(--accent-1);
}


.nested-panel {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#FFFFFF;
  display:flex;
  flex-direction:column;
  gap:20px;
  padding-top:16px;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease), opacity 0.25s ease;
  opacity:0;
  z-index:110;
}

.nested-panel.active {
  transform: translateX(0);
  opacity:1;
}

.main-panel.active {
  transform: translateX(0);
  opacity:1;
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 9999;
}

.chat-widget {
  background: #fff;
  width: 360px;
  max-width: 100%;
  height: 520px;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-header {
  padding: 14px 16px;
  background: #00C982;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f6f7f9;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.chat-bubble.bot {
  background: #e3e6eb;
  color: #000;
}

.chat-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-footer textarea {
  flex: 1;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 8px;
  font-size: 14px;
}

.chat-footer button {
  background: #00C982;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.chat-note {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding-bottom: 8px;
}


@media (max-width: 600px) {
  .chat-overlay {
    align-items: stretch;
    justify-content: stretch;
  }

  .chat-widget {
    width: 100%;
    height: 100dvh; /* modern mobile-safe viewport */
    max-height: none;
    border-radius: 0;
  }

  .chat-header {
    padding-top: env(safe-area-inset-top);
  }

  .chat-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
