:root {
  --bg-gradient: radial-gradient(140% 140% at 50% 0%, #1d2763 0%, #141b44 46%, #070b1f 100%);
  --hero-highlight: radial-gradient(95% 70% at 50% 2%, rgba(134, 161, 255, 0.28), transparent 72%);
  --accent: #4f7dff;
  --accent-alt: #593dff;
  --text-primary: #ffffff;
  --text-secondary: rgba(230, 235, 255, 0.78);
  --button-hover-overlay: rgba(255, 255, 255, 0.12);
  --nav-border: rgba(122, 146, 255, 0.42);
  --nav-bg: rgba(23, 34, 78, 0.68);
  --nav-bg-hover: rgba(36, 47, 109, 0.85);
  --nav-surface: linear-gradient(140deg, rgba(27, 37, 90, 0.9), rgba(20, 27, 64, 0.72));
  --nav-surface-border: rgba(99, 124, 255, 0.38);
  --nav-link-active: linear-gradient(130deg, rgba(105, 152, 255, 0.95), rgba(129, 78, 255, 0.92));
  --nav-link-shadow: rgba(72, 99, 255, 0.42);
  --nav-cta-gradient: linear-gradient(130deg, #6b7bff 0%, #6f3dff 48%, #4e32ff 100%);
  --nav-cta-glow: rgba(79, 86, 255, 0.45);
  --container-max-width: 1120px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-gradient);
  position: relative;
  color: var(--text-primary);
  font-family: inherit;
}

body::before {
  content: '';
  position: fixed;
  inset: -25% -20% -20% -20%;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 18% 12%, rgba(120, 150, 255, 0.35), transparent 70%),
    radial-gradient(55% 55% at 78% 20%, rgba(90, 70, 255, 0.28), transparent 72%),
    radial-gradient(65% 65% at 36% 88%, rgba(75, 110, 255, 0.22), transparent 74%);
  opacity: 0.85;
  transform: translateZ(0);
  z-index: 0;
}

.process-title {
  margin: 0 0 var(--spacing-md);
}

.text-brand-gradient {
  color: #8b5cf6;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 0 16px rgba(110, 76, 255, 0.45);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-brand-gradient {
    background: linear-gradient(120deg, #a855f7 0%, #7c3aed 38%, #6366f1 70%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.floating-contact {
  position: fixed;
  right: clamp(1.5rem, 4vw, 2.5rem);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 15;
}

.floating-message {
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  background: #f3f5ff;
  color: #1d2350;
  box-shadow: 0 18px 45px rgba(20, 26, 66, 0.32);
  font-size: 0.95rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: min(260px, 60vw);
  position: relative;
}

.floating-message::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #f3f5ff;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 12px 12px 32px rgba(20, 26, 66, 0.12);
  border-radius: 4px 2px 8px 0;
}

.floating-message__title {
  margin: 0;
  font-weight: 600;
}

.floating-message__cta {
  margin: 0;
  font-size: 0.9rem;
  color: #3b47b5;
  font-weight: 500;
}

@media (max-width: 540px) {
  .floating-contact {
    right: clamp(1rem, 6vw, 1.5rem);
    bottom: clamp(1rem, 6vw, 1.5rem);
    gap: 0.75rem;
  }

  .floating-message {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    max-width: min(220px, 70vw);
  }

  .floating-message__cta {
    font-size: 0.82rem;
  }
}

.floating-bubble {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(108, 136, 255, 0.95), rgba(80, 56, 255, 0.95));
  box-shadow: 0 20px 45px rgba(36, 40, 95, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.floating-bubble::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 65%);
  pointer-events: none;
}

