@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap");

:root {
  --landing-bg-1: #e6edf9;
  --landing-bg-2: #f3f6fd;
  --landing-bg-3: #ece7da;
  --landing-text: #1e2536;
  --landing-muted: #596584;
  --landing-line: rgba(255, 255, 255, 0.54);
  --landing-line-soft: rgba(191, 205, 232, 0.46);
  --landing-gold: rgba(187, 160, 112, 0.5);
  --landing-shadow-1: 0 24px 56px rgba(37, 50, 80, 0.18);
  --landing-shadow-2: 0 44px 82px rgba(31, 40, 62, 0.24);
}

body.sovereign-landing {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--landing-text);
  background:
    radial-gradient(1100px 700px at 52% -8%, rgba(214, 225, 251, 0.86), transparent 64%),
    radial-gradient(860px 480px at 84% 10%, rgba(233, 226, 208, 0.78), transparent 68%),
    linear-gradient(144deg, var(--landing-bg-1) 0%, var(--landing-bg-2) 48%, var(--landing-bg-3) 100%);
}

.sovereign-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.32), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 40px);
  opacity: 0.3;
}

.glass {
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.68));
  border: 1px solid var(--landing-line);
  box-shadow: var(--landing-shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(26px) saturate(132%);
  -webkit-backdrop-filter: blur(26px) saturate(132%);
}

.landing-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.landing-core {
  width: min(1220px, 100%);
  border-radius: 24px;
  padding: 32px 30px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--landing-shadow-2), inset 0 -22px 44px rgba(171, 183, 215, 0.16);
}

.landing-core::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.identity-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.crest-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(152deg, rgba(252, 255, 255, 0.88), rgba(240, 246, 255, 0.78));
  border: 1px solid rgba(205, 217, 241, 0.72);
  box-shadow: 0 14px 30px rgba(57, 70, 106, 0.2);
}

.school-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.micro-label {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #697695;
}

.identity-head h1 {
  margin: 10px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 2.7vw, 2.3rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2d3551;
}

.location-line {
  margin: 8px 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--landing-muted);
}

.landing-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.12fr);
  gap: 20px;
  align-items: stretch;
}

.authority-panel {
  border-radius: 24px;
  padding: 22px 20px;
  border: 1px solid var(--landing-line-soft);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.64), rgba(246, 250, 255, 0.56));
  box-shadow: 0 12px 28px rgba(56, 68, 98, 0.13);
  display: flex;
  flex-direction: column;
}

.panel-kicker {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #6b7793;
}

.authority-panel h2 {
  margin: 8px 0 0;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #2a334d;
}

.panel-note {
  margin: 10px 0 0;
  font-size: 0.69rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #576482;
}

.landing-roles {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.role-card {
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid rgba(196, 207, 230, 0.78);
  background: linear-gradient(145deg, rgba(252, 255, 255, 0.92), rgba(242, 248, 255, 0.84));
  padding: 14px 14px 13px;
  transition: transform 380ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 380ms cubic-bezier(0.4, 0, 0.2, 1), border-color 380ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 22px rgba(51, 64, 96, 0.12);
}

.role-title {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #2c3550;
}

.role-desc {
  display: block;
  margin-top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5d6b89;
}

.role-card:hover,
.role-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--landing-gold);
  box-shadow: 0 18px 30px rgba(44, 57, 88, 0.18), 0 0 0 1px rgba(187, 160, 112, 0.2);
  outline: none;
}

.campus-panel {
  border-radius: 24px;
  border: 1px solid var(--landing-line-soft);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.6), rgba(245, 250, 255, 0.52));
  box-shadow: 0 12px 28px rgba(55, 67, 96, 0.13);
  padding: 14px;
  display: flex;
}

.campus-frame {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(211, 220, 242, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 24px rgba(41, 54, 86, 0.22);
}

.campus-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.02) contrast(1.05) brightness(0.95);
}

.campus-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(20, 34, 64, 0.08), rgba(24, 35, 59, 0.34));
}

.campus-badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(235, 241, 255, 0.52);
  background: linear-gradient(140deg, rgba(36, 46, 72, 0.64), rgba(41, 54, 86, 0.48));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-title {
  display: block;
  font-size: 0.61rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 250, 236, 0.95);
}

.badge-sub {
  display: block;
  margin-top: 5px;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(224, 234, 255, 0.9);
}

.landing-foot {
  margin-top: 14px;
  text-align: center;
}

