:root {
  --bg: #05030d;
  --panel: rgba(16, 9, 39, .76);
  --panel-strong: rgba(20, 11, 48, .9);
  --text: #f6efdf;
  --muted: rgba(246, 239, 223, .68);
  --soft: rgba(246, 239, 223, .48);
  --cyan: #21e7ff;
  --pink: #ff4fd3;
  --gold: #ecc66d;
  --line: rgba(159, 129, 255, .2);
  --line-cyan: rgba(33, 231, 255, .34);
  --shadow: 0 26px 80px rgba(0, 0, 0, .36);
  --container: 1200px;
  --header: 72px;
  --radius-xl: 30px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(128, 48, 190, .34), transparent 31%),
    radial-gradient(circle at 88% 14%, rgba(0, 204, 255, .2), transparent 28%),
    radial-gradient(circle at 52% 88%, rgba(255, 79, 211, .08), transparent 28%),
    linear-gradient(135deg, #080313 0%, #05030d 54%, #061725 100%);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

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

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.bg-grid {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -8vh;
  height: 42vh;
  z-index: 0;
  pointer-events: none;
  opacity: .38;
  background:
    linear-gradient(to top, rgba(33, 231, 255, .075), transparent),
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(33,231,255,.065) 57px, transparent 58px),
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(255,79,211,.045) 57px, transparent 58px);
  transform: perspective(720px) rotateX(64deg);
  transform-origin: bottom;
}

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(86px);
  opacity: .34;
}

.bg-orb-left {
  width: 430px;
  height: 430px;
  left: -150px;
  top: 120px;
  background: #7c32d8;
}

.bg-orb-right {
  width: 430px;
  height: 430px;
  right: -140px;
  top: 120px;
  background: #12c6ff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(5, 3, 13, .84);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffe8a4, #c99435 58%, #3a210d);
  box-shadow: 0 0 26px rgba(236, 198, 109, .24);
}

.brand-copy strong {
  display: block;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .01em;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.nav-primary {
  padding: 9px 17px;
  border-radius: 999px;
  color: var(--gold) !important;
  border: 1px solid rgba(236, 198, 109, .36);
  background: rgba(236, 198, 109, .045);
}

.page {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.hero {
  min-height: calc(100vh - var(--header) - 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.chip,
.project-status,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-cyan);
  background: rgba(33, 231, 255, .06);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4.1vw, 62px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--text);
  text-wrap: balance;
}

.lead {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  min-height: 45px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .025em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

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

.btn-primary {
  color: #15051c;
  background: linear-gradient(100deg, var(--cyan), var(--pink) 58%, #ffd27f);
  box-shadow: 0 14px 40px rgba(33, 231, 255, .15);
}

.btn-secondary {
  color: #f2d99a;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(236, 198, 109, .24);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  cursor: default;
  opacity: .55;
  transform: none;
}

.system-strip {
  margin-top: 26px;
  max-width: 650px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.system-strip span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.065);
  font-size: 12px;
  font-weight: 800;
}

.project-panel,
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 12%, rgba(33, 231, 255, .1), transparent 22%),
    linear-gradient(180deg, var(--panel-strong), rgba(9, 5, 28, .92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.045);
}

.project-panel {
  min-height: 445px;
  padding: 32px;
}

.project-orb {
  position: absolute;
  top: -38px;
  right: -34px;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff0a7 0 9%, #e1c05f 10% 18%, transparent 19%),
    radial-gradient(circle at 42% 42%, rgba(255,255,255,.82), transparent 12%),
    linear-gradient(135deg, #dac97f, #7b6dff 48%, #21134a 72%, #c11691);
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
}

.project-status {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.project-panel h2 {
  position: relative;
  z-index: 1;
  margin: 84px 0 16px;
  max-width: 340px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 3.2vw, 50px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.03em;
}

.project-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 350px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.project-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.project-facts div {
  padding: 12px 10px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.065);
}

.project-facts strong {
  display: block;
  color: #ffe7a6;
  font-size: 20px;
  line-height: 1;
}

.project-facts span {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.25;
}

.project-open {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 22px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.projects {
  padding-top: 38px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, .7fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 13px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.025em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  padding: 26px;
}

.project-card-soon {
  opacity: .72;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.badge,
.card-num {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.badge {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  color: var(--soft);
  background: rgba(255,255,255,.035);
}

.badge-active {
  color: #06111b;
  border-color: transparent;
  background: var(--cyan);
}

.card-num {
  color: var(--soft);
}

.project-card h3 {
  margin: 16px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.025em;
}

.project-card p {
  min-height: 74px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

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

.tags span {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--soft);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.065);
  font-size: 11px;
}

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

  .project-panel {
    max-width: 620px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: var(--header);
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .page {
    width: min(100% - 32px, var(--container));
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .lead {
    font-size: 15px;
  }

  .project-panel,
  .project-card {
    padding: 22px;
    border-radius: 22px;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

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

/* === LEGAL FOOTER + COOKIE BANNER START === */

.legal-footer {
  margin-top: 46px;
  padding: 24px 0 34px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 22px;
  align-items: start;
  color: rgba(246, 239, 223, .56);
}

.legal-footer__brand strong {
  display: block;
  color: rgba(246, 239, 223, .82);
  font-size: 14px;
  letter-spacing: .02em;
}

.legal-footer__brand span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 14px;
}

.legal-links a {
  color: rgba(246, 239, 223, .58);
  font-size: 12px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(33, 231, 255, .18);
  transition: color .18s ease, border-color .18s ease;
}

.legal-links a:hover {
  color: #21e7ff;
  border-color: rgba(33, 231, 255, .55);
}

.cookie-banner {
  position: fixed;
  z-index: 50;
  left: max(18px, calc((100vw - var(--container)) / 2));
  right: max(18px, calc((100vw - var(--container)) / 2));
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(236, 198, 109, .24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(33, 231, 255, .10), transparent 28%),
    linear-gradient(180deg, rgba(18, 10, 42, .96), rgba(8, 5, 24, .96));
  box-shadow: 0 20px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text strong {
  display: block;
  color: #f6efdf;
  font-size: 14px;
  margin-bottom: 5px;
}

.cookie-banner__text p {
  margin: 0;
  max-width: 820px;
  color: rgba(246, 239, 223, .66);
  font-size: 13px;
  line-height: 1.55;
}

.cookie-banner__text a {
  color: #21e7ff;
  font-weight: 800;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

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

.cookie-btn-ghost {
  color: #f2d99a;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(236, 198, 109, .24);
}

.cookie-btn-primary {
  color: #15051c;
  border: 0;
  background: linear-gradient(100deg, #21e7ff, #ff4fd3 58%, #ffd27f);
}

@media (max-width: 860px) {
  .legal-footer {
    grid-template-columns: 1fr;
  }

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

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }
}

/* === LEGAL FOOTER + COOKIE BANNER END === */
