\
:root {
  --bg: #07111f;
  --bg-soft: #0b1628;
  --bg-elevated: #101d33;
  --surface: rgba(12, 20, 35, 0.94);
  --surface-2: rgba(15, 26, 45, 0.96);
  --surface-3: rgba(18, 31, 52, 0.98);
  --border: rgba(151, 182, 228, 0.16);
  --border-strong: rgba(88, 222, 205, 0.42);
  --text: #f6f9ff;
  --muted: #c6d0df;
  --muted-2: #96a3b7;
  --primary: #58decd;
  --primary-2: #77bcff;
  --primary-dark: #052133;
  --gold: #ffd27a;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 44px rgba(0, 0, 0, 0.26);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(88, 222, 205, 0.12), transparent 24%),
    radial-gradient(circle at 92% 8%, rgba(119, 188, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0a1525 45%, #06101d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

img {
  max-width: 100%;
  display: block;
}

code {
  padding: 0.18rem 0.35rem;
  border-radius: 8px;
  color: #defffa;
  background: rgba(88, 222, 205, 0.10);
  border: 1px solid rgba(88, 222, 205, 0.18);
}

.page-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 30px;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 20px rgba(88, 222, 205, 0.45);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(125, 164, 216, 0.14);
  border-radius: 16px;
  background: rgba(8, 14, 25, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.30);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(88, 222, 205, 0.22);
  background: rgba(8, 14, 25, 0.97);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(88, 222, 205, 0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 0 24px rgba(88, 222, 205, 0.12);
}

.brand strong,
.footer-brand span {
  display: block;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 0.79rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.main-nav a:hover,
body[data-page="home"] .main-nav a[data-nav="home"],
body[data-page="projects"] .main-nav a[data-nav="projects"],
body[data-page="beta"] .main-nav a[data-nav="beta"],
body[data-page="support"] .main-nav a[data-nav="support"],
body[data-page="contact"] .main-nav a[data-nav="contact"] {
  color: var(--text);
  background: linear-gradient(135deg, rgba(88, 222, 205, 0.18), rgba(119, 188, 255, 0.12));
  border: 1px solid rgba(88, 222, 205, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero,
.subpage-hero,
.wide-showcase,
.cta-band,
.section-intro,
.feature-tile,
.project-card,
.detail-card,
.asset-note,
.glass-card,
.legal-card,
.timeline-section {
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: end;
  min-height: 660px;
  margin-top: 16px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(139, 176, 231, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(9, 16, 29, 0.96), rgba(7, 13, 24, 0.88)),
    var(--bg-soft);
  isolation: isolate;
}

.hero::before,
.subpage-hero::before,
.wide-showcase::before,
.cta-band::before,
.timeline-section::before {
  content: "";
  position: absolute;
  inset: auto auto -180px -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(88, 222, 205, 0.20), transparent 68%);
  pointer-events: none;
  filter: blur(8px);
}

.hero::after,
.subpage-hero::after,
.wide-showcase::after,
.cta-band::after,
.timeline-section::after {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(119, 188, 255, 0.14), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  opacity: 0.20;
  transform: translateY(calc(var(--parallax, 0px) * 0.18));
}

.hero-bg-image img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,12,21,0.94) 0%, rgba(7,12,21,0.86) 42%, rgba(7,12,21,0.80) 100%),
    linear-gradient(180deg, rgba(5,8,14,0.15) 0%, rgba(5,8,14,0.40) 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 30%, rgba(88, 222, 205, 0.14), transparent 20%),
    radial-gradient(circle at 72% 42%, rgba(119, 188, 255, 0.12), transparent 24%),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.055) 42%, transparent 54%);
  animation: meshFloat 9s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  from { transform: translate3d(-12px, -8px, 0) scale(1); }
  to { transform: translate3d(14px, 10px, 0) scale(1.03); }
}

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

