:root {
  --brand-red: #c40000;
  --brand-red-dark: #9e0000;
  --brand-red-soft: #fff1f1;
  --ink: #292d33;
  --muted: #747a83;
  --line: #e7e8eb;
  --surface: #ffffff;
  --page: #eff0f2;
  --shadow: 0 26px 70px rgba(36, 39, 44, 0.11), 0 4px 15px rgba(36, 39, 44, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.97) 0, rgba(255, 255, 255, 0.2) 34%, transparent 60%),
    linear-gradient(135deg, #eceff3 0%, #f7f7f7 48%, #f6eceb 100%);
  font: 14px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: 60%;
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: 120px;
  left: -260px;
  background: radial-gradient(circle, rgba(196, 0, 0, 0.08), transparent 68%);
}

.ambient-two {
  right: -250px;
  bottom: 30px;
  background: radial-gradient(circle, rgba(77, 140, 184, 0.09), transparent 68%);
}

.site-header {
  height: 82px;
  border-top: 3px solid var(--brand-red);
  border-bottom: 1px solid rgba(217, 219, 223, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(42, 46, 52, 0.035);
  backdrop-filter: saturate(1.3) blur(16px);
}

.header-inner {
  display: flex;
  height: 79px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

.brand img {
  display: block;
  width: auto;
  height: 50px;
  object-fit: contain;
}

.home-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 8px;
  color: #555b64;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.home-link:hover {
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.home-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.main-content {
  display: flex;
  min-height: calc(100vh - 170px);
  align-items: center;
  justify-content: center;
  padding-block: 54px 48px;
}

.hero {
  width: 100%;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--brand-red);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: #24282e;
  font-size: clamp(30px, 3.1vw, 48px);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.intro {
  max-width: 680px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 16px;
}

.search-card {
  position: relative;
  width: 100%;
  border: 1px solid rgba(221, 223, 227, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: left;
}

.search-card-topline {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 116px;
  height: 4px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, var(--brand-red), #f04444);
  transform: translateX(-50%);
}

.search-card-content {
  position: relative;
  padding: 38px 42px 34px;
}

.search-icon {
  display: inline-flex;
  float: left;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  border-radius: 13px;
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.search-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-copy {
  min-height: 52px;
  margin-bottom: 25px;
}

.search-copy h2 {
  margin-bottom: 0;
  color: #292d33;
  font-size: 20px;
  line-height: 1.4;
}

.search-copy p {
  margin-bottom: 0;
  color: #8a8f97;
  font-size: 13px;
}

.stock-form {
  clear: both;
}

.combobox {
  position: relative;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.input-wrap {
  position: relative;
}

.ticker-mark {
  position: absolute;
  top: 50%;
  left: 19px;
  z-index: 1;
  color: #a4a8ae;
  font-size: 19px;
  font-weight: 600;
  transform: translateY(-52%);
  pointer-events: none;
}

#stock-input {
  width: 100%;
  height: 58px;
  padding: 0 20px 0 43px;
  border: 1px solid #d8dade;
  border-radius: 10px;
  outline: 0;
  color: #252930;
  background: #fbfbfc;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#stock-input::placeholder {
  color: #adb1b7;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

#stock-input:focus {
  border-color: rgba(196, 0, 0, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(196, 0, 0, 0.09);
}

#search-button {
  display: inline-flex;
  min-width: 138px;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #d20707 0%, #ad0000 100%);
  box-shadow: 0 9px 22px rgba(196, 0, 0, 0.19);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#search-button:not(:disabled):hover {
  box-shadow: 0 11px 26px rgba(196, 0, 0, 0.26);
  transform: translateY(-1px);
}

#search-button:not(:disabled):active {
  transform: translateY(0);
}

#search-button:disabled {
  opacity: 0.48;
  box-shadow: none;
  cursor: not-allowed;
}

#search-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.suggestions {
  position: absolute;
  top: 66px;
  right: 150px;
  left: 0;
  z-index: 20;
  max-height: 440px;
  overflow: auto;
  border: 1px solid #e0e1e4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(30, 34, 40, 0.16);
}

.suggestion {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(54px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 15px;
  border: 0;
  border-bottom: 1px solid #f0f1f2;
  color: #30343a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion.is-active {
  background: #fff5f5;
}

.suggestion-symbol {
  color: var(--brand-red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.suggestion-name {
  overflow: hidden;
  color: #50555d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-arrow {
  color: #a1a5ab;
  font-size: 18px;
  line-height: 1;
}

.search-help {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 2px 0;
  color: #92969d;
  font-size: 12px;
}

.search-help svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
}

.trust-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding-inline: 22px;
  text-align: left;
}

.trust-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedfe2;
  border-radius: 50%;
  color: #6f747c;
  background: rgba(255, 255, 255, 0.64);
}

.trust-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trust-item strong,
.trust-item small {
  display: block;
  white-space: nowrap;
}

.trust-item strong {
  color: #535860;
  font-size: 13px;
  line-height: 1.5;
}

.trust-item small {
  color: #969aa1;
  font-size: 11px;
  line-height: 1.5;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: #dfe0e3;
}

.site-footer {
  color: #92969d;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(215, 217, 221, 0.72);
}

.footer-inner p {
  margin-bottom: 0;
}

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

@media (max-width: 1180px) {
  .page-shell {
    width: 76%;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: calc(100% - 36px);
  }

  .main-content {
    padding-block: 44px 36px;
  }

  .search-card-content {
    padding: 34px 28px 30px;
  }

  .trust-item {
    padding-inline: 13px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .header-inner {
    height: 70px;
  }

  .brand img {
    height: 42px;
  }

  .home-link span {
    display: none;
  }

  .main-content {
    min-height: auto;
    padding-block: 38px 32px;
  }

  h1 {
    font-size: 31px;
  }

  .intro {
    margin-bottom: 27px;
    font-size: 14px;
  }

  .search-card-content {
    padding: 31px 20px 25px;
  }

  .search-icon {
    width: 42px;
    height: 42px;
    margin-right: 12px;
  }

  .search-copy {
    min-height: 46px;
    margin-bottom: 21px;
  }

  .search-copy h2 {
    font-size: 17px;
  }

  .search-copy p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  #stock-input,
  #search-button {
    height: 54px;
  }

  #search-button {
    width: 100%;
  }

  .suggestions {
    top: 62px;
    right: 0;
  }

  .trust-row {
    align-items: stretch;
    margin-top: 27px;
  }

  .trust-item {
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding-inline: 5px;
    text-align: center;
  }

  .trust-item small {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-block: 18px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
