:root {
  --bg-dark: #062f26;
  --bg-main: #0b5845;
  --bg-soft: #edf5f9;
  --card: rgba(255, 255, 255, 0.96);
  --card-strong: #ffffff;
  --text-main: #11222f;
  --text-muted: #5d6c79;
  --text-light: #f4fffb;
  --line: #06c755;
  --yellow: #ffd54f;
  --yellow-deep: #f5bc1a;
  --cyan: #55e2d2;
  --border: rgba(16, 34, 47, 0.08);
  --shadow-hero: 0 28px 80px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 22px 46px rgba(6, 49, 38, 0.16);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(90, 235, 205, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg-main) 0%, #0f644d 39%, #edf5f9 39%, #edf5f9 100%);
}

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

button,
input {
  font: inherit;
}

strong {
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

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

.page-shell {
  position: relative;
  overflow: clip;
}

.hero {
  position: relative;
  padding: 36px 18px 24px;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.5;
}

.hero__glow--one {
  width: 340px;
  height: 340px;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(78, 233, 193, 0.22);
}

.hero__glow--two {
  width: 560px;
  height: 180px;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(19, 190, 167, 0.18);
}

.hero__content,
.main-content,
.site-footer,
.legal-page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 20px), var(--max-width));
  margin: 0 auto;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 440px);
  gap: 22px;
  align-items: start;
}

