@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-v20-latin_latin-ext-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-v20-latin_latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-v20-latin_latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/space-grotesk-v22-latin_latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f1724;
  --text: #ecf2ff;
  --muted: #acc0e5;
  --accent: #24d3b5;
  --accent-2: #ffb84d;
  --line: rgba(172, 192, 229, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 80% 10%, #1a2e4e 0%, var(--bg) 45%),
              linear-gradient(130deg, #0f1724 0%, #131f34 65%, #0f1724 100%);
  line-height: 1.62;
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  z-index: -1;
}

.hero,
.section {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.hero {
  min-height: 0;
  padding: 1rem 0 0.35rem;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--accent);
  margin-left: 0.25rem;
}

.hero-content {
  margin: 1rem 0 0;
  max-width: 840px;
}

h1,
h2,
h3 {
  margin: 0 0 0.72rem;
  line-height: 1.2;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
}

h2 {
  font-size: clamp(1.42rem, 4vw, 2.2rem);
}

h3 {
  font-size: 1rem;
  color: #f4f8ff;
}

.hero-sub,
.hero-line {
  margin: 0;
  max-width: 66ch;
  color: #d8e4fc;
  font-size: clamp(1rem, 2.1vw, 1.14rem);
}

.hero-tag {
  margin: 1rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  font-weight: 700;
  color: #ffd07c;
}

.section {
  padding: 3.1rem 0;
}

.hero + main > .section:first-child {
  padding-top: 0.25rem;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.positioning {
  margin: 0 0 0.7rem;
  color: #cfe0fb;
}

.positioning strong {
  color: #eaf1ff;
}

.core-direction {
  max-width: 880px;
}

.core-direction p,
.core-direction li {
  color: var(--muted);
}

.core-direction ul {
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
}

.unified-framework {
  margin-top: 1rem;
  max-width: 880px;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(172, 192, 229, 0.26);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(36, 211, 181, 0.06), rgba(255, 255, 255, 0.02));
}

.unified-framework h3 {
  margin-bottom: 0.65rem;
  text-align: center;
}

.unified-framework p {
  margin: 0.8rem 0 0;
  color: #d7e6ff;
  text-align: center;
}

.unified-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  --flow-gap: 1.45rem;
  gap: var(--flow-gap);
  justify-items: center;
}

.unified-flow li {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.unified-flow li span {
  display: inline-block;
  width: clamp(300px, 48%, 520px);
  text-align: center;
  color: #dce9ff;
  border: 1px solid rgba(172, 192, 229, 0.25);
  border-radius: 9px;
  background: rgba(15, 23, 36, 0.62);
  padding: 0.42rem 0.68rem;
}

.unified-flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 8px;
  height: calc(var(--flow-gap) - 0.75rem);
  background:
    radial-gradient(circle at 50% 3px, rgba(36, 211, 181, 0.92) 2px, transparent 2.4px),
    linear-gradient(to bottom, transparent 8px, rgba(36, 211, 181, 0.7) 8px, rgba(36, 211, 181, 0.48) 100%);
}

.unified-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + var(--flow-gap) - 0.58rem);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid rgba(36, 211, 181, 0.96);
  transform: translateX(-50%);
}

.card-grid,
.domain-grid {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.domain,
.case-text,
.case-plot,
.long-term {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  padding: 0.95rem;
}

.card p,
.domain p,
.case-text p,
.case-text li,
.long-term p {
  color: var(--muted);
  margin: 0 0 0.55rem;
}

.card p:last-child,
.domain p:last-child,
.case-text p:last-child,
.long-term p:last-child {
  margin-bottom: 0;
}

.card ul,
.case-text ul,
.long-term ul {
  margin: 0;
  padding-left: 1.1rem;
}

.validation-note {
  margin-top: 0.7rem;
  padding-left: 0.6rem;
  border-left: 2px solid rgba(36, 211, 181, 0.55);
  color: #d7e6ff;
}

.section-case {
  background: linear-gradient(180deg, rgba(26, 37, 55, 0.68) 0%, rgba(19, 31, 52, 0.68) 100%);
  border-top: 1px solid rgba(172, 192, 229, 0.12);
  border-bottom: 1px solid rgba(172, 192, 229, 0.12);
}

.case-top {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.plot {
  width: 100%;
  height: auto;
  margin-top: 0.25rem;
}

.plot line {
  stroke: #8ec1ff;
  stroke-width: 1.4;
}

.plot .diag {
  stroke: #ffb84d;
}

.plot circle {
  fill: #24d3b5;
}

.plot-note {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  color: #a9bfd8;
}

.section-end {
  background: linear-gradient(180deg, rgba(15, 23, 36, 0.8) 0%, rgba(13, 20, 31, 0.92) 100%);
}

.principles-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.65rem;
  max-width: 920px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principles-list span {
  display: block;
  border: 1px solid rgba(172, 192, 229, 0.22);
  border-left: 3px solid rgba(36, 211, 181, 0.72);
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  color: #eaf1ff;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.footer {
  padding-top: 1.2rem;
  padding-bottom: 2rem;
}

.footer p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.legal-actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.legal-btn {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(172, 192, 229, 0.18);
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-weight: 600;
  font-size: 0.92rem;
  background: rgba(15, 23, 36, 0.22);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.legal-btn:hover {
  border-color: rgba(36, 211, 181, 0.58);
  transform: translateY(-1px);
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  width: min(900px, 92%);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.legal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.legal-home {
  text-decoration: none;
  color: #05271f;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: linear-gradient(120deg, var(--accent) 0%, #57f1d8 100%);
  border: 1px solid rgba(36, 211, 181, 0.95);
  box-shadow: 0 6px 20px rgba(36, 211, 181, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.legal-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(36, 211, 181, 0.28);
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  padding: 1.1rem;
}

.legal-kicker {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--accent-2);
}

.legal-card p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.legal-card h1 {
  margin-bottom: 0.65rem;
}

.legal-card h2 {
  margin: 1rem 0 0.42rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  color: #e7f1ff;
}

.legal-card ul {
  margin: 0.35rem 0 0.6rem;
  padding-left: 1.1rem;
}

.legal-card li {
  color: var(--muted);
  margin: 0.2rem 0;
}

.legal-card a {
  color: #8fc4ff;
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .card-grid,
  .domain-grid,
  .case-top {
    grid-template-columns: 1fr;
  }

  .principles-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero + main > .section:first-child {
    padding-top: 0.2rem;
  }

  .unified-flow li span {
    width: min(100%, 440px);
  }

  .legal-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}
