*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-0: #0b0f13;
  --bg-1: #0f141a;
  --bg-2: #141b22;
  --ink: #e6eef2;
  --ink-soft: #b7c4cc;
  --accent: #00b8a1;
  --accent-2: #ff8a3d;
  --accent-3: #1a5cff;
  --panel: rgba(14, 20, 26, 0.78);
  --panel-strong: rgba(18, 26, 34, 0.9);
  --stroke: rgba(207, 226, 235, 0.12);
  --shadow: 0 20px 55px rgba(3, 6, 9, 0.55);
  --shadow-strong: 0 28px 70px rgba(3, 6, 9, 0.65);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background-color: var(--bg-0);
  background-image:
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%),
    url(/img/background.png);
  background-blend-mode: normal, luminosity;
  background-size: cover, auto;
  background-position: center;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(transparent 23px, rgba(217, 230, 236, 0.05) 24px),
    linear-gradient(90deg, transparent 23px, rgba(217, 230, 236, 0.05) 24px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(13, 20, 26, 0.8), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.neural-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(0, 184, 161, 0.18) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(0, 184, 161, 0.18) 0 1px, transparent 1px 24px);
  background-size: 24px 24px;
  opacity: 0.22;
  filter: drop-shadow(0 0 4px rgba(0, 184, 161, 0.25));
  mix-blend-mode: screen;
  animation: grid-breathe 9s ease-in-out infinite;
}


img {
  max-width: 100%;
  display: block;
  padding: 0;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 184, 161, 0.35);
  padding-bottom: 2px;
}

a:hover {
  color: var(--accent-2);
  border-bottom-color: rgba(255, 138, 61, 0.6);
}

.transparency {
  opacity: 0.2;
  filter: grayscale(1);
}

.wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.session-pair {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(10, 15, 20, 0.7), rgba(9, 13, 18, 0.55));
  border: 1px solid rgba(0, 184, 161, 0.18);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  animation: panel-rise 0.9s ease 0.2s both;
}

.session-pair::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.session-pair::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 100% at 0% 0%, rgba(0, 184, 161, 0.08), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.logo-container {
  position: relative;
  display: grid;
  place-items: center;
}

.image {
  position: relative;
  z-index: 1;
  width: clamp(150px, 38vw, 260px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(10, 16, 20, 0.25)) drop-shadow(0 0 24px rgba(0, 184, 161, 0.3));
  animation: logo-float 6s ease-in-out infinite;
}

.info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.button-container {
  display: grid;
  gap: 0.5rem;
  width: min(74vw, 240px);
  padding: 0;
  margin: 0;
}