.floating-bubble__icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f5f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(69, 82, 165, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.floating-bubble__icon svg {
  width: 26px;
  height: 26px;
  stroke: #4f5dff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-bubble:hover,
.floating-bubble:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 55px rgba(36, 40, 95, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.floating-bubble:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 6px;
}

.floating-contact--open .floating-message {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 92vw);
  background: linear-gradient(180deg, #10163a 0%, #0a0f27 100%);
  box-shadow: -18px 0 48px rgba(3, 5, 16, 0.45);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.25rem;
  transform: translateX(110%);
  transition: transform 0.32s ease, opacity 0.28s ease;
  opacity: 0;
  z-index: 20;
  border-radius: 16px 0 0 16px;
}

.chat-panel--open {
  transform: translateX(0);
  opacity: 1;
}

.chat-panel__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.chat-panel__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 125, 255, 0.9), rgba(96, 61, 255, 0.9));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.chat-panel__intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.chat-panel__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chat-panel__close {
  background: none;
  border: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-panel__close svg {
  width: 20px;
  height: 20px;
  stroke: #f5f7ff;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.chat-panel__close:hover,
.chat-panel__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
}

.chat-panel__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.chat-panel__body {
  flex: 1;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(13, 18, 43, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-message {
  max-width: 82%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  line-height: 1.45;
  color: #f3f6ff;
  box-shadow: 0 8px 24px rgba(4, 6, 18, 0.18);
}

.chat-message--user {
  margin-left: auto;
  background: linear-gradient(140deg, rgba(108, 138, 255, 0.95), rgba(90, 61, 255, 0.9));
  color: #fff;
  border-radius: 12px 12px 4px 12px;
}

.chat-message--typing {
  min-width: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
}

.typing-indicator {
  display: inline-flex;
  gap: 0.3rem;
}

.typing-indicator__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: rgba(243, 246, 255, 0.65);
  animation: typingBounce 1.1s infinite ease-in-out;
}

.typing-indicator__dot:nth-child(2) {
  animation-delay: 0.18s;
}

.typing-indicator__dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-panel__form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.chat-panel__input {
  resize: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 13, 32, 0.9);
  color: #f5f8ff;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  min-height: 48px;
  max-height: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-panel__input:focus {
  outline: none;
  border-color: rgba(109, 138, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(109, 138, 255, 0.2);
}

.chat-panel__send {
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(140deg, rgba(108, 138, 255, 0.95), rgba(90, 61, 255, 0.95));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-panel__send:hover,
.chat-panel__send:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(46, 60, 150, 0.35);
}

.chat-panel__send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-panel__status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 1.2em;
}

.chat-panel__status[data-type='error'] {
  color: #ff9f9f;
}

@media (max-width: 600px) {
  .chat-panel {
    width: min(100%, 420px);
    border-radius: 24px 24px 0 0;
    height: min(100vh, 94vh);
    bottom: 0;
    top: auto;
    transform: translateY(110%);
    right: 50%;
    translate: 50% 0;
  }

  .chat-panel--open {
    transform: translateY(0);
  }
}

.section {
  padding: var(--spacing-xl) var(--spacing-md);
  background: transparent;
}

.agenda-main {
  padding: clamp(4rem, 6vw + 2rem, 6rem) var(--spacing-md);
}

.agenda-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(var(--spacing-lg), 5vw, var(--spacing-xl));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  padding-inline: clamp(1.5rem, 4vw, 2.75rem);
}

.agenda-copy {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.agenda-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw + 1rem, 3.8rem);
  line-height: 1.1;
}

.agenda-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.1vw + 0.9rem, 1.2rem);
  line-height: 1.8;
}

.agenda-scheduler .scheduler {
  grid-template-columns: minmax(440px, 1.65fr) minmax(320px, 1fr);
  gap: clamp(var(--spacing-lg), 6vw, 3.75rem);
}

@media (max-width: 960px) {
  .agenda-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: clamp(1.25rem, 6vw, 2rem);
  }

  .agenda-scheduler .scheduler {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-lg);
  }
}

.ia-section {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.ia-section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--spacing-lg), 6vw, var(--spacing-xl));
  align-items: center;
}

.process-section {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.process-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--spacing-lg), 6vw, var(--spacing-xl));
  align-items: center;
}

