.inner-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(91, 158, 230, .14), transparent 28rem),
    radial-gradient(circle at 8% 48%, rgba(79, 220, 202, .07), transparent 30rem),
    var(--bg);
}

.inner-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(133, 183, 225, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 183, 225, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.inner-header {
  background: rgba(6, 16, 28, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.inner-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #9fb0c4;
  font-size: .84rem;
}

.inner-nav a {
  transition: color .2s ease;
}

.inner-nav a:hover,
.inner-nav a[aria-current="page"] {
  color: var(--ink);
}

.page-main {
  padding: 152px 0 100px;
}

.page-hero {
  position: relative;
  max-width: 900px;
  padding-bottom: 65px;
}

.page-hero::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 56px;
  background: linear-gradient(90deg, rgba(98, 231, 219, .55), var(--line), transparent);
}

.page-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.page-title {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .98;
}

.page-title span {
  color: transparent;
  background: linear-gradient(90deg, #8dc5ff, #72e5d9);
  background-clip: text;
  -webkit-background-clip: text;
}

.page-intro {
  max-width: 720px;
  margin: 26px 0 0;
  color: #a4b4c9;
  font-size: 1.08rem;
  line-height: 1.75;
}

.page-intro a {
  color: #8ac9ff;
  text-decoration: underline;
  text-decoration-color: rgba(138, 201, 255, .34);
  text-underline-offset: 4px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 25px;
  color: #6f849c;
  font-size: .74rem;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(98, 231, 219, .55);
}

.story-grid,
.contact-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 70px;
  align-items: start;
}

.story-sticky {
  position: sticky;
  top: 110px;
}

.story-sticky h2,
.contact-panel h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 630;
  letter-spacing: -.052em;
  line-height: 1.06;
}

.story-sticky p,
.contact-panel > p,
.final-cta > p {
  color: var(--muted);
  line-height: 1.75;
}

.principle-list {
  display: grid;
  gap: 14px;
}

.principle-card,
.contact-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}

.principle-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -95px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 169, 229, .11), transparent 70%);
}

.card-index {
  color: #7890a9;
  font-size: .68rem;
  letter-spacing: .14em;
}

.principle-card h3,
.contact-card h3 {
  margin: 30px 0 10px;
  font-size: 1.2rem;
  letter-spacing: -.025em;
}

.principle-card p,
.contact-card p {
  margin: 0;
  color: #899cb2;
  font-size: .9rem;
  line-height: 1.7;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 70px;
}

.metric-strip div {
  min-height: 130px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .022);
}

.metric-strip strong {
  display: block;
  color: #cfe8ff;
  font-size: 1.7rem;
  font-weight: 650;
}

.metric-strip span {
  display: block;
  margin-top: 9px;
  color: #758aa1;
  font-size: .78rem;
  line-height: 1.5;
}

.content-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 750px);
  gap: 70px;
  align-items: start;
}

.contents-nav {
  position: sticky;
  top: 110px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 22, 37, .72);
  backdrop-filter: blur(12px);
}

.contents-nav strong {
  display: block;
  margin-bottom: 15px;
  color: #c6d9ec;
  font-size: .73rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contents-nav a {
  display: block;
  padding: 8px 0;
  color: #768ba2;
  font-size: .78rem;
  line-height: 1.35;
  transition: color .2s ease;
}

.contents-nav a:hover {
  color: var(--cyan);
}

.prose {
  counter-reset: section;
}

.prose section {
  scroll-margin-top: 115px;
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.prose section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.prose h2 {
  margin: 0 0 19px;
  color: #dcecff;
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -.03em;
}

.prose h3 {
  margin: 28px 0 12px;
  color: #bfd2e5;
  font-size: 1rem;
}

.prose p,
.prose li {
  color: #8ea1b7;
  font-size: .94rem;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul {
  margin: 17px 0 0;
  padding-left: 20px;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: #8ac9ff;
  text-decoration: underline;
  text-decoration-color: rgba(138, 201, 255, .32);
  text-underline-offset: 3px;
}

.notice {
  padding: 22px 24px;
  margin: 0 0 38px;
  border: 1px solid rgba(98, 231, 219, .16);
  border-radius: 15px;
  color: #98adbf;
  background: rgba(72, 184, 171, .055);
  font-size: .85rem;
  line-height: 1.7;
}

.notice strong {
  color: #ccece8;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-panel {
  padding-right: 40px;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card h3 {
  margin-top: 24px;
}

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(118, 185, 255, .18);
  border-radius: 13px;
  color: #8bceff;
  background: rgba(77, 147, 210, .1);
  font-size: 1.05rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #8fcaff;
  font-size: .82rem;
  font-weight: 700;
}

.contact-note {
  margin-top: 28px;
  padding: 22px;
  border-left: 2px solid var(--cyan);
  color: #7f94ab;
  background: rgba(255, 255, 255, .02);
  font-size: .82rem;
  line-height: 1.7;
}

.email-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 20px;
  align-items: center;
  margin: 28px 0;
  padding: 23px 24px;
  overflow: hidden;
  border: 1px solid rgba(98, 231, 219, .2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(67, 181, 168, .1), rgba(70, 135, 197, .07));
  transition: transform .2s ease, border-color .2s ease;
}

.email-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 231, 219, .38);
}