.hero__copy {
  padding-top: 18px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbfff5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero__title {
  margin: 14px 0 10px;
  color: var(--text-light);
  font-size: clamp(38px, 5.8vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero__subtitle {
  margin: 0;
  color: #ffe790;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
}

.hero__subtitle strong {
  color: #fff5bf;
  font-size: 1.15em;
}

.hero__desc {
  max-width: 680px;
  margin: 16px 0 10px;
  color: rgba(244, 255, 251, 0.88);
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.72;
}

.hero__note {
  margin: 0;
  color: rgba(244, 255, 251, 0.72);
  font-size: 12px;
}

.hero-search,
.recent-card,
.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.hero-search {
  padding: 22px;
}

.hero-search__head h2,
.section-head h2,
.legal-card h1 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.hero-search__label,
.section-head__eyebrow {
  margin: 0;
  color: #0c7a65;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-search__head p:last-child,
.section-head__note,
.legal-card__lead {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.field-group {
  position: relative;
  margin-top: 18px;
}

.stock-input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 1px solid #dce6eb;
  border-radius: 16px;
  background: #f6f9fb;
  color: var(--text-main);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.stock-input:focus {
  border-color: rgba(12, 122, 101, 0.58);
  box-shadow: 0 0 0 4px rgba(12, 122, 101, 0.12);
  transform: translateY(-1px);
}

.suggestions {
  position: relative;
  z-index: 8;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid #d7e6e4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(6, 49, 38, 0.14);
}

.suggestion {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #eef4f6;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

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

.suggestion:hover,
.suggestion:focus-visible {
  background: #f4fbf9;
  outline: none;
}

.suggestion__main {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.suggestion__code {
  font-weight: 900;
}

.suggestion__name {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion__market {
  align-self: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef5f8;
  color: #48616e;
  font-size: 11px;
  font-weight: 800;
}

.form-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: #d34d35;
  font-size: 13px;
  font-weight: 800;
}

.form-message.is-success {
  color: #0f8a59;
}

.scarcity-note {
  display: inline-flex;
  align-items: center;
  margin: 6px 0 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff3c6;
  color: #8a5f00;
  font-size: 12px;
  font-weight: 900;
}

.scarcity-note--center {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.primary-button,
.line-button,
.recent-row__button {
  border: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.primary-button {
  width: 100%;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: #1b232a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 20px 34px rgba(245, 188, 26, 0.34);
}

.primary-button:hover,
.primary-button:focus-visible,
.line-button:hover,
.line-button:focus-visible,
.recent-row__button:hover,
.recent-row__button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.04);
  outline: none;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hero-point {
  padding: 12px;
  border: 1px solid #e6eef1;
  border-radius: 18px;
  background: #f9fcfd;
}

.hero-point span {
  display: block;
  color: #0c7a65;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-point strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.main-content {
  margin-top: 18px;
  padding: 0 0 48px;
}

.recent-card {
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

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

.recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid #e7eef2;
  border-radius: 18px;
  background: #fbfdff;
}

.recent-row__text {
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.recent-row__button {
  flex: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: #113328;
  color: #f5fff8;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 18px rgba(17, 51, 40, 0.16);
}

.site-footer {
  padding: 0 0 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-footer__links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__text,
.site-footer__copy {
  margin: 6px 0 0;
  font-size: 13px;
}

.loading-overlay,
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.loading-overlay {
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 17, 13, 0.72);
  backdrop-filter: blur(8px);
}

.loading-card {
  width: min(100%, 520px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(5, 44, 35, 0.96);
  color: var(--text-light);
  box-shadow: var(--shadow-hero);
}

.loading-card__eyebrow,
.modal__eyebrow {
  margin: 0 0 8px;
  color: #bdf9eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loading-card h2,
.modal__head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 34px);
  letter-spacing: -0.04em;
}

.progress-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.progress-step {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.62;
}

.progress-step.is-active,
.progress-step.is-done {
  opacity: 1;
}

.progress-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}

.progress-step p {
  margin: 8px 0 0;
  color: rgba(244, 255, 251, 0.76);
  font-size: 13px;
}

.progress-bar {
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #82ffe2 0%, #ffd54f 100%);
}

.modal {
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
  max-height: min(90vh, 860px);
  overflow: auto;
  border-radius: 24px;
  background: var(--card-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.modal__head {
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, #0d7a62 0%, #16a085 100%);
  color: var(--text-light);
}

.modal__head p:last-child {
  margin: 8px 0 0;
  color: rgba(244, 255, 251, 0.84);
  font-size: 16px;
  font-weight: 800;
}

.modal__body {
  padding: 20px;
}

.result-summary {
  display: grid;
  gap: 10px;
}

.result-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid #e4ebf0;
  border-radius: 18px;
  background: #f9fbfd;
}

.result-row span {
  color: #0c7a65;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.result-row strong {
  font-size: 16px;
  line-height: 1.55;
}

.result-lead {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.7;
}

.line-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 17px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #15dc64 0%, var(--line) 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(6, 199, 85, 0.24);
}

.modal__legal {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.legal-page {
  padding: 30px 0 48px;
}

.legal-card {
  padding: 24px;
}

.legal-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-main);
  line-height: 1.9;
}

.back-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__copy {
    padding-top: 8px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at top, rgba(90, 235, 205, 0.14), transparent 22%),
      linear-gradient(180deg, var(--bg-main) 0%, #0f644d 32%, #edf5f9 32%, #edf5f9 100%);
  }

  .hero {
    padding: 16px 10px 14px;
  }

  .hero__content,
  .main-content,
  .site-footer,
  .legal-page {
    width: min(calc(100% - 8px), var(--max-width));
  }

  .hero__content {
    gap: 14px;
  }

  .hero__copy {
    padding-top: 4px;
  }

  .eyebrow-pill {
    padding: 7px 10px;
    font-size: 11px;
  }

  .hero-search,
  .recent-card,
  .legal-card,
  .loading-card {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .hero__title {
    margin-top: 12px;
    font-size: 31px;
    line-height: 1.08;
  }

  .hero__subtitle {
    font-size: 17px;
    line-height: 1.4;
  }

  .hero__desc {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero__note {
    margin-top: 8px;
    line-height: 1.5;
  }

  .hero-search__head h2,
  .section-head h2,
  .legal-card h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero-search__head p:last-child,
  .section-head__note,
  .legal-card__lead {
    font-size: 13px;
    line-height: 1.55;
  }

  .field-group {
    margin-top: 14px;
  }

  .stock-input {
    height: 50px;
    font-size: 16px;
  }

  .suggestion {
    padding: 9px 12px;
  }

  .suggestion__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .suggestion__market {
    margin-left: auto;
  }

  .scarcity-note {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .primary-button,
  .line-button {
    padding: 15px 14px;
    font-size: 18px;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .hero-point {
    padding: 10px 12px;
  }

  .main-content {
    margin-top: 12px;
    padding-bottom: 28px;
  }

  .recent-card {
    padding: 14px;
  }

  .section-head {
    gap: 6px;
    margin-bottom: 10px;
  }

  .recent-list {
    gap: 12px;
  }

  .recent-row {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .recent-row__text {
    font-size: 15px;
    line-height: 1.6;
  }

  .recent-row__button {
    width: 100%;
    margin-top: 2px;
    padding: 12px 14px;
    text-align: center;
  }

  .loading-overlay {
    padding: 10px;
  }

  .loading-card h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .progress-list {
    gap: 10px;
    margin-top: 14px;
  }

  .progress-step {
    padding: 12px;
    border-radius: 16px;
  }

  .progress-step__top {
    font-size: 14px;
  }

  .progress-step p {
    font-size: 12px;
    line-height: 1.5;
  }

  .modal {
    padding: 0;
    align-items: end;
  }

  .modal__dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
  }

  .modal__head {
    padding: 18px 16px 14px;
  }

  .modal__head p:last-child {
    font-size: 15px;
  }

  .modal__body {
    padding: 16px 14px 18px;
  }

  .result-summary {
    gap: 8px;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 13px;
  }

  .result-row strong {
    font-size: 15px;
  }

  .result-lead {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
  }

  .modal__legal {
    line-height: 1.5;
  }

  .site-footer {
    padding-bottom: 22px;
  }

  .site-footer__text,
  .site-footer__copy {
    font-size: 12px;
    line-height: 1.6;
  }

  .site-footer__links {
    gap: 12px;
  }
}
