@import 'tailwindcss';

:root {
  --ink: #f7fbff;
  --muted: #a7b8c8;
  --navy: #020917;
  --panel: #071528;
  --line: rgba(242, 183, 88, 0.28);
  --gold: #f0b85a;
  --cyan: #29d7ff;
  --green: #79e3a2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 4%, rgba(41, 215, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 12%, rgba(240, 184, 90, 0.18), transparent 26rem),
    linear-gradient(180deg, #031128 0%, #020917 46%, #030711 100%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(2, 9, 23, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(156px, 15vw, 238px);
  max-height: 42px;
  object-fit: contain;
}

.navlinks {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  color: rgba(247, 251, 255, 0.78);
  font-size: 14px;
}

.navlinks a,
.login-link {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.navlinks a:hover {
  color: var(--gold);
}

.login-link {
  justify-self: end;
  border: 1px solid var(--line);
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(240, 184, 90, 0.08);
}

.login-link:hover,
.secondary-action:hover {
  border-color: rgba(41, 215, 255, 0.65);
  color: #ffffff;
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  list-style: none;
}

.mobile-menu summary span,
.mobile-menu summary span::before,
.mobile-menu summary span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu summary span {
  position: relative;
}

.mobile-menu summary span::before,
.mobile-menu summary span::after {
  content: '';
  position: absolute;
  left: 0;
}

.mobile-menu summary span::before {
  top: -6px;
}

.mobile-menu summary span::after {
  top: 6px;
}

.mobile-menu[open] summary span {
  transform: rotate(45deg);
}

.mobile-menu[open] summary span::before {
  opacity: 0;
}

.mobile-menu[open] summary span::after {
  top: 0;
  transform: rotate(-90deg);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 132px clamp(20px, 5vw, 72px) 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    linear-gradient(90deg, rgba(2, 9, 23, 0.9) 0%, rgba(2, 9, 23, 0.36) 58%, rgba(2, 9, 23, 0.95) 100%),
    url('assets/wrise-storyboard.png') center / cover no-repeat;
}

.hero::after,
.story-section::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 860px;
  font-size: clamp(56px, 9vw, 126px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 720px;
  color: #dbe8f6;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  text-align: center;
}

.primary-action {
  background: linear-gradient(135deg, var(--gold), #ffe2a3);
  color: #07101d;
}

.primary-action:hover {
  filter: brightness(1.06);
}

.secondary-action {
  color: #dfefff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(7, 21, 40, 0.72);
}

.hero-panel {
  border: 1px solid var(--line);
  background: rgba(3, 12, 27, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.signal-grid span {
  padding: 18px;
  color: #dff7ff;
  background: rgba(7, 21, 40, 0.94);
  font-size: 14px;
}

.intro-band,
.section,
.platform-section,
.story-section,
.roadmap-section,
.contact-section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  background: rgba(255, 255, 255, 0.03);
}

.intro-band p:last-child,
.platform-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.service-grid,
.pillar-grid,
.roadmap {
  display: grid;
  gap: 16px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.pillar,
.roadmap article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 28, 51, 0.86), rgba(4, 13, 26, 0.9));
}

.service-card {
  min-height: 238px;
  padding: 24px;
}

.service-card span,
.roadmap span {
  display: block;
  margin-bottom: 34px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card p,
.pillar p,
.roadmap p {
  color: var(--muted);
  line-height: 1.62;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: linear-gradient(90deg, rgba(240, 184, 90, 0.08), rgba(41, 215, 255, 0.06));
}

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

.metric-row div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.metric-row strong {
  display: block;
  color: var(--green);
  font-size: 30px;
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
}

.platform-visual,
.story-section img {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 215, 255, 0.22);
  border-radius: 8px;
  background: #030a16;
}

.platform-visual img,
.story-section img {
  display: block;
  width: 100%;
  height: auto;
}

.story-section img {
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
}

.governance {
  background: rgba(255, 255, 255, 0.025);
}

.pillar-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pillar {
  min-height: 210px;
  padding: 24px;
}

.pillar strong {
  display: block;
  margin-bottom: 40px;
  color: var(--gold);
  font-size: 22px;
}

.roadmap {
  grid-template-columns: repeat(3, 1fr);
}

.roadmap article {
  padding: 26px;
  border-color: var(--line);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 11, 25, 0.9), rgba(4, 21, 38, 0.9)),
    url('assets/wrise-logo-hero.png') center / cover no-repeat;
}