.email-panel span {
  color: #6f899d;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.email-panel strong {
  color: #d9f3f0;
  font-size: clamp(.88rem, 2vw, 1.08rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.email-panel i {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--cyan);
  font-size: 1.2rem;
  font-style: normal;
}

.final-cta {
  position: relative;
  margin-top: 90px;
  padding: 55px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 18%, rgba(84, 169, 229, .15), transparent 32%),
    linear-gradient(140deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}

.final-cta > p {
  max-width: 600px;
}

.final-cta .nav-cta {
  margin-top: 18px;
}

.error-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: transparent;
  background: linear-gradient(100deg, #8dc5ff, #72e5d9);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(6rem, 20vw, 13rem);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .8;
}

.error-main h1 {
  margin: 30px auto 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.error-main p {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.error-main .nav-cta {
  margin-top: 28px;
}

html[data-theme="light"] .inner-page {
  color: #102338;
  background:
    radial-gradient(circle at 82% 8%, rgba(91, 158, 230, .12), transparent 28rem),
    radial-gradient(circle at 8% 48%, rgba(79, 220, 202, .08), transparent 30rem),
    #edf4fb;
}

html[data-theme="light"] .inner-page::before {
  opacity: .18;
  background-image:
    linear-gradient(rgba(98, 132, 166, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 132, 166, .08) 1px, transparent 1px);
}

html[data-theme="light"] .inner-header {
  background: rgba(244, 248, 252, .88);
  border-bottom-color: rgba(104, 133, 164, .18);
}

html[data-theme="light"] .inner-nav {
  color: #5a7088;
}

html[data-theme="light"] .inner-nav a:hover,
html[data-theme="light"] .inner-nav a[aria-current="page"] {
  color: #102338;
}

html[data-theme="light"] .page-hero::after {
  background: linear-gradient(90deg, rgba(35, 173, 163, .55), rgba(76, 109, 143, .14), transparent);
}

html[data-theme="light"] .page-label {
  color: #0b766f;
}

html[data-theme="light"] .card-index {
  color: #536981;
}

html[data-theme="light"] .contact-icon {
  color: #0b766f;
}

html[data-theme="light"] .page-title,
html[data-theme="light"] .story-sticky h2,
html[data-theme="light"] .contact-panel h2,
html[data-theme="light"] .final-cta h2,
html[data-theme="light"] .principle-card h3,
html[data-theme="light"] .contact-card h3,
html[data-theme="light"] .contents-nav strong,
html[data-theme="light"] .prose h2,
html[data-theme="light"] .prose h3,
html[data-theme="light"] .metric-strip strong,
html[data-theme="light"] .email-panel strong,
html[data-theme="light"] .error-main h1 {
  color: #102338;
}

html[data-theme="light"] .page-intro,
html[data-theme="light"] .page-meta,
html[data-theme="light"] .story-sticky p,
html[data-theme="light"] .contact-panel > p,
html[data-theme="light"] .final-cta > p,
html[data-theme="light"] .principle-card p,
html[data-theme="light"] .contact-card p,
html[data-theme="light"] .metric-strip span,
html[data-theme="light"] .contents-nav a,
html[data-theme="light"] .prose p,
html[data-theme="light"] .prose li,
html[data-theme="light"] .notice,
html[data-theme="light"] .contact-note,
html[data-theme="light"] .email-panel span,
html[data-theme="light"] .error-main p {
  color: #5a7088;
}

html[data-theme="light"] .principle-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .metric-strip div,
html[data-theme="light"] .contents-nav,
html[data-theme="light"] .notice,
html[data-theme="light"] .contact-note,
html[data-theme="light"] .email-panel,
html[data-theme="light"] .final-cta {
  border-color: rgba(104, 133, 164, .16);
  box-shadow: 0 16px 40px rgba(123, 147, 172, .08);
}

html[data-theme="light"] .principle-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .metric-strip div,
html[data-theme="light"] .contents-nav,
html[data-theme="light"] .final-cta {
  background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(249,252,255,.82));
}

html[data-theme="light"] .notice {
  background: rgba(72, 184, 171, .08);
}

html[data-theme="light"] .contact-note {
  background: rgba(255,255,255,.58);
}

html[data-theme="light"] .email-panel {
  background: linear-gradient(135deg, rgba(67, 181, 168, .12), rgba(70, 135, 197, .09));
}

html[data-theme="light"] .prose section {
  border-bottom-color: rgba(104, 133, 164, .16);
}

html[data-theme="light"] .prose a,
html[data-theme="light"] .page-intro a,
html[data-theme="light"] .contact-action,
html[data-theme="light"] .contents-nav a:hover {
  color: #1f70b8;
}

html[data-theme="light"] .page-intro a,
html[data-theme="light"] .prose a {
  text-decoration-color: rgba(31, 112, 184, .25);
}

html[data-theme="light"] .notice strong {
  color: #16433f;
}

html[data-theme="light"] .error-main {
  background:
    radial-gradient(circle at 82% 8%, rgba(91, 158, 230, .12), transparent 28rem),
    radial-gradient(circle at 8% 48%, rgba(79, 220, 202, .08), transparent 30rem),
    #edf4fb;
}

html[data-theme="light"] .error-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .inner-nav { display: none; }
  .story-grid,
  .contact-grid,
  .content-layout { grid-template-columns: 1fr; gap: 48px; }
  .story-sticky,
  .contents-nav { position: static; }
  .contents-nav { display: none; }
  .contact-panel { padding-right: 0; }
}

@media (max-width: 700px) {
  .page-main { padding: 125px 0 75px; }
  .page-hero { padding-bottom: 45px; }
  .page-hero::after { margin-top: 42px; }
  .page-title { font-size: clamp(2.9rem, 15vw, 4.5rem); }
  .page-intro { font-size: .98rem; }
  .metric-strip { grid-template-columns: 1fr; margin-top: 50px; }
  .metric-strip div { min-height: 100px; }
  .principle-card,
  .contact-card { padding: 25px; }
  .final-cta { margin-top: 65px; padding: 36px 25px; text-align: center; }
  .prose section { padding-bottom: 36px; margin-bottom: 36px; }
}

@media (max-width: 390px) {
  .inner-header .nav-cta span { font-size: 1rem; }
}