.process-copy {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.process-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 3.5vw + 1rem, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.process-badge {
  background: rgba(93, 124, 255, 0.18);
  color: #c4d0ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.process-steps {
  counter-reset: process-step;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  position: relative;
  padding-left: 3.5rem;
}

.process-steps li::before {
  counter-increment: process-step;
  content: counter(process-step);
  position: absolute;
  left: 0;
  top: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(89, 117, 255, 0.85), rgba(85, 63, 255, 0.95));
  box-shadow: 0 18px 35px rgba(64, 87, 255, 0.35);
  font-weight: 700;
  font-size: 1rem;
}

.process-steps h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.25rem;
}

.process-steps p {
  margin: 0;
  color: rgba(230, 235, 255, 0.8);
  line-height: 1.6;
}

.process-cta {
  align-self: flex-start;
  padding-inline: 2.6rem;
  box-shadow: 0 25px 60px rgba(75, 114, 255, 0.35);
}

.process-preview {
  display: flex;
  justify-content: center;
}

.process-device {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(100%, 420px);
  padding: 1.75rem;
  border-radius: 32px;
  background: linear-gradient(165deg, rgba(17, 23, 52, 0.95), rgba(9, 12, 29, 0.95));
  border: 1px solid rgba(134, 153, 255, 0.16);
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.process-device-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.process-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(91, 134, 255, 0.9), rgba(70, 46, 255, 0.95));
  font-weight: 700;
  letter-spacing: 0.05em;
}

.process-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.process-contact-name {
  margin: 0;
  font-weight: 600;
}

.process-contact-role {
  margin: 0;
  color: rgba(222, 228, 255, 0.68);
  font-size: 0.9rem;
}

.process-status {
  margin-left: auto;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(80, 205, 164, 0.12);
  color: #6ef0c6;
  font-size: 0.85rem;
  font-weight: 600;
}

.process-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  position: relative;
  max-width: 80%;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 20px 40px rgba(10, 12, 32, 0.4);
}

.chat-bubble--incoming {
  align-self: flex-start;
  background: rgba(84, 108, 255, 0.32);
  border: 1px solid rgba(124, 146, 255, 0.35);
}

.chat-bubble--outgoing {
  align-self: flex-end;
  background: rgba(31, 41, 82, 0.9);
  border: 1px solid rgba(108, 124, 211, 0.2);
}

.chat-bubble p {
  margin: 0;
  color: rgba(241, 244, 255, 0.92);
}

.process-device-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(120, 140, 255, 0.18);
}

.process-typing {
  color: rgba(201, 210, 255, 0.65);
  font-size: 0.9rem;
}

.process-send {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(140deg, rgba(91, 122, 255, 0.9), rgba(81, 58, 255, 0.95));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 22px 45px rgba(62, 83, 190, 0.4);
}

.process-send span {
  position: relative;
  width: 14px;
  height: 14px;
}

.process-send span::before,
.process-send span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.process-send span::after {
  inset: 4px 2px 4px 6px;
  background: rgba(255, 255, 255, 0.35);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.process-send:focus-visible {
  outline: 2px solid rgba(121, 149, 255, 0.6);
  outline-offset: 3px;
}

.ia-copy {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.ia-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw + 1rem, 3.8rem);
  line-height: 1.15;
}

.ia-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.1vw + 0.85rem, 1.15rem);
  line-height: 1.75;
}

.ia-badge {
  background: rgba(104, 136, 255, 0.18);
  color: #b8c6ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ia-cta {
  align-self: flex-start;
  padding-inline: 2.8rem;
  box-shadow: 0 25px 60px rgba(55, 125, 255, 0.32);
}

.ia-cta:hover,
.ia-cta:focus {
  transform: translateY(-3px);
}

.ia-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.ia-feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: 1.4rem 1.5rem;
  border-radius: 24px;
  background: rgba(16, 23, 55, 0.82);
  border: 1px solid rgba(138, 155, 255, 0.16);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.ia-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(106, 140, 255, 0.28), rgba(90, 72, 255, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px rgba(94, 120, 255, 0.28);
}

.ia-feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: #f5f7ff;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.ia-feature-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.ia-feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.section--arrival {
  filter: blur(18px);
  opacity: 0.35;
  transform: translateY(30px);
  transition: filter 0.7s ease, transform 0.7s ease, opacity 0.7s ease;
}