.terminal-modal {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: rgba(6, 9, 12, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.terminal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.terminal-window {
  width: min(92vw, 720px);
  max-height: 80vh;
  background: rgba(9, 13, 17, 0.98);
  border-radius: 16px;
  border: 1px solid rgba(0, 184, 161, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(120deg, rgba(16, 22, 28, 0.98), rgba(10, 14, 18, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 0.35rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.dot--red {
  background: #ff5f57;
}

.dot--yellow {
  background: #febc2e;
}

.dot--green {
  background: #28c840;
}

.terminal-title {
  margin: 0;
  flex: 1;
  text-align: center;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.7);
}

.terminal-close {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(224, 235, 238, 0.85);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.terminal-close:hover {
  background: rgba(0, 184, 161, 0.15);
  color: #eaf7f5;
}

.terminal-body {
  padding: 1.2rem 1.5rem 1.6rem;
  max-height: calc(80vh - 56px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.terminal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.terminal-output {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #d2f4f0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.terminal-line {
  display: flex;
}

.terminal-line--spacer {
  height: 0.5rem;
}

.terminal-line--block-start {
  margin-top: 0.5rem;
}

.terminal-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
}

.terminal-line--user .terminal-bubble {
  background: rgba(127, 224, 214, 0.08);
  border-color: rgba(127, 224, 214, 0.22);
}

.terminal-line--ai .terminal-bubble {
  background: rgba(255, 138, 61, 0.08);
  border-color: rgba(255, 138, 61, 0.22);
}

.terminal-line--system .terminal-bubble {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
}

.terminal-speaker--user {
  color: #7fe0d6;
  font-weight: 600;
}

.terminal-speaker--ai {
  color: var(--accent-2);
  font-weight: 600;
}

.terminal-highlight {
  color: var(--accent);
  font-weight: 600;
}

.terminal-caret {
  width: 12px;
  height: 2px;
  margin-top: 0.6rem;
  background: var(--accent);
  animation: caret-blink 1s steps(1, end) infinite;
}

.terminal-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.terminal-actions.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-actions.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.terminal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 16, 20, 0.8);
  color: #d2f4f0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.terminal-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.terminal-action.is-hidden {
  display: none;
}

.terminal-action:hover {
  color: #ecfbf8;
  border-color: rgba(0, 184, 161, 0.4);
}

.terminal-action--solid {
  background: var(--accent);
  border-color: rgba(0, 184, 161, 0.7);
  color: #f7fdfc;
  box-shadow: 0 0 16px rgba(0, 184, 161, 0.25);
}

.terminal-action--solid:hover {
  background: #18cdb5;
  border-color: rgba(0, 184, 161, 0.95);
  color: #ffffff;
}

.btn--main {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 500;
  font-style: normal;
  padding: 0.9em 1.5em;
  background: linear-gradient(140deg, rgba(19, 26, 33, 0.98), rgba(10, 14, 18, 0.95));
  color: #f2f7f9;
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  box-shadow: 0 14px 30px rgba(12, 18, 24, 0.25);
  position: relative;
  overflow: hidden;
}

.btn--main::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  border: 1px solid rgba(0, 184, 161, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn--main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 161, 0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn--main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(3, 6, 9, 0.65), 0 0 20px rgba(0, 184, 161, 0.35);
}

.btn--main:hover::before {
  opacity: 1;
}

.btn--main:hover::after {
  transform: translateX(120%);
}

.btn--main:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--main-v2 {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 500;
  background: var(--panel-strong);
  color: var(--ink);
  text-align: center;
  font-size: 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0.8em 1.4em;
}

.btn--main-v2:hover {
  background: #f2f7f9;
  color: #0c1216;
}

.btn-side-v1 {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 500;
  padding: 0.8em 1.4em;
  background: rgba(12, 18, 24, 0.85);
  color: #e8f1f4;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  position: relative;
}

.btn-side-v1:hover {
  transform: translateX(4px);
  border-left-color: var(--accent-2);
}

.btn-side-v1::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  border: 1px solid rgba(0, 184, 161, 0.18);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.btn-side-v1:hover::after {
  opacity: 1;
}

.close {
  background: rgba(240, 246, 248, 0.85);
  color: #0c1216;
  border-left-color: rgba(240, 246, 248, 0.45);
}

.more-info-page {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(0, 184, 161, 0.18), transparent 55%),
    radial-gradient(700px 500px at 80% 20%, rgba(26, 92, 255, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(5, 7, 10, 0.92), rgba(10, 14, 18, 0.9));
  color: #dfe7eb;
}

.more-info-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 11, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.more-info-page > * {
  position: relative;
  z-index: 1;
}

.page-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-title {
  width: min(90vw, 560px);
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: rgba(223, 231, 235, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-title::after {
  content: "";
  display: block;
  margin-top: 0.7rem;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(0, 184, 161, 0.6), rgba(0, 184, 161, 0.2), transparent);
}

.page-content {
  position: relative;
  width: min(90vw, 560px);
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18, 26, 34, 0.92), rgba(10, 14, 18, 0.92));
  border: 1px solid rgba(0, 184, 161, 0.18);
  box-shadow: 0 25px 70px rgba(2, 4, 6, 0.7), 0 0 30px rgba(0, 184, 161, 0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s;
}

.page-content::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 184, 161, 0.14);
  pointer-events: none;
}

.page-content::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 24px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 161, 0.8), transparent);
  box-shadow: 0 0 12px rgba(0, 184, 161, 0.6);
  pointer-events: none;
}

.page-content .btn-side-v1 {
  width: 100%;
}

.page-content .close {
  justify-self: end;
  width: auto;
}

.more-info-container {
  padding: 0 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  font-size: 0.9rem;
  width: 100%;
  color: rgba(224, 235, 238, 0.92);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}

.active {
  max-height: 220px;
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  opacity: 1;
}

.alternative-labels {
  background-color: rgba(240, 246, 248, 0.9);
  color: #0c1216;
  border-left-color: var(--accent-2);
}

.page-open .page-title,
.page-open .page-content {
  opacity: 1;
  transform: translateY(0);
}

.page-content > .btn-side-v1 {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-open .page-content > .btn-side-v1 {
  opacity: 1;
  transform: translateY(0);
}

.page-content > .btn-side-v1:nth-child(1) { transition-delay: 0.08s; }
.page-content > .btn-side-v1:nth-child(3) { transition-delay: 0.14s; }
.page-content > .btn-side-v1:nth-child(5) { transition-delay: 0.2s; }
.page-content > .btn-side-v1:nth-child(7) { transition-delay: 0.26s; }
.page-content > .btn-side-v1:nth-child(9) { transition-delay: 0.32s; }

.button-container .btn--main:nth-child(1) {
  animation: button-rise 0.6s ease 0.3s both;
}

.button-container .btn--main:nth-child(2) {
  animation: button-rise 0.6s ease 0.4s both;
}

.button-container .btn--main:nth-child(3) {
  animation: button-rise 0.6s ease 0.5s both;
}

.button-container .btn--main:nth-child(4) {
  animation: button-rise 0.6s ease 0.6s both;
}


@keyframes grid-breathe {
  0%,
  100% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 700px) {
  .neural-grid {
    opacity: 0.22;
  }

  .neural-grid::before {
    filter: drop-shadow(0 0 6px rgba(0, 184, 161, 0.45));
  }
}

@media (min-width: 700px) {
  .wrapper {
    padding: 3rem 2rem;
  }

  .session-pair {
    flex-direction: row;
    gap: 1.6rem;
    padding: 1.4rem 1.7rem;
  }
}

@media (min-width: 1000px) {
  .wrapper {
    padding: 3.5rem 2.5rem;
  }
}

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