@font-face {
  font-family: "Avenir Next";
  src: url("../fonts/77caabd3-1877-4634-85c8-8e398a093b99.woff2") format("woff2"),
    url("../fonts/e388ac99-8c6a-4451-8690-1d15b4d45adb.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next";
  src: url("../fonts/014f2daa-c310-4a36-b9fd-79a8e0c48d44.woff2") format("woff2"),
    url("../fonts/12b00842-ec20-4c7f-aa72-802fb00f6cc4.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next";
  src: url("../fonts/b0b84e4d-2164-45c7-a674-1662f19f3ba6.woff2") format("woff2"),
    url("../fonts/e91d1bbf-3fea-45e2-b003-a22b12ce6e5f.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next";
  src: url("../fonts/e78b17bb-11fb-4860-8d66-4ee0d0c1e117.woff2") format("woff2"),
    url("../fonts/d4ffabb3-dd7c-472a-bdfb-6700383c6354.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #1f2a37;
  --muted: #000000;
  --soft: #7d8da1;
  --primary: #2ea8df;
  --primary-dark: #1a86c2;
  --surface-1: #ffffff;
  --surface-2: #f6f8fb;
  --line: rgba(31, 42, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  background: linear-gradient(180deg, rgb(245 131 32 / 40%) 0%, rgb(60 157 72 / 40%) 100%), radial-gradient(circle at 8% 10%, rgba(46, 168, 223, 0.08), transparent 26%), radial-gradient(circle at 88% 16%, rgba(16, 185, 129, 0.08), transparent 24%), url(../assets/bg4.png) center 60% / cover no-repeat fixed;
  color: var(--text);
}

body {
  min-height: 100vh;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 34px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.75;
  pointer-events: none;
}

.ambient-1 {
  width: 260px;
  height: 260px;
  top: -40px;
  left: -56px;
  background: rgba(46, 168, 223, 0.12);
}

.ambient-2 {
  width: 300px;
  height: 300px;
  right: -72px;
  top: 90px;
  background: rgba(16, 185, 129, 0.1);
}

.ambient-3 {
  width: 220px;
  height: 220px;
  bottom: 8px;
  left: 18%;
  background: rgba(59, 130, 246, 0.08);
}

.app-card {
  position: relative;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  background: #ffffffd6;
  border: 0px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 55px rgb(15 23 42 / 20%);
  padding: 26px;
  backdrop-filter: blur(14px);
  animation: slide-up 500ms ease both;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 25px;
}

.floating-actions {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  z-index: 60;
}

.brand {
  display: flex;
  gap: 18px;
  align-items: center;
  animation: fade-in 600ms ease both;
}

.brand-logo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 1px solid rgba(31, 42, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 -8px 16px rgba(15, 23, 42, 0.06);
}

.brand-logo {
  width: 100px;
  display: block;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #607188;
  margin-bottom: 8px;
}

.brand-copy h1 {
  margin: 0 0 8px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-size: 30px;
  line-height: 1.04;
}

.brand-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.55;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text);
       background: transparent;
    border: 1px solid #000;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.action-btn:hover {
  transform: translateY(-1px);
  background: #eaf2f8;
  border-color: #eaf2f8;
}

.action-btn:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.manual-btn:focus-visible,
input[type="url"]:focus-visible {
  outline: 0px solid rgba(130, 194, 255, 0.85);
  outline-offset: 2px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.hero-panel {
  background: transparent;
  padding: 8px 6px 6px;
  border: none;
  box-shadow: none;
  animation: fade-in 700ms ease both;
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(94, 163, 255, 0.14);
  border: 1px solid rgba(94, 163, 255, 0.25);
  color: #b9d7ff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 20px;

  line-height: 1.08;
}

.hero-text {
  text-align: center;
}

.hero-text p {
  margin: 0 0 24px;
  color: var(--muted);

}

.input-card {

   padding: 20px;
    border-radius: 10px;
    background: #fff;
    border: 0px solid rgba(31, 42, 55, 0.16);
    box-shadow: 0 24px 55px rgb(15 23 42 / 6%);
}

label {
  display: block;
  font-size: 14px;
  color: #344256;
  font-weight: 600;
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  /* gap: 12px; */
}

.portal-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

input[type="url"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 50px;
  border-radius: 0px;
  border: 1px solid rgba(31, 42, 55, 0.16);
  outline: none;
  padding: 0 64px 0 16px;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-clear-btn {
  position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    width: 35px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(46, 168, 223, 0.7);
    border-radius: 0px;
    background: #ffffff;
    color: #314055;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, background .15s ease;
}

.input-clear-btn svg {
  width: 14px;
  height: 14px;
}

.input-clear-btn path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.input-clear-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.input-clear-btn.is-visible:hover {
  background: #eef4fb;
}

input[type="url"]::placeholder {
  color: #8b98aa;
}

input[type="url"]:hover {
  background: rgba(255, 255, 255, 0.85);
}

input[type="url"]:focus {
  border-color: rgba(46, 168, 223, 0.7);
  /* box-shadow: 0 0 0 4px rgba(46, 168, 223, 0.12); */
  background: #ffffff;
}

.primary-btn, .secondary-btn, .manual-btn {
  border: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.primary-btn:hover, .secondary-btn:hover, .manual-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
 height: 50px;
    padding: 0 22px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.primary-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.input-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 5px;
  flex-wrap: wrap;
}

.secondary-btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: #314055;
  font-size: 14px;
  border: 1px solid rgba(31, 42, 55, 0.16);
}

.hint {
  color: #6b7b90;
  font-size: 13px;
}

.status {
      margin-top: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
    line-height: 1.55;
    font-size: 14px;
}

.status.info {
  display: block;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.09));
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #204066;
}

.status.error {
  display: block;
      background: linear-gradient(180deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #7b1f27;

}

.info-tooltip-wrap {
  position: relative;
  display: inline-block;
}

.info-toggle-btn {
     border: 1px solid #000;
    background: transparent;
}

.info-toggle-btn:hover,
.info-toggle-btn:focus-visible {
  background: #eaf2f8;
}

.info-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(460px, 86vw);
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  background: #1f2a37;
  color: #f4f8ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 30;
}

.info-tooltip p {
  margin: 0 0 8px;
}

.info-tooltip ol,
.info-tooltip ul {
  margin: 0 0 10px;
  padding-left: 18px;
  line-height: 1.55;
}

.info-tooltip code {
  background: rgba(255, 255, 255, 0.15);
  color: #f6fbff;
}

.info-tooltip-wrap:hover .info-tooltip,
.info-tooltip-wrap:focus-within .info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.manual-options {
  margin-top: 10px;
  display: none;
  padding: 18px;
  border-radius: 10px;
     background: #fff3cd;
    border: 1px solid #e9daaf;
  animation: fade-in 260ms ease both;
}

.manual-header h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.manual-header p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.manual-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.manual-btn {
     padding: 10px 15px;
    border-radius: 5px;
    background: #2598d2;
    color: #fff;
  border: 0px solid rgba(31, 42, 55, 0.16);
}

.manual-btn:hover {
  background: #18658c;
}

.info-section+.info-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(31, 42, 55, 0.12);
}

.info-section h3 {
  margin: 0 0 14px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.info-section ol, .info-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3f7fc;
}

.version-tag {
  color: #204066;
  font-weight: 600;
}

.version-target, .version-arrow {
  color: var(--muted);
}

code {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf1fa;
  color: #1f3e66;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 74px 14px 14px;
  }

  .app-card {
    padding: 16px;
    border-radius: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 12px;
  }

  .brand {
    align-items: flex-start;
    gap: 10px;
  }

  .brand-logo-wrap {
    width: 64px;
    height: 64px;
  }

  .brand-logo {
    width: 50px;
  }

  .brand-copy h1 {
    font-size: 26px;
  }

  .brand-copy p {
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-panel {
    padding: 4px 0 0;
  }

  .hero-panel h2 {
    font-size: 24px;
  }

  .hero-text {
    margin-bottom: 18px;
  }

  .input-card {
    padding: 14px;
  }

  input[type="url"],
  .input-clear-btn,
  .primary-btn {
    height: 46px;
  }

  .input-row, .manual-buttons {
    flex-direction: column;
  }

  .primary-btn, .manual-btn {
    width: 100%;
  }

  .floating-actions {
    top: 10px;
    left: 12px;
    right: 12px;
    gap: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 80;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 10px;
    min-height: 40px;
    font-size: 12px;
  }

  .info-tooltip {
    position: fixed;
    top: 58px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 52vh;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 60px 10px 10px;
  }

  .app-card {
    padding: 12px;
  }

  .brand-copy h1 {
    font-size: 18px;
  }

  .brand-copy p {
    font-size: 13px;
  }

  .hero-panel h2 {
    font-size: 16px;
  }
.eyebrow {

    font-size: 10px;
}
 
  .action-btn {
    min-height: 36px;
    font-size: 11px;
  }

  .info-tooltip {
    top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}