.section--arrival-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

.section--dark {
  background: transparent;
}

.section-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.section-header h2 {
  font-size: clamp(2rem, 2.3vw + 1.1rem, 3.2rem);
  margin: 0;
}

.section-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-inline: var(--spacing-md);
  padding-bottom: var(--spacing-xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-highlight);
  pointer-events: none;
}


.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max-width);
  margin: clamp(1.3rem, 3vw, 2.6rem) auto 0;
  width: 100%;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: clamp(0.85rem, 1.8vw, 1.2rem) clamp(1.2rem, 2.8vw, 2.1rem);
  background: var(--nav-surface);
  border-radius: 999px;
  border: 1px solid var(--nav-surface-border);
  box-shadow: 0 28px 65px rgba(10, 14, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  isolation: isolate;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-primary);
}



.nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.6rem);
  padding: 0.35rem;
  background: var(--nav-surface);
  border-radius: 999px;
  border: 1px solid rgba(140, 164, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px rgba(8, 12, 40, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem clamp(1rem, 2.1vw, 1.4rem);
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-link-active);
  opacity: 0;
  transform: scaleX(0.88) scaleY(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: -1;
  box-shadow: 0 16px 32px var(--nav-link-shadow);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  opacity: 0.55;
  transform: scaleX(1) scaleY(1);
}

.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1) scaleY(1);
}

.nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem clamp(1.3rem, 2.8vw, 1.8rem);
  border-radius: 999px;
  border: 1px solid rgba(142, 168, 255, 0.45);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--nav-cta-gradient);
  box-shadow: 0 20px 38px var(--nav-cta-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: screen;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 24px 44px rgba(88, 82, 255, 0.52);
}

.nav-cta:focus-visible {
  outline: 2px solid rgba(195, 210, 255, 0.5);
  outline-offset: 4px;
}

.brand-logo {
  display: inline-block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2744%27%20fill%3D%27none%27%20stroke%3D%27%2360e8e8%27%20stroke-width%3D%2712%27/%3E%3Crect%20x%3D%2743%27%20y%3D%2718%27%20width%3D%2714%27%20height%3D%2764%27%20rx%3D%277%27%20fill%3D%27%235922ff%27/%3E%3C/svg%3E")
    center / contain no-repeat;
  box-shadow: none;
}

.brand-logo::after {
  content: none;
}

.top-bar-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-left: auto;
}

.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) 0 var(--spacing-xl);
}

.hero-content {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  text-align: center;
}

.hero-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle at 25% 25%, rgba(15, 25, 65, 0.6), rgba(11, 21, 70, 0.9));
  box-shadow: 0 32px 90px rgba(66, 90, 255, 0.45);
  padding: 10px;
}

.hero-emblem svg {
  width: 100%;
  height: 100%;
}

.hero-emblem circle,
.hero-emblem rect {
  transition: transform 0.3s ease;
}

.hero-emblem:hover circle:first-of-type {
  transform: scale(1.02);
  transform-origin: center;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw + 1rem, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-description {
  margin: 0;
  max-width: 640px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.2rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn-primary {
  background: linear-gradient(140deg, var(--accent), var(--accent-alt));
  color: var(--text-primary);
  border-color: rgba(111, 134, 255, 0.55);
  box-shadow: 0 24px 60px rgba(79, 125, 255, 0.38);
}

.btn-secondary {
  background: rgba(23, 33, 78, 0.68);
  color: var(--text-primary);
  border-color: rgba(138, 158, 255, 0.42);
}

.btn:hover,
.btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.4);
  outline-offset: 4px;
}

.btn:hover.btn-secondary,
.btn:focus.btn-secondary {
  background: rgba(33, 44, 104, 0.85);
  border-color: rgba(174, 191, 255, 0.65);
}