.landing-foot p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #62708d;
}

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

  .campus-frame {
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .landing-shell {
    padding: 12px;
  }

  .landing-core {
    border-radius: 24px;
    padding: 20px 14px 16px;
  }

  .landing-core::before {
    inset: 8px;
    border-radius: 18px;
  }

  .crest-wrap {
    width: 78px;
    height: 78px;
  }

  .school-logo {
    width: 52px;
    height: 52px;
  }

  .authority-panel,
  .campus-panel {
    border-radius: 16px;
    padding: 12px;
  }

  .campus-frame {
    min-height: 250px;
    border-radius: 14px;
  }
}

/* MASTER DESIGN DNA COMPLIANCE OVERRIDE */
body.sovereign-landing {
  background:
    radial-gradient(1180px 700px at 50% -14%, rgba(66, 124, 109, 0.2), transparent 66%),
    linear-gradient(148deg, #132822 0%, #1a3a32 52%, #132923 100%);
  color: #e2e9dc;
}

.install-row {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.install-btn {
  border: 1px solid rgba(180, 154, 103, 0.42);
  background: linear-gradient(145deg, rgba(40, 74, 65, 0.9), rgba(25, 49, 42, 0.82));
  color: #ece7d7;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.install-status {
  margin: 0;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c6d3c5;
}

body.sovereign-landing.is-standalone {
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 680px) {
  .install-btn {
    width: 100%;
  }
}

.glass,
.landing-core,
.authority-panel,
.campus-panel,
.role-card,
.campus-badge {
  border-radius: 22px;
  border: 1px solid rgba(223, 221, 206, 0.24);
  background: linear-gradient(152deg, rgba(24, 48, 41, 0.82), rgba(16, 34, 29, 0.72));
  backdrop-filter: blur(24px) saturate(124%);
  -webkit-backdrop-filter: blur(24px) saturate(124%);
  box-shadow: 0 18px 40px rgba(7, 15, 13, 0.4), inset 0 1px 0 rgba(235, 233, 220, 0.14);
}

.identity-head h1,
.panel-kicker,
.authority-panel h2,
.panel-note,
.role-title,
.role-desc,
.badge-title,
.badge-sub,
.location-line,
.micro-label,
.landing-foot p {
  color: #d5decf;
}

.landing-grid {
  gap: 32px;
}

.role-card {
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 360ms cubic-bezier(0.4, 0, 0.2, 1), border-color 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.role-card:hover,
.role-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(180, 154, 103, 0.56);
}

/* 2026-02 cinematic parity override (super/viewer aligned) */
body.sovereign-landing {
  background:
    radial-gradient(1180px 680px at 50% -18%, rgba(117, 175, 205, 0.14), transparent 64%),
    radial-gradient(920px 500px at 86% 8%, rgba(215, 180, 112, 0.12), transparent 66%),
    linear-gradient(152deg, var(--canvas-base, #070f1e) 0%, var(--surface-primary, #0d1729) 52%, var(--surface-elevated, #101d32) 100%);
  color: #e8effc;
}

body.sovereign-landing .sovereign-atmosphere {
  background:
    linear-gradient(120deg, rgba(233, 242, 255, 0.08), transparent 40%),
    repeating-linear-gradient(90deg, rgba(243, 249, 255, 0.035) 0, rgba(243, 249, 255, 0.035) 1px, transparent 1px, transparent 42px);
  opacity: 0.58;
}

body.sovereign-landing .glass,
body.sovereign-landing .landing-core,
body.sovereign-landing .authority-panel,
body.sovereign-landing .campus-panel,
body.sovereign-landing .role-card,
body.sovereign-landing .campus-badge {
  border-color: rgba(200, 219, 255, 0.2);
  background: linear-gradient(152deg, rgba(18, 31, 52, 0.86), rgba(14, 25, 43, 0.7));
  box-shadow: 0 18px 36px rgba(3, 9, 23, 0.44), inset 0 1px 0 rgba(228, 236, 255, 0.2);
}

body.sovereign-landing .identity-head h1,
body.sovereign-landing .authority-panel h2,
body.sovereign-landing .role-title,
body.sovereign-landing .badge-title {
  color: #e8effc;
}

body.sovereign-landing .micro-label,
body.sovereign-landing .location-line,
body.sovereign-landing .panel-kicker,
body.sovereign-landing .panel-note,
body.sovereign-landing .role-desc,
body.sovereign-landing .badge-sub,
body.sovereign-landing .landing-foot p,
body.sovereign-landing .install-status {
  color: #9eb0cc;
}

body.sovereign-landing .install-btn {
  border-color: rgba(200, 219, 255, 0.26);
  background: linear-gradient(145deg, rgba(34, 58, 91, 0.88), rgba(19, 34, 58, 0.74));
  color: #e8effc;
}