.contact-section h2 {
  max-width: 850px;
}

.contact-section p {
  max-width: 760px;
}

.login-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 9, 23, 0.94), rgba(2, 9, 23, 0.74)),
    linear-gradient(180deg, rgba(2, 9, 23, 0.2), rgba(2, 9, 23, 0.98)),
    url('assets/wrise-storyboard.png') center / cover no-repeat;
  color: var(--ink);
}

.login-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 9, 23, 0.72);
  backdrop-filter: blur(18px);
}

.login-back {
  border: 1px solid var(--line);
  padding: 11px 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  background: rgba(240, 184, 90, 0.08);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.login-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 96px);
}

.login-copy p {
  max-width: 640px;
  color: #dbe8f6;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.38;
}

.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 34px);
  background: rgba(3, 12, 27, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.login-card img {
  display: block;
  width: min(190px, 72%);
  max-height: 38px;
  object-fit: contain;
  margin-bottom: 34px;
}

.login-card h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.6vw, 42px);
}

.login-card p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.provider-list {
  display: grid;
  gap: 12px;
}

.provider-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(7, 21, 40, 0.82);
  color: #f7fbff;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.provider-button:hover {
  border-color: rgba(41, 215, 255, 0.65);
  background: rgba(10, 31, 56, 0.96);
  transform: translateY(-1px);
}

.provider-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #06101d;
  font-size: 14px;
  font-weight: 800;
  background: #ffffff;
}

.provider-button.microsoft span {
  background: linear-gradient(135deg, #f25022 0 50%, #7fba00 50% 100%);
}

.provider-button.facebook span {
  color: #ffffff;
  background: #1877f2;
}

.provider-button.apple span {
  color: #ffffff;
  background: #111111;
}

.azure-login {
  margin-top: 6px;
}

.login-error {
  margin: 0 0 16px;
  border: 1px solid rgba(240, 184, 90, 0.38);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(240, 184, 90, 0.1);
  color: #ffe2a3;
  font-size: 13px;
  line-height: 1.45;
}

.login-note {
  margin-top: 22px;
  margin-bottom: 0 !important;
  color: var(--muted);
  font-size: 14px;
}

.login-support {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.login-support a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: rgba(247, 251, 255, 0.58);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #dfefff;
  font-size: 13px;
  font-weight: 700;
}

.login-form input[type='text'],
.login-form input[type='email'],
.login-form input[type='password'],
.login-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(2, 9, 23, 0.72);
  color: var(--ink);
  font: inherit;
}

.login-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 18px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) calc(100% - 13px) 52% / 6px 6px no-repeat,
    rgba(2, 9, 23, 0.72);
  cursor: pointer;
}

.login-form option {
  background: #071528;
  color: var(--ink);
}

.login-form input::placeholder {
  color: rgba(167, 184, 200, 0.74);
}

.login-form input:focus,
.login-form select:focus {
  outline: none;
  border-color: rgba(41, 215, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(41, 215, 255, 0.14);
}

.login-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 4px;
}

.login-form-row a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.remember-option {
  display: inline-flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
}

.remember-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.login-submit {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #ffe2a3);
  color: #07101d;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.login-submit:hover {
  filter: brightness(1.06);
}

.portal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(2, 9, 23, 0.94), rgba(2, 9, 23, 0.76)),
    url('assets/wrise-storyboard.png') center / cover no-repeat;
  color: var(--ink);
}

