/* Intro — Tenetic Intelligence platform mock */

.intro-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(149,185,255,.55), transparent 60%),
    radial-gradient(60% 50% at 10% 90%, rgba(220,232,255,.7), transparent 60%),
    radial-gradient(50% 40% at 100% 100%, rgba(90,204,155,.18), transparent 60%),
    linear-gradient(160deg, #EAF1FB 0%, #F2F6FB 50%, #FFFFFF 100%);
  color: #0A205C;
  display: grid;
  grid-template-columns: 1fr;
  font-family: var(--font);
  overflow: hidden;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
}
.intro-wrap.exit {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(8px);
  pointer-events: none;
}

/* Intro brand mark — top-left */
.intro-topbar {
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 4;
}
.intro-brand {
  display: flex; align-items: center; gap: 10px;
}
.intro-brand .wm {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0A205C;
}
.intro-brand .wm .tm {
  font-size: 9px;
  vertical-align: super;
  color: #5A78A6;
  margin-left: 2px;
  letter-spacing: 0;
}
.intro-brand .wave {
  width: 26px; height: 20px;
  position: relative;
}
.intro-brand .wave i {
  position: absolute; left: 0;
  height: 2px;
  background: #0A205C;
  border-radius: 2px;
}
.intro-brand .wave i:nth-child(1) { top: 0; width: 26px; }
.intro-brand .wave i:nth-child(2) { top: 6px; width: 20px; }
.intro-brand .wave i:nth-child(3) { top: 12px; width: 14px; }
.intro-brand .wave i:nth-child(4) { top: 18px; width: 8px; }

/* Main */
.intro-main {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  overflow: hidden;
}
.intro-main::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
}
.intro-main-inner {
  position: relative;
  align-self: start;
  justify-self: center;
  width: 100%;
  max-width: 880px;
  padding: 140px 36px 40px;
}
.intro-skip {
  position: absolute; bottom: 28px; right: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid #BFD8FD;
  background: #ffffff;
  color: #143AA2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 22px rgba(38,103,216,.08);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.intro-skip:hover {
  background: #DCE8FF;
  border-color: #2667D8;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(38,103,216,.16);
}
.intro-skip .arrow { transition: transform .2s var(--ease); }
.intro-skip:hover .arrow { transform: translate(3px, 0); }

.intro-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: #ffffff;
  border: 1px solid #D8E5F4;
  font-size: 12.5px;
  font-weight: 500;
  color: #5A78A6;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(38,103,216,.05);
}
.intro-trust-row {
  display: flex;
  justify-content: center;
}
.intro-trust .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #5ACC9B;
  box-shadow: 0 0 0 4px rgba(90,204,155,.2);
  animation: pulse 2s var(--ease) infinite;
}

.intro-greet {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #001A63 0%, #2667D8 49%, #2072E5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin: 0;
  text-wrap: balance;
}
.intro-sub {
  font-size: 17px;
  color: #3D3D3D;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 36px;
}

