:root {
  --ink: #10272c;
  --ink-light: #174349;
  --teal: #0f766e;
  --mint: #2dd4bf;
  --page: #edf4f1;
  --muted: #65777a;
  --line: #d9e2de;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.solution-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.solution-brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.solution-brand small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-symbol {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--ink);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(25rem, 38rem) 1fr;
}

.login-panel {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: clamp(2rem, 6vw, 6rem);
  background: var(--white);
  box-shadow: 1rem 0 4rem rgba(10, 42, 45, 0.09);
}

.login-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  max-width: 28rem;
}

.login-content h1 {
  margin: 0.8rem 0 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 5vw, 5.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.login-description {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form label,
.setup-card label,
.setup-card legend {
  color: #41575b;
  font-size: 0.76rem;
  font-weight: 800;
}

.login-form input,
.setup-card input {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  outline: none;
  background: #fafcfb;
  color: var(--ink);
}

.login-form input:focus,
.setup-card input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.11);
}

.login-error {
  margin: -0.15rem 0 0;
  color: #b43d3d;
  font-size: 0.78rem;
}

.main-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 1rem 1.2rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 0.8rem 2rem rgba(16, 39, 44, 0.2);
}

.main-button:hover {
  background: var(--ink-light);
}

.main-button span {
  font-size: 1.15rem;
}

.security-note {
  margin: 1.8rem 0 0;
  color: #8a9897;
  font-size: 0.7rem;
}

.login-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 7vw;
  background:
    radial-gradient(
      circle at 58% 42%,
      #24625c 0%,
      #153b3b 28%,
      #0b2529 65%,
      #06191d 100%
    );
  color: var(--white);
}

.login-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    );
  background-size: 4rem 4rem;
  content: "";
}

.login-visual > p {
  position: relative;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4vw, 5rem);
  line-height: 1.04;
}

.login-visual em {
  color: #76e7d5;
}

.assistant-orbit {
  position: absolute;
  top: 42%;
  left: 54%;
  width: 22rem;
  height: 22rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.08);
  box-shadow:
    0 0 0 3rem rgba(45, 212, 191, 0.04),
    0 0 0 7rem rgba(45, 212, 191, 0.025);
}

.assistant-bubble {
  position: absolute;
  inset: 3.5rem;
  padding: 3.4rem 2rem;
  transform: rotate(-6deg);
  border-radius: 2.4rem 2.4rem 2.4rem 0.5rem;
  background: linear-gradient(145deg, #ffffff, #d9f0ea);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.48);
}

.assistant-bubble span {
  display: block;
  height: 0.7rem;
  margin: 0.8rem 0;
  border-radius: 5rem;
  background: #1b5f5a;
}

.assistant-bubble span:nth-child(2) {
  width: 74%;
  background: #5ca39a;
}

.assistant-bubble span:nth-child(3) {
  width: 48%;
  background: #90c4bc;
}

.setup-page {
  min-height: 100vh;
  overflow: hidden;
  padding: 0 6vw 4rem;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(45, 212, 191, 0.18),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #edf5f2 0%,
      #f7f5ef 48%,
      #e8f1ef 100%
    );
}

.top-header {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 39, 44, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.header-actions a {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 5rem;
  color: var(--ink);
  text-decoration: none;
}

.setup-layout {
  display: grid;
  max-width: 87rem;
  min-height: calc(100vh - 10rem);
  margin: auto;
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 31rem);
  align-items: center;
  gap: 8vw;
}

.intro-panel {
  max-width: 43rem;
  padding: 4rem 0;
}

.assistant-icon {
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  margin-bottom: 2.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  font-size: 1.45rem;
  box-shadow: 0 0 0 0.7rem rgba(15, 118, 110, 0.08);
}

.intro-panel h1 {
  margin: 1.1rem 0 1.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6vw, 6.8rem);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.intro-panel h1 em {
  color: var(--teal);
}