.hero-content {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.62), rgba(9, 16, 29, 0.80));
  backdrop-filter: blur(10px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(88, 222, 205, 0.34);
  border-radius: 999px;
  color: #e6fffb;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: rgba(88, 222, 205, 0.10);
}

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

h1 {
  margin-bottom: 22px;
  color: #fbfdff;
  font-size: clamp(3rem, 6.4vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.subpage-hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
}

h2 {
  margin-bottom: 12px;
  color: #fbfdff;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  color: #f8fbff;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

p {
  color: #d9e3f1;
  line-height: 1.72;
}

.hero-content p,
.subpage-hero p {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(1rem, 1.55vw, 1.16rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 36px rgba(88, 222, 205, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 18px 48px rgba(88, 222, 205, 0.26);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: rgba(153, 182, 226, 0.16);
}

.btn-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.9rem;
}

.btn-disabled {
  color: var(--muted-2);
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  cursor: not-allowed;
}

.ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255,255,255,0.42);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 620ms ease-out;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(16);
    opacity: 0;
  }
}

.text-link {
  color: #e0fffa;
  font-weight: 850;
}

.glass-card,
.project-card,
.detail-card,
.asset-note,
.cta-band,
.section-intro,
.legal-card,
.feature-tile,
.timeline-section {
  border: 1px solid rgba(149, 181, 226, 0.14);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.hero-panel {
  align-self: end;
  width: 100%;
  max-width: 410px;
  justify-self: end;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.92), rgba(12, 22, 37, 0.94));
}

.panel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #f4f8ff;
  margin-bottom: 12px;
  font-weight: 900;
  font-size: 0.92rem;
}

.panel-topline small {
  color: var(--muted-2);
  font-weight: 800;
}

.mini-project {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.052);
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mini-project:hover {
  transform: translateX(4px);
  border-color: rgba(88, 222, 205, 0.28);
  background: rgba(88, 222, 205, 0.075);
}

.mini-project + .mini-project {
  margin-top: 10px;
}

.mini-project img {
  width: 58px;
  height: 48px;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.10);
}

.mini-project strong,
.mini-project small {
  display: block;
}

.mini-project strong {
  color: #f7fbff;
}

.mini-project small {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.42;
}

.mini-project em {
  color: #ddfffa;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.78;
}

.panel-note {
  margin-top: 14px;
  padding: 13px;
  border-radius: 15px;
  color: var(--muted);
  line-height: 1.55;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-stats div {
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.section-intro {
  margin-top: 18px;
  padding: 26px;
  border-radius: 20px;
}

.split-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.split-cta p {
  margin-bottom: 0;
}

.feature-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feature-tile {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 26, 45, 0.96), rgba(12, 20, 35, 0.94));
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(88, 222, 205, 0.12), transparent 68%);
}

.feature-tile > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #f2fffd;
  font-weight: 1000;
  background: linear-gradient(135deg, rgba(88, 222, 205, 0.30), rgba(119, 188, 255, 0.18));
  border: 1px solid rgba(88, 222, 205, 0.25);
}

.feature-tile p {
  margin-bottom: 0;
}

.project-grid,
.support-grid {
  display: grid;
  gap: 16px;
}

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.project-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-2);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform 160ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.image-frame:hover,
.detail-card:hover,
.support-card:hover {
  --lift: -3px;
  border-color: rgba(88, 222, 205, 0.26);
  box-shadow: 0 22px 72px rgba(0,0,0,0.36), 0 0 0 1px rgba(88, 222, 205, 0.05);
}

.card-media {
  position: relative;
  min-height: 205px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 450ms ease, filter 450ms ease;
}

.project-card:hover .card-media img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.04);
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.card-media .status {
  position: absolute;
  top: 12px;
  left: 12px;
}

.status.live {
  color: #e6fffb;
  background: rgba(88, 222, 205, 0.18);
  border: 1px solid rgba(88, 222, 205, 0.35);
}

