/* TreasOS home — institutional fintech composition */

.page-home {
  --font-display: "Source Serif 4", "Source Serif", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-family: var(--font-body);
}

.page-home .brand-name,
.page-home .section-title,
.page-home .home-hero h1,
.page-home .trust-zone h3,
.page-home .flow-rail h3,
.page-home .path-link h3,
.page-home .suite-list dt {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-home .brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home section:nth-child(even) {
  background: transparent;
}

.page-home .home-section {
  padding: 5rem 0;
  position: relative;
}

.page-home .home-section:nth-of-type(even) {
  background:
    linear-gradient(180deg, transparent, var(--home-band) 12%, var(--home-band) 88%, transparent);
}

.page-home .section-intro {
  margin-bottom: 2rem;
}

/* —— Hero —— */
.home-hero {
  position: relative;
  min-height: min(100svh, 54rem);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: #070a0f;
}

.home-hero-media {
  position: absolute;
  inset: 0;
}

.home-hero-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  animation: home-hero-drift 18s ease-in-out infinite alternate;
}

@keyframes home-hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(0, -1.2%, 0); }
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 10, 15, 0.92) 0%, rgba(7, 10, 15, 0.72) 42%, rgba(7, 10, 15, 0.28) 68%, rgba(7, 10, 15, 0.55) 100%),
    linear-gradient(to top, rgba(7, 10, 15, 0.95) 0%, rgba(7, 10, 15, 0.35) 45%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .home-hero-scrim {
  background:
    linear-gradient(105deg, rgba(240, 242, 244, 0.94) 0%, rgba(240, 242, 244, 0.78) 40%, rgba(240, 242, 244, 0.18) 70%, rgba(240, 242, 244, 0.55) 100%),
    linear-gradient(to top, rgba(240, 242, 244, 0.96) 0%, rgba(240, 242, 244, 0.38) 48%, transparent 72%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0 3.25rem;
  max-width: 40rem;
  animation: home-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-brand-lockup img {
  height: 1.85rem;
  width: auto;
  filter: drop-shadow(0 2px 10px var(--logo-shadow));
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5.2vw, 3.35rem);
  line-height: 1.08;
  color: #f4f1ea;
  max-width: 16ch;
  text-wrap: balance;
}

[data-theme="light"] .home-hero h1 {
  color: #12151c;
}

.home-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.82);
  max-width: 34rem;
}

[data-theme="light"] .home-lead {
  color: #3d4554;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.home-hero .btn-primary {
  min-width: 11rem;
}

.home-hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f4f1ea;
  background: rgba(7, 10, 15, 0.28);
  backdrop-filter: blur(8px);
}

.home-hero .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(7, 10, 15, 0.45);
}

[data-theme="light"] .home-hero .btn-secondary {
  border-color: rgba(18, 21, 28, 0.18);
  color: #12151c;
  background: rgba(255, 255, 255, 0.55);
}

/* —— Trust —— */
.trust-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  gap: 0.65rem;
  align-items: stretch;
  margin: 0 0 2rem;
}

@media (max-width: 860px) {
  .trust-diagram {
    grid-template-columns: 1fr;
  }
  .trust-arrow {
    justify-self: center;
    transform: rotate(90deg);
    height: 1.5rem;
  }
}

.trust-zone {
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--stroke);
  border-radius: 2px;
  background: var(--bg-alt);
  min-height: 11rem;
}

.trust-zone--core {
  border-color: var(--gold);
  background:
    linear-gradient(165deg, var(--gold-dim), transparent 55%),
    var(--bg-alt);
}

.trust-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.trust-zone h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--text);
}

.trust-zone p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.trust-seal {
  margin-top: 0.85rem !important;
  display: inline-block;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold) !important;
}

.trust-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.75;
}

.trust-arrow span {
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  position: relative;
}

.trust-arrow span::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.trust-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  max-width: 48rem;
}

.trust-points li {
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.trust-points strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Flow —— */
.flow-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  counter-reset: none;
}

@media (max-width: 980px) {
  .flow-rail { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .flow-rail { grid-template-columns: 1fr 1fr; }
}

.flow-rail li {
  padding: 1rem 0.85rem 1.1rem;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: var(--bg-alt);
  min-height: 10.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.flow-rail li:hover {
  border-color: rgba(196, 163, 90, 0.45);
  transform: translateY(-2px);
}

.flow-rail li.flow-hl {
  border-top-color: var(--gold);
  background:
    linear-gradient(180deg, var(--gold-dim), transparent 40%),
    var(--bg-alt);
}

.flow-n {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.flow-rail h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
}

.flow-rail p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Paths —— */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
}

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

.path-link {
  display: block;
  padding: 1.6rem 1.4rem 1.75rem;
  background: var(--bg-base);
  color: inherit;
  text-decoration: none !important;
  transition: background 0.25s ease;
}

.path-link:hover {
  background: var(--bg-alt);
}

.path-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.path-link h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  color: var(--text);
}

.path-link p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* —— Suite —— */
.home-suite-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .home-suite-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.home-suite .section-intro {
  margin-bottom: 0;
}

.suite-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--stroke);
}

.suite-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--stroke);
}

@media (max-width: 520px) {
  .suite-list > div { grid-template-columns: 1fr; gap: 0.35rem; }
}

.suite-list dt {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.suite-list dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

/* —— Evaluate —— */
.home-evaluate {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, var(--gold-dim), transparent 55%),
    var(--bg-base) !important;
}

.home-evaluate-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .home-evaluate-grid { grid-template-columns: 1fr; }
}

.eval-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.eval-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--stroke);
  background: var(--bg-alt);
}

.eval-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.eval-form .eval-full,
.eval-form .eval-submit,
.eval-form .eval-note {
  grid-column: 1 / -1;
}

.eval-form input,
.eval-form textarea {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: var(--bg-base);
  border: 1px solid var(--stroke);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
}

.eval-form input:focus,
.eval-form textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.eval-form textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.eval-submit {
  width: 100%;
  margin-top: 0.25rem;
  border: none;
}

.eval-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-shot,
  .home-hero-copy,
  .reveal,
  .flow-rail li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