.intro-copy {
  max-width: 35rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.process {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3.2rem;
  color: #66777a;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.process span {
  white-space: nowrap;
}

.process b {
  margin-right: 0.3rem;
  color: var(--teal);
}

.process i {
  min-width: 1rem;
  height: 1px;
  flex: 1;
  background: #cbd7d3;
}

.setup-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2rem 6rem rgba(30, 66, 66, 0.15);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.card-heading > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: #dff6ef;
  color: var(--teal);
  font-weight: 800;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.card-heading p {
  margin: 0.25rem 0 0;
  color: #738083;
  font-size: 0.83rem;
}

.setup-card form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.setup-card fieldset {
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
}

.avatar-list {
  display: grid;
  margin-top: 0.7rem;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
}

.avatar-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--white);
  color: #627276;
}

.avatar-option.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.1);
}

.avatar-option b {
  position: absolute;
  top: 0.2rem;
  right: 0.3rem;
  display: none;
  color: var(--teal);
  font-size: 0.7rem;
}

.avatar-option.selected b {
  display: block;
}

.avatar-option small {
  font-size: 0.67rem;
}

.avatar {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.72rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sage {
  background: linear-gradient(145deg, #d9e8e4, #6d9b91);
}

.nova {
  background: linear-gradient(145deg, #efe0ff, #9469bd);
}

.leo {
  background: linear-gradient(145deg, #dbe9ff, #527dbd);
}

.sol {
  background: linear-gradient(145deg, #fff0cf, #d39142);
}

.upload {
  background: #edf2f1;
  color: #657779;
  font-size: 1.1rem;
}

.hidden-input {
  display: none !important;
}

.file-note {
  margin: 0.55rem 0 0;
  color: #8a9697;
  font-size: 0.67rem;
}

.loading-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(
      circle at 50% 45%,
      #dff7f0,
      transparent 35%
    ),
    #eef3f1;
}

.loading-content {
  width: min(34rem, 100%);
  text-align: center;
}

.scanner {
  position: relative;
  display: grid;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 2rem;
  place-items: center;
  overflow: hidden;
  border-radius: 1.7rem;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 1.5rem 4rem rgba(16, 39, 44, 0.2);
}

.scanner span {
  font-size: 2rem;
}

.scanner i {
  position: absolute;
  right: 10%;
  left: 10%;
  height: 2px;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: scan 1.2s infinite alternate ease-in-out;
}

.loading-content h1 {
  margin: 0.8rem 0 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
}

.loading-content h1 strong {
  color: var(--teal);
  font-weight: 500;
}

.progress {
  height: 0.36rem;
  overflow: hidden;
  border-radius: 5rem;
  background: #d7e0dc;
}

.progress span {
  display: block;
  width: 76%;
  height: 100%;
  background: var(--teal);
  animation: progress 1.7s ease-out;
}

.loading-items {
  display: flex;
  justify-content: center;
  gap: 1.3rem;
  margin-top: 1.2rem;
  color: #627477;
  font-size: 0.75rem;
}

.demo-page {
  position: relative;
  min-height: 43rem;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

.website-background {
  position: absolute;
  inset: -1.5rem;
}

.website-background::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 28, 33, 0.22),
      rgba(12, 35, 39, 0.03) 48%,
      rgba(6, 20, 24, 0.16)
    );
  backdrop-filter: blur(2.5px);
  content: "";
}

.website-background img {
  width: 100%;
  height: 100%;
  transform: scale(1.025);
  object-fit: cover;
  filter:
    saturate(0.88)
    brightness(0.96)
    contrast(0.98);
}

.website-background.fallback {
  background:
    radial-gradient(
      circle at 32% 34%,
      #cce6de,
      transparent 22%
    ),
    linear-gradient(125deg, #f0f2ed, #a8c8c1);
}

.website-background.fallback::before {
  position: absolute;
  top: 17%;
  left: 9%;
  width: 55%;
  max-width: 50rem;
  color: #34595c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1;
  content: "Web siteniz";
}

.demo-header {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: linear-gradient(
    rgba(16, 39, 44, 0.84),
    transparent
  );
}

.light-brand {
  color: var(--white);
}

.light-brand small {
  color: #aec6c2;
}

.light-brand .brand-symbol {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.demo-header > button {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5rem;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.website-label {
  position: absolute;
  z-index: 2;
  bottom: 5vh;
  left: 3vw;
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-shadow: 0 1px 10px #000000;
}

.website-label small {
  color: #b8cfcb;
  font-size: 0.67rem;
  letter-spacing: 0.15em;
}

.website-label strong {
  margin-top: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.chat-window {
  position: absolute;
  z-index: 4;
  right: 3vw;
  bottom: 3vh;
  display: grid;
  width: min(27rem, calc(100vw - 2rem));
  height: min(40rem, calc(100vh - 8rem));
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.6rem;
  background: #f9fbfa;
  box-shadow: 0 2rem 6rem rgba(0, 20, 25, 0.82);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: var(--white);
}

.chat-avatar {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #d9e8e4, #6d9b91);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-header h2 {
  margin: 0;
  font-size: 0.93rem;
}

.chat-header p {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.23rem 0 0;
  color: #a9c7c3;
  font-size: 0.68rem;
}

.chat-header p i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #47d7a3;
}

.preview-label {
  margin-left: auto;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5rem;
  color: #c8e5df;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1.15rem;
  background: linear-gradient(#f8fbfa, #f1f5f3);
}

.message {
  max-width: 88%;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.message.assistant {
  align-self: flex-start;
  border: 1px solid #e4e9e7;
  border-bottom-left-radius: 0.3rem;
  background: var(--white);
  color: #43575a;
}

.message.user {
  align-self: flex-end;
  border-bottom-right-radius: 0.3rem;
  background: var(--teal);
  color: var(--white);
}

.typing-message {
  color: #82918f;
  letter-spacing: 0.14em;
}

.conversion-card {
  padding: 1.15rem;
  border-radius: 1.2rem;
  background: var(--ink);
  color: var(--white);
}

.conversion-card small {
  color: #82ded2;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversion-card h3 {
  margin: 0.75rem 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.conversion-card p {
  margin: 0 0 0.9rem;
  color: #bed0cd;
  font-size: 0.72rem;
  line-height: 1.5;
}

.conversion-card a {
  display: block;
  padding: 0.75rem;
  border-radius: 0.7rem;
  background: var(--mint);
  color: #073c3b;
  font-size: 0.73rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.chat-footer {
  padding: 0.85rem;
  border-top: 1px solid #e2e8e5;
  background: var(--white);
}

.chat-footer form {
  display: flex;
  gap: 0.5rem;
}

.chat-footer input {
  min-width: 0;
  flex: 1;
  padding: 0.75rem 0.8rem;
  border: 1px solid #dce3e0;
  border-radius: 0.8rem;
  outline: none;
  background: #f7f9f8;
  font-size: 0.8rem;
}

.chat-footer button {
  display: grid;
  width: 2.65rem;
  place-items: center;
  border: 0;
  border-radius: 0.75rem;
  background: var(--teal);
  color: var(--white);
}

.chat-footer button:disabled,
.chat-footer input:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.chat-footer > p {
  margin: 0.5rem 0 0;
  color: #91a09f;
  font-size: 0.62rem;
  text-align: center;
}

@keyframes scan {
  from {
    top: 20%;
  }

  to {
    top: 80%;
  }
}

@keyframes progress {
  from {
    width: 0;
  }

  to {
    width: 76%;
  }
}

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

  .login-panel {
    padding: 2rem;
  }

  .login-visual {
    display: none;
  }

  .setup-page {
    padding: 0 1.2rem 2rem;
  }

  .setup-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .intro-panel {
    padding: 3rem 0 1.5rem;
  }

  .intro-panel h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .process,
  .header-actions span {
    display: none;
  }

  .setup-card {
    padding: 1.3rem;
  }

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

  .loading-items {
    flex-direction: column;
  }

  .demo-header {
    padding: 1rem;
  }

  .chat-window {
    right: 1rem;
    bottom: 1rem;
    height: min(38rem, calc(100vh - 6rem));
  }

  .website-label {
    display: none;
  }
}

/* Closed assistant launcher */

.assistant-launcher {
  position: absolute;
  z-index: 6;
  right: 3vw;
  bottom: 3vh;
  width: 5.7rem;
  height: 5.7rem;
  padding: 0;
  overflow: visible;
  border: 0.3rem solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    0 1.4rem 4rem rgba(0, 20, 25, 0.65),
    0 0 0 0 rgba(45, 212, 191, 0.42);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  animation: launcherPulse 2.2s infinite;
}

.assistant-launcher:hover {
  transform: translateY(-0.3rem) scale(1.04);
}

.assistant-launcher img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.assistant-launcher i {
  position: absolute;
  right: 0.15rem;
  bottom: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 0.18rem solid var(--white);
  border-radius: 50%;
  background: #38d996;
}

.assistant-guide {
  position: absolute;
  z-index: 6;
  right: calc(3vw + 7.1rem);
  bottom: calc(3vh + 1rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 1rem 3rem rgba(0, 20, 25, 0.42);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.assistant-guide::after {
  position: absolute;
  top: 50%;
  right: -0.55rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.95);
  content: "";
}

.assistant-guide b {
  position: relative;
  z-index: 1;
  color: var(--teal);
  font-size: 1.3rem;
  animation: guideArrow 0.8s infinite alternate ease-in-out;
}

.chat-window {
  transform-origin: bottom right;
  transition:
    opacity 0.25s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.chat-window.assistant-closed {
  visibility: hidden;
  transform: translateY(2rem) scale(0.82);
  opacity: 0;
  pointer-events: none;
}

.launcher-hidden,
.guide-hidden {
  visibility: hidden;
  transform: translateY(1rem) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

.close-assistant {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  margin-left: 0.15rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
}

.close-assistant:hover {
  background: rgba(255, 255, 255, 0.2);
}

.avatar-option .avatar {
  background: #e8efec;
}

.avatar-option .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes launcherPulse {
  0%,
  100% {
    box-shadow:
      0 1.4rem 4rem rgba(0, 20, 25, 0.65),
      0 0 0 0 rgba(45, 212, 191, 0.42);
  }

  50% {
    box-shadow:
      0 1.4rem 4rem rgba(0, 20, 25, 0.65),
      0 0 0 0.9rem rgba(45, 212, 191, 0);
  }
}

@keyframes guideArrow {
  from {
    transform: translateX(-0.15rem);
  }

  to {
    transform: translateX(0.2rem);
  }
}

@media (max-width: 900px) {
  .assistant-launcher {
    right: 1rem;
    bottom: 1rem;
    width: 5rem;
    height: 5rem;
  }

  .assistant-guide {
    right: 7rem;
    bottom: 1.75rem;
    max-width: calc(100vw - 8rem);
  }

  .assistant-guide span {
    white-space: nowrap;
  }
}

/* ===== DEMO HEADER AND VIEWPORT RESPONSIVENESS ===== */

.demo-page {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.light-brand small {
  color: #e0fffa;
  font-weight: 700;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(45, 212, 191, 0.85),
    0 0 20px rgba(255, 255, 255, 0.45);
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.demo-actions > button,
.demo-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.demo-actions > button:hover,
.demo-actions > a:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.close-demo {
  min-width: 5.4rem;
}

.assistant-launcher,
.assistant-guide,
.chat-window {
  position: fixed;
}

@media (max-height: 760px) {
  .demo-header {
    padding: 0.7rem 1rem;
  }

  .light-brand .brand-symbol {
    width: 3.35rem;
    height: 3.35rem;
  }

  .light-brand strong {
    font-size: 1.05rem;
  }

  .light-brand small {
    font-size: 0.62rem;
  }

  .demo-actions > button,
  .demo-actions > a {
    min-height: 2.35rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.84rem;
  }

  .assistant-launcher {
    right: 1rem;
    bottom: 1rem;
    width: 4.8rem;
    height: 4.8rem;
  }

  .assistant-guide {
    right: 6.7rem;
    bottom: 1.45rem;
  }

  .chat-window {
    top: 4.8rem;
    right: 0.75rem;
    bottom: 0.6rem;
    width: min(31rem, calc(100vw - 1.5rem));
    height: auto;
    max-height: calc(100dvh - 5.4rem);
  }

  .chat-header {
    min-height: 4.6rem;
  }

  .messages {
    min-height: 0;
  }

  .website-label {
    bottom: 1rem;
  }
}

@media (max-height: 560px) {
  .demo-header {
    padding: 0.45rem 0.7rem;
  }

  .light-brand .brand-symbol {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 0.8rem;
  }

  .light-brand strong {
    font-size: 0.92rem;
  }

  .light-brand small {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .demo-actions {
    gap: 0.35rem;
  }

  .demo-actions > button,
  .demo-actions > a {
    min-height: 2rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .assistant-launcher {
    right: 0.7rem;
    bottom: 0.7rem;
    width: 4.2rem;
    height: 4.2rem;
  }

  .assistant-guide {
    right: 5.6rem;
    bottom: 1rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }

  .chat-window {
    top: 3.8rem;
    right: 0.5rem;
    bottom: 0.4rem;
    width: min(31rem, calc(100vw - 1rem));
    max-height: calc(100dvh - 4.2rem);
  }

  .website-label {
    display: none;
  }
}

@media (max-width: 620px) {
  .demo-header {
    gap: 0.5rem;
  }

  .light-brand {
    min-width: 0;
  }

  .light-brand strong {
    display: block;
    max-width: 10rem;
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .demo-actions > button,
  .demo-actions > a {
    padding: 0.48rem 0.62rem;
    font-size: 0.74remrem;
  }

  .close-demo {
    min-width: auto;
  }

  .assistant-launcher {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .assistant-guide {
    right: 6.2rem;
    bottom: 1.25rem;
    max-width: calc(100vw - 8rem);
  }

  .chat-window {
    top: 4.6rem;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 5.1rem);
  }
}

@media (max-width: 430px) {
  .light-brand strong {
    max-width: 7.8rem;
  }

  .demo-actions {
    gap: 0.25rem;
  }

  .demo-actions > button,
  .demo-actions > a {
    padding: 0.42rem 0.5rem;
    font-size: 0.68rem;
  }
}

/* ===== PUBLIC LANDING WITH FOUR ASSISTANTS ===== */

.public-demo-button {
  margin-top: 0.25rem;
  color: #ffffff;
  text-decoration: none;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.public-demo-button:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.landing-avatar-gallery {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 50%;
  display: grid;
  width: min(25rem, 66%);
  aspect-ratio: 1;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2.2rem;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.97),
      rgba(211, 249, 241, 0.88)
    );
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.42),
    0 0 4rem rgba(45, 212, 191, 0.18);
  transform: translateX(-50%) rotate(-3deg);
}

.landing-avatar-gallery::before {
  position: absolute;
  inset: -1.2rem;
  z-index: -1;
  border: 1px solid rgba(111, 235, 218, 0.18);
  border-radius: 2.8rem;
  content: "";
}

.landing-avatar-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0.22rem solid rgba(255, 255, 255, 0.95);
  border-radius: 1.4rem;
  object-fit: cover;
  box-shadow:
    0 0.8rem 1.8rem rgba(0, 43, 46, 0.25);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.landing-avatar-gallery img:nth-child(1) {
  transform: rotate(-2deg);
}

.landing-avatar-gallery img:nth-child(2) {
  transform: rotate(2deg);
}

.landing-avatar-gallery img:nth-child(3) {
  transform: rotate(1.5deg);
}

.landing-avatar-gallery img:nth-child(4) {
  transform: rotate(-1.5deg);
}

.landing-avatar-gallery img:hover {
  z-index: 3;
  box-shadow:
    0 1.2rem 2.4rem rgba(0, 43, 46, 0.4);
  transform: scale(1.07);
}

@media (max-height: 760px) {
  .login-panel {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .login-content h1 {
    margin: 0.55rem 0 0.9rem;
    font-size: clamp(2.7rem, 8vh, 4.3rem);
  }

  .login-description {
    margin-bottom: 1.1rem;
  }

  .security-note {
    margin-top: 1rem;
  }

  .landing-avatar-gallery {
    top: 7%;
    width: min(19rem, 54vh);
    padding: 0.8rem;
    gap: 0.6rem;
    border-radius: 1.6rem;
  }

  .login-visual > p {
    font-size: clamp(2rem, 6vh, 3.4rem);
  }
}

@media (max-height: 560px) {
  .login-content h1 {
    font-size: 2.6rem;
  }

  .login-description {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .main-button {
    padding: 0.75rem 1rem;
  }

  .landing-avatar-gallery {
    top: 5%;
    width: min(15rem, 46vh);
    padding: 0.6rem;
    gap: 0.45rem;
  }

  .login-visual {
    padding-bottom: 1.5rem;
  }

  .login-visual > p {
    font-size: clamp(1.65rem, 5vh, 2.4rem);
  }
}

@media (max-width: 900px) {
  .login-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
  }

  .login-panel {
    width: 100%;
    min-height: 100vh;
  }

  .login-visual {
    display: none;
  }
}

/* ===== COMPACT SETUP LAYOUT ===== */

.top-header {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.setup-layout {
  min-height: 0;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.intro-panel {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.intro-panel .assistant-icon {
  margin-bottom: 1.35rem;
}

.intro-panel h1 {
  margin-top: 0.75rem;
  margin-bottom: 1.15rem;
}

.intro-copy {
  margin-top: 0;
  margin-bottom: 0;
}

.process {
  margin-top: 1.6rem;
}

.setup-card {
  margin-top: 0;
}

@media (max-height: 800px) and (min-width: 901px) {
  .top-header {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .setup-layout {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .intro-panel {
    padding-top: 0.5rem;
  }

  .intro-panel .assistant-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1rem;
  }

  .intro-panel h1 {
    margin-top: 0.55rem;
    margin-bottom: 0.85rem;
    font-size: clamp(3rem, 7.8vh, 5rem);
  }

  .intro-copy {
    font-size: 1rem;
    line-height: 1.5;
  }

  .process {
    margin-top: 1.15rem;
  }
}

@media (max-width: 900px) {
  .setup-layout {
    padding-top: 0.75rem;
  }

  .intro-panel {
    padding-top: 1.2rem;
    padding-bottom: 1rem;
  }

  .process {
    margin-top: 1.25rem;
  }
}

/* ===== THIN HEADER AND GUIDE CLEARANCE ===== */

.top-header {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.top-header .brand-symbol {
  width: 2.65rem;
  height: 2.65rem;
}

.setup-layout {
  padding-top: 0.55rem;
  padding-bottom: 1.5rem;
}

.intro-panel {
  padding-top: 0.35rem;
}

.intro-panel .assistant-icon {
  margin-bottom: 0.9rem;
}

.intro-panel h1 {
  margin-top: 0.45rem;
  margin-bottom: 0.85rem;
}

.process {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
  margin-bottom: 1.4rem;
}

.setup-card {
  position: relative;
  z-index: 1;
}

@media (max-height: 800px) and (min-width: 901px) {
  .top-header {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .top-header .brand-symbol {
    width: 2.45rem;
    height: 2.45rem;
  }

  .setup-layout {
    padding-top: 0.35rem;
  }

  .intro-panel {
    padding-top: 0.2rem;
  }

  .process {
    margin-top: 0.95rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 900px) {
  .top-header {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .setup-layout {
    padding-top: 0.4rem;
  }

  .process {
    margin-bottom: 1.5rem;
  }

  .setup-card {
    margin-top: 0.5rem;
  }
}

/* ===== CONTAIN GUIDE STEPS IN LEFT COLUMN ===== */

.intro-panel {
  min-width: 0;
}

.process {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.75rem;
  align-items: center;
  overflow: visible;
}

.process > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.process > span::after {
  display: none;
}

.process > span b {
  flex: 0 0 auto;
}

.setup-card {
  margin-left: 1.25rem;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .process {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
  }

  .process > span {
    font-size: 0.7rem;
  }
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.5rem;
  }

  .process > span {
    font-size: 0.62rem;
  }

  .setup-card {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .process {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .process > span {
    font-size: 0.7rem;
  }
}

/* ===== VERTICAL GUIDE STEPS WITHOUT LINES ===== */

.process {
  display: flex;
  width: max-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.2rem;
  margin-bottom: 1.25rem;
}

.process > span {
  display: flex;
  width: auto;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.process > span b {
  display: inline-flex;
  min-width: 1.45rem;
  flex: 0 0 1.45rem;
  justify-content: flex-start;
}

.process::before,
.process::after,
.process > span::before,
.process > span::after {
  display: none !important;
  content: none !important;
}

.process > i,
.process > hr,
.process .line,
.process .separator {
  display: none !important;
}

@media (max-width: 900px) {
  .process {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .process > span {
    font-size: 0.7rem;
  }
}


/* Aegeantek shared brand assets */
.aegeantek-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.landing-logo {
  height: 5.4rem;
  max-width: 19.5rem;
}

.header-logo {
  height: 4.2rem;
  max-width: 15rem;
  flex: 0 0 auto;
}

.demo-logo {
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .landing-logo {
    height: 4.5rem;
    max-width: 16.5rem;
  }

  .header-logo {
    height: 3.5rem;
    max-width: 12rem;
  }
}