.intro-input-wrap {
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 24px 26px 20px;
  min-height: 220px;
  position: relative;
  box-shadow: 0 16px 50px rgba(38,103,216,.06);
  transition: box-shadow .25s var(--ease);
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #001A63 0%, #2667D8 49%, #2072E5 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.intro-input-wrap:focus-within {
  box-shadow: 0 16px 50px rgba(38,103,216,.16), 0 0 0 4px rgba(38,103,216,.10);
}
.intro-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  color: #0A205C;
  line-height: 1.5;
  resize: none;
  caret-color: #2667D8;
  letter-spacing: -0.005em;
}
.intro-input::placeholder { color: #8FA3C2; }

.intro-input-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #EEF2F8;
}
.intro-attach {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #5A78A6;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.intro-attach:hover { background: #EEF4FB; }
.intro-send {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: none;
  background: linear-gradient(135deg, #001A63 0%, #2667D8 49%, #2072E5 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(38,103,216,.32);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
}
.intro-send:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(38,103,216,.4); }
.intro-send:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.intro-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.intro-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: #DEEAF7;
  border: 1px solid #DEEAF7;
  color: #111111;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.intro-pill:hover { background: #C8DBF1; border-color: #C8DBF1; transform: translateY(-1px); }

/* Typing cursor in placeholder/value */
.typing-caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: #2667D8;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

/* Processing stage */
.intro-prompt-card {
  background: #ffffff;
  border: 1px solid #D8E5F4;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  color: #0A205C;
  margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: 0 4px 18px rgba(38,103,216,.05);
}
.intro-prompt-card .who {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2667D8, #5ACC9B);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}

.intro-process {
  background: #ffffff;
  border: 1px solid #D8E5F4;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 16px 50px rgba(38,103,216,.08);
}
.intro-process-h {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.intro-process-h .pulse {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #2667D8;
  box-shadow: 0 0 0 0 rgba(38,103,216,.5);
  animation: pulse 1.8s var(--ease) infinite;
}
.intro-process-h .title {
  font-size: 15px;
  font-weight: 600;
  color: #0A205C;
}
.intro-process-h .sub {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #5A78A6;
  letter-spacing: 0.04em;
}

.intro-steps {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}
.intro-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #F6F9FC;
  font-size: 14px;
  color: #5A78A6;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.intro-step.active {
  background: #DCE8FF;
  color: #143AA2;
  font-weight: 500;
}
.intro-step.done {
  background: #ffffff;
  color: #1F7A4D;
  font-weight: 500;
}
.intro-step .check {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: #EEF2F8;
  display: grid; place-items: center;
  color: #8FA3C2;
  flex-shrink: 0;
  font-size: 12px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.intro-step.active .check {
  background: #2667D8;
  color: #fff;
  animation: spin 1s linear infinite;
}
.intro-step.active .check::before {
  content: ""; width: 12px; height: 12px; border-radius: 999px;
  border: 2px solid #fff; border-top-color: transparent;
}
.intro-step.done .check {
  background: #5ACC9B;
  color: #fff;
}
@keyframes spin { to { transform: rotate(360deg); } }

.intro-result {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.intro-result.in { opacity: 1; transform: none; }
@media (max-width: 720px) { .intro-result { grid-template-columns: 1fr; } }

.intro-card {
  background: #F6F9FC;
  border: 1px solid #E6ECF3;
  border-radius: 12px;
  padding: 14px 16px;
}
.intro-card .h {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #5A78A6; font-weight: 600; margin-bottom: 8px;
}
.intro-card .v {
  font-size: 24px; font-weight: 600; color: #0A205C;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.intro-card .v .unit { font-size: 12px; color: #5A78A6; font-weight: 500; margin-left: 4px; }
.intro-card .sparkmini { display: flex; gap: 3px; align-items: end; height: 28px; margin-top: 10px; }
.intro-card .sparkmini i {
  display: block; width: 4px; background: linear-gradient(to top, #2667D8, #5ACC9B); border-radius: 2px;
}

.intro-map {
  position: relative;
  background: #F6F9FC;
  border: 1px solid #E6ECF3;
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
  min-height: 140px;
}
.intro-map svg { width: 100%; height: 100%; }
.intro-map .label {
  position: absolute; top: 12px; left: 16px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #5A78A6; font-weight: 600;
}

.intro-continue {
  text-align: center;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease) .3s, transform .6s var(--ease) .3s;
}
.intro-continue.in { opacity: 1; transform: none; }
.intro-continue .btn {
  background: linear-gradient(135deg, #001A63 0%, #2667D8 49%, #2072E5 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 30px rgba(38,103,216,.36);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.intro-continue .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(38,103,216,.44);
}
.intro-continue .hint {
  margin-top: 10px;
  font-size: 13px;
  color: #5A78A6;
}