.scheduler {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.scheduler-card {
  background: rgba(20, 30, 72, 0.42);
  border-radius: 24px;
  padding: var(--spacing-lg);
  border: 1px solid rgba(138, 156, 255, 0.2);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.scheduler-card--secondary {
  background: rgba(15, 21, 58, 0.7);
}

.time-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.time-picker-date {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: capitalize;
}

.time-picker-timezone {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.time-slot-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: var(--spacing-sm);
  padding-right: 0.35rem;
  max-height: 320px;
  overflow-y: auto;
}

.time-slot-list::-webkit-scrollbar {
  width: 6px;
}

.time-slot-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.time-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(147, 162, 255, 0.2);
  background: rgba(14, 19, 46, 0.55);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.time-slot:hover,
.time-slot:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

.time-slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.time-slot-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #44df86;
  box-shadow: 0 0 0 4px rgba(68, 223, 134, 0.15);
}

.time-slot-label {
  flex: 1;
}

.time-slot--selected {
  background: linear-gradient(140deg, #4f7dff, #593dff);
  border-color: rgba(121, 143, 255, 0.85);
  box-shadow: 0 12px 30px rgba(93, 125, 255, 0.38);
}

.time-slot--selected .time-slot-dot {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.field-label {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.field-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.calendar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-month {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: capitalize;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.calendar-weekdays span {
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(5, 5, 25, 0.4);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.calendar-day:hover,
.calendar-day:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
  outline: none;
}

.calendar-day--selected {
  background: linear-gradient(135deg, #4f8bff, #3b5bdb);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(66, 99, 235, 0.4);
}

.calendar-day--disabled {
  cursor: not-allowed;
  opacity: 0.35;
  background: rgba(5, 5, 25, 0.2);
  box-shadow: none;
}

.calendar-day--disabled:hover,
.calendar-day--disabled:focus-visible {
  transform: none;
}

.calendar-day--empty {
  visibility: hidden;
}

input[type='date'],
select,
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 5, 25, 0.35);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 125, 255, 0.35);
}

.scheduler-submit {
  align-self: flex-start;
  margin-top: var(--spacing-sm);
  padding-inline: 2.5rem;
}

.scheduler-submit[disabled],
.form-submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.08);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-field--centered {
  grid-column: 1 / -1;
  max-width: min(520px, 100%);
  margin-inline: auto;
}

.form-submit {
  align-self: center;
  padding-inline: 3rem;
}

.form-feedback {
  text-align: center;
  font-weight: 500;
  margin: 0;
}

.form-feedback--success {
  color: #6cf7c5;
}

.form-feedback--error {
  color: #ff8888;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(110, 140, 255, 0.18);
  color: rgba(206, 215, 255, 0.92);
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .top-bar {
    flex-wrap: wrap;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 5vw, 1.6rem);
    border-radius: 32px;
    margin-top: clamp(1rem, 4vw, 1.8rem);
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .top-bar-nav {
    flex: 1 1 100%;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    margin-left: 0;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: auto;
  }

  .hero-content {
    gap: var(--spacing-md);
  }

  .ia-section-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .process-preview {
    order: -1;
  }

  .ia-cta {
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
    padding: clamp(0.75rem, 2.8vw, 1rem) clamp(0.9rem, 6vw, 1.4rem);
    margin-top: clamp(0.8rem, 6vw, 1.2rem);
  }

  .top-bar-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-left: 0;
  }

  .nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: clamp(0.35rem, 2vw, 0.6rem);
    padding: 0.45rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .nav-link {
    flex: 1 1 calc(50% - 0.4rem);
    padding-block: 0.6rem;
  }

  .main-content {
    padding-top: var(--spacing-lg);
  }

  .process-cta {
    align-self: stretch;
    justify-content: center;
  }

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

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: clamp(2.1rem, 8vw + 0.8rem, 2.6rem);
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* =============================
   ========== AUTH UI ==========
   ============================= */

:root {
  --dashboard-bg: #0f1014;
  --dashboard-surface: #16171f;
  --dashboard-border: #25273a;
  --dashboard-text: #f6f6f9;
  --dashboard-muted: #9aa0bf;
  --dashboard-accent: #7050ff;
  --dashboard-success: #1dd870;
  --dashboard-warning: #ffb547;
  --dashboard-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --dashboard-radius: 20px;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

body.login-body,
body.dashboard-body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--dashboard-bg);
  color: var(--dashboard-text);
  min-height: 100vh;
}

/* ---------- Login ---------- */

.login-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
  background: radial-gradient(circle at top left, rgba(112, 80, 255, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(89, 225, 230, 0.18), transparent 55%),
    var(--dashboard-bg);
}

.login-panel {
  width: min(420px, 100%);
  padding: 48px 40px;
  border-radius: var(--dashboard-radius);
  background: rgba(22, 23, 31, 0.92);
  border: 1px solid rgba(112, 120, 190, 0.18);
  box-shadow: var(--dashboard-shadow);
}

.login-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(140deg, #7050ff, #59e1e6);
  color: #0b0c10;
  letter-spacing: 1px;
}

.login-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dashboard-muted);
  letter-spacing: 0.02em;
}