.portal-card {
  width: min(100%, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(3, 12, 27, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.portal-card img {
  display: block;
  width: min(190px, 72%);
  max-height: 38px;
  object-fit: contain;
  margin-bottom: 34px;
}

.portal-card h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
}

.portal-card p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.portal-dashboard {
  width: min(100%, 1180px);
  border: 1px solid rgba(242, 183, 88, 0.24);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 40px);
  background: rgba(3, 12, 27, 0.9);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.portal-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.portal-dashboard-header img {
  display: block;
  width: min(210px, 54vw);
  max-height: 42px;
  object-fit: contain;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.portal-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 84px);
}

.portal-hero p {
  max-width: 660px;
  color: #dbe8f6;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.38;
}

.portal-user {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(7, 21, 40, 0.76);
}

.portal-user span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-user strong {
  color: #dff7ff;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.portal-metrics,
.portal-area-grid,
.portal-role-grid {
  display: grid;
  gap: 14px;
}

.portal-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(38px, 5vw, 58px);
}

.portal-metrics article,
.portal-area-grid article,
.portal-role-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 28, 51, 0.86), rgba(4, 13, 26, 0.9));
}

.portal-metrics article {
  min-height: 170px;
  padding: 20px;
}

.portal-metrics span,
.portal-role-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-metrics strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 24px;
}

.portal-metrics p,
.portal-area-grid p,
.portal-role-grid p {
  color: var(--muted);
  line-height: 1.58;
}

.portal-section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.portal-area-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.portal-area-grid article {
  min-height: 190px;
  padding: 20px;
}

.portal-area-grid h3 {
  color: #f7fbff;
}

.portal-role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-role-grid article {
  padding: 20px;
}

.wrise-os-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    radial-gradient(circle at 72% 8%, rgba(41, 215, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #031128 0%, #020917 100%);
  color: var(--ink);
}

.wrise-os-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 9, 23, 0.86);
  backdrop-filter: blur(18px);
}

.wrise-os-brand {
  display: grid;
  gap: 10px;
  padding: 0 8px 12px;
}

.wrise-os-brand img {
  width: min(190px, 100%);
  max-height: 38px;
  object-fit: contain;
}

.wrise-os-brand strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.wrise-os-nav {
  display: grid;
  gap: 8px;
}

.wrise-os-nav span {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
}

.wrise-os-nav span.active {
  border-color: rgba(41, 215, 255, 0.34);
  background: rgba(41, 215, 255, 0.1);
  color: #ffffff;
}

.wrise-os-nav b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(242, 183, 88, 0.3);
  border-radius: 8px;
  color: var(--gold);
}

.wrise-os-nav small {
  display: grid;
  gap: 3px;
  font-size: 12px;
}

.wrise-os-nav strong {
  color: #f7fbff;
  font-size: 14px;
}

.wrise-os-profile {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(7, 21, 40, 0.78);
}

.wrise-os-profile span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.wrise-os-profile strong,
.wrise-os-profile small {
  display: block;
}

.wrise-os-profile small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.wrise-os-workspace {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
}

.wrise-os-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.wrise-os-header h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 82px);
}

.wrise-os-header p:not(.section-kicker) {
  max-width: 760px;
  color: #dbe8f6;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.wrise-os-actions {
  display: flex;
  gap: 10px;
}

.wrise-os-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--gold);
  background: rgba(240, 184, 90, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.wrise-os-status,
.wrise-os-grid {
  display: grid;
  gap: 14px;
}

.wrise-os-status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.wrise-os-status article,
.wrise-os-grid article,
.wrise-os-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 28, 51, 0.86), rgba(4, 13, 26, 0.9));
}

.wrise-os-status article,
.wrise-os-grid article {
  padding: 20px;
}

.wrise-os-status span,
.wrise-os-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrise-os-status strong,
.wrise-os-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 24px;
}