.status.soon {
  color: #fff2cf;
  background: rgba(255, 210, 122, 0.14);
  border: 1px solid rgba(255, 210, 122, 0.24);
}

.card-body {
  padding: 20px;
}

.card-body p {
  min-height: 70px;
  font-size: 0.98rem;
  color: #dbe4f0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.card-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.075);
}

.wide-showcase,
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
}

.wide-showcase {
  background:
    linear-gradient(135deg, rgba(11, 19, 34, 0.94), rgba(10, 16, 28, 0.92)),
    var(--surface);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: #e4ecf7;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #08111f;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 1000;
  font-size: 0.78rem;
}

.image-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(88, 222, 205, 0.22);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 28px 80px rgba(0,0,0,0.24);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  transition: transform 160ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.image-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.timeline-section {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 26, 45, 0.96), rgba(11, 19, 34, 0.92)),
    var(--surface-2);
}

.timeline-head {
  max-width: 760px;
}

.timeline-head p {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.timeline article {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 6px rgba(88, 222, 205, 0.10);
}

.timeline article span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ddfffa;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline article p {
  margin-bottom: 0;
}

.cta-band {
  grid-template-columns: 1fr auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 222, 205, 0.14), transparent 30%),
    var(--surface-3);
}

.cta-band p {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-top: 18px;
  padding: 26px 4px 0;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--text);
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid rgba(139, 176, 231, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(9, 16, 29, 0.95), rgba(8, 14, 25, 0.92)),
    url("../brand/mg-nexus-banner.png") center / cover;
}

.subpage-hero.compact {
  min-height: 280px;
}

.project-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.detail-card {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.detail-card > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
}

.info-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 18px;
}

.info-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-list.stacked div {
  grid-template-columns: 1fr;
  gap: 4px;
}

.info-list dt {
  color: var(--muted-2);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #edf3fb;
}

.asset-note {
  margin-top: 16px;
  padding: 24px;
  border-radius: 18px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.content-card,
.support-card,
.legal-card {
  padding: 24px;
  border-radius: 18px;
}

.demo-form {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.demo-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  color: var(--text);
  padding: 13px 14px;
  border: 1px solid rgba(151, 182, 228, 0.18);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,0.055);
  font: inherit;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(88, 222, 205, 0.08);
}

.demo-form option {
  color: #08101d;
}

.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.support-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.support-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #f3fffd;
  font-weight: 1000;
  background: linear-gradient(135deg, rgba(88, 222, 205, 0.35), rgba(119, 188, 255, 0.22));
  border: 1px solid rgba(88, 222, 205, 0.26);
}

.legal-card {
  margin-top: 16px;
  max-width: 900px;
}

.legal-card h2 {
  margin-top: 24px;
  font-size: 1.4rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.js .reveal-target {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.js .reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal-target,
  .js .reveal-target.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-bg-image {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 24px, var(--max));
    padding-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(149, 181, 226, 0.14);
    border-radius: 14px;
    background: rgba(8, 14, 25, 0.98);
    backdrop-filter: blur(18px);
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .featured-grid,
  .support-grid,
  .feature-tiles,
  .timeline {
    grid-template-columns: 1fr;
  }

  .wide-showcase,
  .cta-band,
  .two-column,
  .detail-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .site-header {
    top: 8px;
  }

  .hero,
  .subpage-hero,
  .timeline-section {
    padding: 22px;
    border-radius: 20px;
  }

  .hero-content {
    padding: 16px;
  }

  h1 {
    font-size: clamp(2.35rem, 13.5vw, 4.2rem);
    line-height: 1.02;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .mini-project {
    grid-template-columns: 54px 1fr;
  }

  .mini-project em {
    grid-column: 2;
  }

  .split-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-card {
    padding: 12px;
  }

  .detail-card > img {
    height: 210px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta-band {
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .card-actions .btn,
  .card-actions .text-link,
  .support-card .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