.login-title {
  margin: 4px 0 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login-description {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--dashboard-muted);
  line-height: 1.6;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-field-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.login-input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(112, 120, 190, 0.4);
  background: rgba(12, 12, 18, 0.6);
  color: inherit;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.login-input::placeholder {
  color: rgba(226, 229, 255, 0.45);
}

.login-input--code {
  text-align: center;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

.login-input:focus {
  outline: none;
  border-color: var(--dashboard-accent);
  box-shadow: 0 0 0 3px rgba(112, 80, 255, 0.25);
}

.login-hint {
  font-size: 0.85rem;
  color: var(--dashboard-muted);
}

.login-submit {
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(120deg, #7050ff, #59e1e6);
  color: #05060c;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(112, 80, 255, 0.35);
}

.login-submit[disabled] {
  cursor: wait;
  opacity: 0.75;
}

.login-feedback {
  margin: 0;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(112, 120, 190, 0.15);
  color: var(--dashboard-text);
}

.login-feedback[data-type='error'] {
  background: rgba(255, 109, 109, 0.16);
  color: #ff9090;
}

.login-feedback[data-type='success'] {
  background: rgba(29, 216, 112, 0.16);
  color: #1dd870;
}

.login-helper {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--dashboard-muted);
  text-align: center;
}

.login-link {
  color: var(--dashboard-accent);
  font-weight: 600;
  text-decoration: none;
}

.login-link:hover,
.login-link:focus {
  text-decoration: underline;
}

/* ---------- Dashboard ---------- */

.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 40px;
  border-bottom: 1px solid var(--dashboard-border);
  background: rgba(18, 19, 27, 0.85);
  backdrop-filter: blur(18px);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(140deg, #7050ff 0%, #59e1e6 100%);
  color: #05060c;
  letter-spacing: 1px;
}

.dashboard-brand-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-brand-company {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--dashboard-muted);
}

.dashboard-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.dashboard-nav-link {
  color: var(--dashboard-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus {
  color: var(--dashboard-text);
  background: rgba(112, 80, 255, 0.1);
}

.dashboard-nav-link.is-active {
  color: var(--dashboard-text);
  background: rgba(112, 80, 255, 0.2);
}

.dashboard-nav-link--crm {
  background: linear-gradient(135deg, #4f7dff 0%, #7356ff 45%, #8a3cff 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(112, 80, 255, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.dashboard-nav-link--crm:hover,
.dashboard-nav-link--crm:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #5f8dff 0%, #805dff 45%, #9b4aff 100%);
  transform: scale(1.05);
  box-shadow: 0 16px 38px rgba(112, 80, 255, 0.6);
  filter: brightness(1.05);
}

.dashboard-nav-link--crm:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-session {
  margin: 0;
  font-size: 0.85rem;
  color: var(--dashboard-muted);
}

.dashboard-cta {
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #7050ff, #59e1e6);
  color: #05060c;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(112, 80, 255, 0.35);
}

.dashboard-logout {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--dashboard-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dashboard-logout:hover {
  color: var(--dashboard-text);
  border-color: rgba(255, 255, 255, 0.32);
}

.dashboard-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 36px 40px 48px;
}

.dashboard-primary {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dashboard-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-card {
  background: rgba(22, 23, 31, 0.92);
  border-radius: var(--dashboard-radius);
  border: 1px solid rgba(112, 120, 190, 0.18);
  padding: 32px;
  box-shadow: var(--dashboard-shadow);
}

.dashboard-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.card-kicker {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dashboard-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge--purple {
  background: rgba(112, 80, 255, 0.2);
  color: #c9b8ff;
}

.agents-title {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.agents-description {
  margin: 0;
  color: var(--dashboard-muted);
  max-width: 640px;
  line-height: 1.6;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 13, 20, 0.6);
  color: var(--dashboard-text);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover:not([disabled]) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.ghost-button--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-style: dashed;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sub-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: 18px;
  background: rgba(12, 13, 20, 0.75);
  border: 1px solid rgba(112, 120, 190, 0.18);
}

.sub-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.sub-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(112, 80, 255, 0.18);
  display: grid;
  place-items: center;
}

.icon-circle {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(112, 80, 255, 0.45);
}

.icon-circle--green {
  background: rgba(54, 211, 153, 0.8);
}

.icon-bell {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 181, 71, 0.18);
  position: relative;
}

.icon-bell::before,
.icon-bell::after {
  content: '';
  position: absolute;
  background: rgba(255, 181, 71, 0.85);
}

.icon-bell::before {
  width: 12px;
  height: 14px;
  border-radius: 6px 6px 4px 4px;
  left: 4px;
  top: 3px;
}

.icon-bell::after {
  width: 8px;
  height: 4px;
  border-radius: 999px;
  left: 6px;
  bottom: 2px;
}

.sub-card-title {
  margin: 0;
  font-size: 1.1rem;
}

.sub-card-subtitle {
  margin: 6px 0 0;
  color: var(--dashboard-muted);
  font-size: 0.9rem;
}

.sub-card-placeholder {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.sub-card-description {
  margin: 6px 0 0;
  color: var(--dashboard-muted);
  line-height: 1.55;
}

.sub-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot--active {
  background: var(--dashboard-success);
  box-shadow: 0 0 12px rgba(29, 216, 112, 0.65);
}

.status-label {
  color: #7ff0b3;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.sub-card-meta {
  margin: 0;
  color: var(--dashboard-muted);
  font-size: 0.85rem;
}

.alert-card {
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.85), rgba(255, 132, 80, 0.72));
  color: #1d1205;
  border: none;
}

.alert-card--pulse {
  animation: alertPulse 0.8s ease;
}

@keyframes alertPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.alert-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.alert-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.status-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-title {
  margin: 0;
  font-size: 1.1rem;
}

.status-indicator {
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-indicator--on {
  background: rgba(29, 216, 112, 0.16);
  color: var(--dashboard-success);
  border: 1px solid rgba(29, 216, 112, 0.35);
  box-shadow: 0 0 14px rgba(29, 216, 112, 0.25);
}

.status-description {
  margin: 0;
  color: var(--dashboard-muted);
  line-height: 1.6;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metric-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.metric-title {
  margin: 0;
  font-size: 1.1rem;
}

.metric-caption {
  font-size: 0.85rem;
  color: var(--dashboard-muted);
}

.metric-value {
  font-size: clamp(2.8rem, 3.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-description {
  margin: 0;
  color: var(--dashboard-muted);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .dashboard-header {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .dashboard-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .dashboard-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .dashboard-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dashboard-aside .dashboard-card {
    flex: 1 1 280px;
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding: 28px 20px 40px;
  }

  .dashboard-header {
    padding: 24px 20px;
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 26px;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 36px 24px;
  }

  .dashboard-actions {
    gap: 10px;
  }

  .dashboard-logout {
    order: 3;
    width: 100%;
  }

  .dashboard-cta {
    width: 100%;
  }
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  inset: auto 1.5rem 1.5rem 1.5rem;
  background: rgba(13, 20, 54, 0.95);
  border: 1px solid rgba(114, 146, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(7, 11, 31, 0.45);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  z-index: 45;
  backdrop-filter: blur(18px);
  color: #f6f8ff;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cookie-banner__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.cookie-banner__description {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-banner__link {
  color: #8fc7ff;
  font-weight: 600;
}

.cookie-banner__link:focus-visible,
.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookie-button:focus-visible {
  outline: 3px solid rgba(120, 160, 255, 0.7);
  outline-offset: 2px;
}

.cookie-button--primary {
  background: linear-gradient(135deg, #6e7dff 0%, #6f3eff 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(61, 84, 255, 0.4);
}

.cookie-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(61, 84, 255, 0.45);
}

.cookie-button--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f6f8ff;
}

.cookie-button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 28, 0.75);
  backdrop-filter: blur(4px);
  z-index: 55;
}

.cookie-consent-backdrop[hidden] {
  display: none !important;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 2.5rem));
  background: #10173c;
  color: #f6f8ff;
  border-radius: 20px;
  border: 1px solid rgba(120, 147, 255, 0.28);
  box-shadow: 0 35px 80px rgba(6, 10, 32, 0.6);
  z-index: 60;
  display: flex;
  flex-direction: column;
  max-height: min(600px, calc(100vh - 4rem));
  overflow: hidden;
}

.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
}

.cookie-modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cookie-modal__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 8px;
}

.cookie-modal__close:hover,
.cookie-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-modal__body {
  padding: 0 1.5rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cookie-modal__body p {
  margin: 0;
  line-height: 1.6;
}

.cookie-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.cookie-item__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.cookie-item__description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cookie-item__control {
  margin-left: auto;
  flex-shrink: 0;
}

.cookie-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle__slider {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  transition: background 0.2s ease;
}

.cookie-toggle__slider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transform: translate(0, -50%);
  transition: transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: linear-gradient(135deg, #6e7dff 0%, #6f3eff 100%);
}

.cookie-toggle input:checked + .cookie-toggle__slider::after {
  transform: translate(18px, -50%);
}

.cookie-toggle__label {
  font-size: 0.85rem;
}

.cookie-modal__footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .cookie-banner {
    inset: auto 1rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-modal {
    width: min(520px, calc(100vw - 1.5rem));
  }

  .cookie-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cookie-button {
    width: 100%;
    justify-content: center;
  }
}

/* Legal page */
body.legal-body {
  background: #f4f7ff;
  color: #1b2140;
}

body.legal-body::before {
  display: none;
}

.legal-header {
  background: linear-gradient(135deg, #4f7dff, #6f3dff);
  color: #ffffff;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}

.legal-header__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
}

.legal-header__subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.legal-header__eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

.legal-container {
  max-width: 920px;
  margin: -2rem auto 4rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 40px 60px rgba(25, 35, 85, 0.12);
  padding: clamp(1.75rem, 3vw, 2.75rem);
}

.legal-section + .legal-section {
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: #2d3470;
}

.legal-section p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
  color: #48507d;
}

.legal-note {
  font-size: 0.9rem;
  color: #5a6394;
}

.legal-section ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: #48507d;
  line-height: 1.7;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.legal-definition-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.legal-definition-list dt {
  font-weight: 600;
  color: #2d3470;
}

.legal-card {
  border: 1px solid rgba(92, 108, 180, 0.2);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  background: rgba(247, 249, 255, 0.75);
}

.legal-card + .legal-card {
  margin-top: 1rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #48507d;
}

.legal-table thead {
  background: rgba(111, 61, 255, 0.1);
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.legal-table tbody tr:nth-child(even) {
  background: rgba(83, 102, 180, 0.08);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.legal-actions .cookie-button {
  padding: 0.9rem 1.75rem;
}

.legal-footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #6b729c;
  text-align: center;
}

.legal-footer a {
  color: #4f5fd1;
  font-weight: 600;
}

.site-footer {
  margin: 3rem 0 1.5rem;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #5a6394;
}

.site-footer a {
  color: #4f5fd1;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-container {
    margin: -2.5rem auto 2rem;
    border-radius: 18px;
  }

  .legal-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