.wrise-os-status p,
.wrise-os-grid p {
  color: var(--muted);
  line-height: 1.58;
}

.wrise-os-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.wrise-os-grid article {
  min-height: 190px;
}

.wrise-os-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: end;
  padding: 24px;
}

.wrise-os-panel h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 44px);
}

.wrise-os-panel label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.wrise-os-panel input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(2, 9, 23, 0.72);
  color: var(--ink);
  font: inherit;
}

.wrise-os-panel button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--gold), #ffe2a3);
  color: #07101d;
  font: inherit;
  font-weight: 800;
}

.aios-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    radial-gradient(circle at 52% 0, rgba(41, 215, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #020917, #020711);
  color: var(--ink);
}

.aios-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px;
  border-right: 1px solid rgba(41, 215, 255, 0.18);
  background: rgba(2, 9, 23, 0.9);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.3);
}

.aios-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 4px 10px;
}

.aios-brand img {
  width: 145px;
  max-height: 32px;
  object-fit: contain;
}

.aios-brand span {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.aios-nav {
  display: grid;
  gap: 7px;
}

.aios-nav span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
}

.aios-nav span.active {
  border-color: rgba(41, 215, 255, 0.6);
  background: linear-gradient(135deg, rgba(31, 107, 255, 0.5), rgba(41, 215, 255, 0.12));
  color: #ffffff;
  box-shadow: 0 0 24px rgba(41, 215, 255, 0.18);
}

.aios-nav b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(41, 215, 255, 0.32);
  border-radius: 7px;
  color: #ffffff;
  background: rgba(41, 215, 255, 0.08);
}

.aios-nav small {
  display: grid;
  gap: 1px;
  font-size: 11px;
  line-height: 1.25;
}

.aios-nav strong {
  color: #ffffff;
  font-size: 14px;
}

.aios-user-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  border: 1px solid rgba(41, 215, 255, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(7, 21, 40, 0.82);
}

.aios-avatar,
.aios-profile span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: #ffffff;
  font-weight: 800;
}

.aios-user-card span,
.aios-user-card small {
  color: var(--muted);
}

.aios-main {
  min-width: 0;
  padding: 18px;
}

.aios-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.aios-topbar h1 {
  margin-bottom: 4px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
}

.aios-topbar p {
  color: var(--muted);
  line-height: 1.45;
}

.aios-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(41, 215, 255, 0.22);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(7, 21, 40, 0.78);
  color: var(--ink);
}

.aios-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aios-profile small {
  display: grid;
  color: var(--muted);
  font-size: 12px;
}

.aios-profile strong {
  color: #ffffff;
}

.aios-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.aios-center,
.aios-right {
  display: grid;
  align-content: start;
  gap: 14px;
}

.wealth-brain,
.right-panel,
.ask-card,
.core-systems,
.opportunity-radar,
.market-map,
.aios-highlights article {
  border: 1px solid rgba(41, 215, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 21, 40, 0.88), rgba(3, 12, 27, 0.94));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.wealth-brain {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: 16px;
  min-height: 300px;
  overflow: hidden;
  padding: 24px;
}

.wealth-brain::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(41, 215, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 50% 50%, rgba(154, 124, 255, 0.22), transparent 13rem);
  pointer-events: none;
}

.brain-agents,
.brain-core,
.brain-stats {
  position: relative;
  z-index: 1;
}

.brain-agents {
  display: grid;
  gap: 14px;
}

.brain-agents article {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(41, 215, 255, 0.34);
  border-radius: 8px;
  padding: 12px;
  background: rgba(3, 12, 27, 0.72);
}

.brain-agents b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(41, 215, 255, 0.12);
  color: var(--cyan);
}

.brain-agents strong,
.brain-agents span {
  display: block;
}

.brain-agents span {
  color: var(--muted);
  font-size: 12px;
}

.brain-agents strong {
  color: #ffffff;
  font-size: 14px;
}

.brain-core {
  text-align: center;
}

.brain-core p {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brain-core h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.6vw, 38px);
  text-transform: uppercase;
}

.brain-orb {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  border: 1px solid rgba(41, 215, 255, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 215, 255, 0.35), rgba(10, 36, 72, 0.1));
  box-shadow: 0 0 50px rgba(41, 215, 255, 0.3);
}

.brain-orb span {
  color: #ffffff;
  font-size: 52px;
  text-shadow: 0 0 20px rgba(41, 215, 255, 0.9);
}

.brain-core strong,
.brain-core small {
  display: block;
}

.brain-core small {
  color: var(--muted);
}

.brain-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.brain-stats span {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.brain-stats strong {
  color: #8ee7ff;
  font-size: 18px;
}

.aios-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.aios-highlights article {
  min-height: 155px;
  padding: 18px;
}

.aios-highlights span,
.right-panel h2,
.core-systems h2,
.opportunity-radar h2,
.market-map h2 {
  color: #dff7ff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aios-highlights strong {
  display: block;
  margin: 22px 0 8px;
  color: var(--green);
  font-size: 28px;
}

.aios-highlights p {
  color: var(--muted);
  line-height: 1.5;
}

.core-systems {
  padding: 18px;
}

.core-systems h2 {
  margin-bottom: 14px;
  text-align: center;
}

.core-systems div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.core-systems article {
  border: 1px solid rgba(41, 215, 255, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(2, 9, 23, 0.45);
}

.core-systems strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}

.core-systems p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.aios-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.opportunity-radar,
.market-map {
  padding: 18px;
}

.opportunity-radar span {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.opportunity-radar b {
  color: #ffffff;
}

.opportunity-radar small {
  color: var(--muted);
}

.opportunity-radar strong {
  color: var(--green);
}

.map-dots {
  min-height: 130px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 42%, var(--cyan) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 34%, var(--cyan) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 62%, var(--gold) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(41, 215, 255, 0.16), rgba(2, 9, 23, 0.4));
}

.market-map p {
  margin-top: 12px;
  color: var(--muted);
}

.right-panel,
.ask-card {
  padding: 16px;
}

.right-panel h2,
.ask-card h2 {
  margin-bottom: 12px;
  font-size: 16px;
}

.kpis div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpis article {
  border: 1px solid rgba(41, 215, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 9, 23, 0.46);
}

.kpis span,
.kpis small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kpis strong {
  display: block;
  margin: 7px 0;
  color: #ffffff;
  font-size: 22px;
}

.kpis small {
  color: var(--green);
}

.alert-row,
.schedule-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

.alert-row strong {
  color: #ffbd59;
}

.alert-row span,
.schedule-row span {
  color: var(--muted);
  font-size: 13px;
}

.schedule-row {
  grid-template-columns: 80px 1fr;
}

.schedule-row strong {
  color: #8ee7ff;
  font-size: 13px;
}

.ask-card {
  text-align: center;
}

.ask-card > div {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border: 1px solid rgba(41, 215, 255, 0.5);
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 0 34px rgba(41, 215, 255, 0.24);
}

.ask-card p {
  color: var(--muted);
}

.ask-card label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

.ask-card input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(41, 215, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(2, 9, 23, 0.7);
  color: var(--ink);
}

.ask-card button {
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .navlinks,
  .login-link {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    justify-self: end;
  }

  .mobile-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    color: var(--gold);
    background: rgba(240, 184, 90, 0.08);
    cursor: pointer;
  }

  .mobile-menu[open] summary {
    border-color: rgba(41, 215, 255, 0.65);
    color: #ffffff;
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(242, 183, 88, 0.34);
    border-radius: 8px;
    background: rgba(3, 12, 27, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
  }

  .mobile-menu-panel a {
    padding: 13px 14px;
    color: #dfefff;
    font-size: 14px;
  }

  .mobile-menu-panel a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-menu-panel .mobile-login {
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-weight: 700;
  }

  .hero,
  .intro-band,
  .platform-section,
  .contact-section,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-shell,
  .portal-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .wrise-os-page {
    grid-template-columns: 1fr;
  }

  .wrise-os-sidebar {
    position: relative;
    height: auto;
  }

  .wrise-os-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wrise-os-header,
  .wrise-os-panel {
    grid-template-columns: 1fr;
  }

  .aios-page {
    grid-template-columns: 1fr;
  }

  .aios-sidebar {
    position: relative;
    height: auto;
  }

  .aios-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aios-topbar,
  .aios-layout,
  .wealth-brain,
  .aios-bottom-grid {
    grid-template-columns: 1fr;
  }

  .aios-profile {
    justify-content: flex-start;
  }

  .core-systems div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 118px;
  }

  .hero-panel {
    max-width: 680px;
  }

  .service-grid,
  .pillar-grid,
  .portal-metrics,
  .portal-area-grid,
  .portal-role-grid,
  .wrise-os-status,
  .wrise-os-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 14px;
    padding: 14px 18px;
  }

  .brand img {
    width: 136px;
    max-height: 34px;
  }

  .mobile-menu summary {
    width: 40px;
    height: 36px;
  }

  .hero {
    min-height: auto;
    padding: 108px 18px 54px;
  }

  h1 {
    font-size: clamp(44px, 15vw, 72px);
  }

  .hero-copy {
    font-size: 18px;
  }

  h2 {
    font-size: clamp(30px, 11vw, 44px);
  }

  h3 {
    font-size: 20px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-panel img {
    object-fit: contain;
    background: #020917;
  }

  .intro-band,
  .section,
  .platform-section,
  .story-section,
  .roadmap-section,
  .contact-section,
  .login-shell {
    padding: 56px 18px;
  }

  .login-topbar {
    padding: 14px 18px;
  }

  .login-back {
    padding: 9px 12px;
    font-size: 12px;
  }

  .login-form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-grid,
  .pillar-grid,
  .roadmap,
  .metric-row,
  .portal-metrics,
  .portal-area-grid,
  .portal-role-grid,
  .wrise-os-status,
  .wrise-os-grid {
    grid-template-columns: 1fr;
  }

  .wrise-os-workspace,
  .wrise-os-sidebar {
    padding: 18px;
  }

  .aios-main,
  .aios-sidebar {
    padding: 14px;
  }

  .aios-topbar {
    gap: 12px;
  }

  .aios-search {
    order: 3;
  }

  .aios-nav,
  .aios-highlights,
  .brain-stats,
  .kpis div,
  .core-systems div {
    grid-template-columns: 1fr;
  }

  .brain-orb {
    width: 120px;
    height: 120px;
  }

  .brain-orb span {
    font-size: 42px;
  }

  .ask-card label {
    grid-template-columns: 1fr;
  }

  .ask-card button {
    min-height: 42px;
  }

  .wrise-os-actions,
  .wrise-os-panel label {
    grid-template-columns: 1fr;
  }

  .wrise-os-actions {
    display: grid;
  }

  .wrise-os-actions a,
  .wrise-os-panel button {
    width: 100%;
  }

  .service-card,
  .pillar {
    min-height: auto;
  }

  .platform-visual,
  .story-section img {
    width: 100%;
  }

  .portal-page {
    padding: 16px;
  }

  .portal-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-metrics article,
  .portal-area-grid article {
    min-height: auto;
  }
}

@media (max-width: 390px) {
  .topbar {
    gap: 10px;
    padding: 12px 14px;
  }

  .brand img {
    width: 118px;
    max-height: 30px;
  }

  .mobile-menu summary {
    width: 38px;
    height: 34px;
  }

  .mobile-menu-panel {
    right: -2px;
    min-width: min(220px, calc(100vw - 28px));
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .login-topbar,
  .login-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
}
