:root {
  --bg-0: #04050c;
  --bg-1: #090d1d;
  --bg-2: #121b3a;
  --sky: #7ec9ff;
  --lav: #c9b7ff;
  --purple: #6c4ee8;
  --white: #f6fbff;
  --text: #eef4ff;
  --muted: #b6c2e9;
  --line: rgba(226, 235, 255, 0.28);
  --glass: rgba(170, 191, 255, 0.14);
  --glass-strong: rgba(204, 220, 255, 0.2);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(126, 201, 255, 0.28) 0%, transparent 33%),
    radial-gradient(circle at 86% 12%, rgba(108, 78, 232, 0.34) 0%, transparent 38%),
    radial-gradient(circle at 76% 78%, rgba(201, 183, 255, 0.2) 0%, transparent 30%),
    linear-gradient(140deg, var(--bg-0), var(--bg-1) 38%, var(--bg-2));
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.page-loaded {
  opacity: 1;
}

main {
  position: relative;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 42% 58% 55% 45% / 37% 48% 52% 63%;
  filter: blur(44px);
  opacity: 0.75;
  will-change: transform;
}

.bg-shape-one {
  background: linear-gradient(145deg, rgba(126, 201, 255, 0.92), rgba(108, 78, 232, 0.5));
  width: 430px;
  height: 430px;
  top: -120px;
  left: -120px;
  animation: blobBounceOne 18s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.bg-shape-two {
  background: linear-gradient(145deg, rgba(201, 183, 255, 0.85), rgba(63, 103, 201, 0.55));
  width: 360px;
  height: 360px;
  right: -100px;
  top: 320px;
  animation: blobBounceTwo 16s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: 1.2s;
}

.container {
  width: min(1080px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(30px) saturate(165%);
  background: linear-gradient(180deg, rgba(8, 11, 22, 0.8), rgba(10, 18, 40, 0.52));
  border-bottom: 1px solid rgba(210, 227, 255, 0.23);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.45);
  z-index: 10;
  opacity: 0;
  transform: translateY(-22px);
}

body.page-loaded .site-header {
  animation: dropIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 0 22px rgba(201, 183, 255, 0.46);
  opacity: 0;
  transform: translateY(12px);
}

body.page-loaded .logo {
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-links li {
  opacity: 1;
  transform: translateY(0);
}

body:not(.page-loaded) .nav-links li {
  opacity: 0;
  transform: translateY(8px);
}

body.page-loaded .nav-links li:nth-child(1) { animation: fadeUp 0.5s ease 0.45s forwards; }
body.page-loaded .nav-links li:nth-child(2) { animation: fadeUp 0.5s ease 0.52s forwards; }
body.page-loaded .nav-links li:nth-child(3) { animation: fadeUp 0.5s ease 0.59s forwards; }
body.page-loaded .nav-links li:nth-child(4) { animation: fadeUp 0.5s ease 0.66s forwards; }
body.page-loaded .nav-links li:nth-child(5) { animation: fadeUp 0.5s ease 0.73s forwards; }
body.page-loaded .nav-links li:nth-child(6) { animation: fadeUp 0.5s ease 0.8s forwards; }
body.page-loaded .nav-links li:nth-child(7) { animation: fadeUp 0.5s ease 0.87s forwards; }

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links a:hover {
  color: var(--white);
  text-shadow: 0 0 14px rgba(126, 201, 255, 0.55);
}

.nav-links a.active {
  color: var(--white);
  text-shadow: 0 0 16px rgba(201, 183, 255, 0.72);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(229, 238, 255, 0.8);
  background:
    linear-gradient(130deg, rgba(126, 201, 255, 0.38), rgba(108, 78, 232, 0.3) 55%, rgba(201, 183, 255, 0.44));
  backdrop-filter: blur(24px) saturate(165%);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 28px rgba(108, 78, 232, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  background:
    linear-gradient(130deg, rgba(146, 216, 255, 0.5), rgba(121, 92, 237, 0.42) 55%, rgba(214, 197, 255, 0.52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 14px 34px rgba(108, 78, 232, 0.45);
}

.btn-ghost {
  border-color: rgba(215, 225, 255, 0.38);
  background: rgba(163, 177, 255, 0.08);
  color: #eaf0ff;
}

.btn-ghost:hover {
  background: rgba(180, 193, 255, 0.18);
}

.hero {
  padding: 6.4rem 0 3.2rem;
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-hero {
  padding: 6rem 0 2.2rem;
}

.page-title {
  margin-top: 0.8rem;
  font-size: clamp(2.2rem, 8.2vw, 5rem);
  letter-spacing: -0.02em;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(16px);
}

.hero-orb-one {
  width: 320px;
  height: 320px;
  top: 4%;
  right: 9%;
  background: radial-gradient(circle at 32% 32%, rgba(214, 229, 255, 0.6), rgba(108, 78, 232, 0.18));
  animation: pulseFloat 7s ease-in-out infinite;
}

.hero-orb-two {
  width: 190px;
  height: 190px;
  bottom: 10%;
  left: 5%;
  background: radial-gradient(circle at 35% 35%, rgba(126, 201, 255, 0.4), rgba(201, 183, 255, 0.12));
  animation: pulseFloat 6s ease-in-out infinite reverse;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--lav);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero .eyebrow,
.hero-copy,
.hero-actions,
.hero-stats {
  opacity: 0;
  transform: translateY(24px);
}

body.page-loaded .hero .eyebrow { animation: fadeUp 0.7s ease 0.82s forwards; }
body.page-loaded .hero-copy { animation: fadeUp 0.8s ease 1.15s forwards; }
body.page-loaded .hero-actions { animation: fadeUp 0.8s ease 1.28s forwards; }
body.page-loaded .hero-stats { animation: popGlass 0.85s cubic-bezier(0.2, 1, 0.2, 1) 1.42s forwards; }

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.08;
}

.hero-title {
  margin-top: 0.8rem;
  font-size: clamp(3rem, 10.6vw, 7.5rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title span,
.page-title {
  background: linear-gradient(110deg, #ffffff 10%, #d7e6ff 34%, #c9b7ff 60%, #8ccfff 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(152, 146, 255, 0.18);
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(56px) scale(0.98);
  filter: blur(8px);
}

body.page-loaded .hero-title span:nth-child(1) { animation: titleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards; }
body.page-loaded .hero-title span:nth-child(2) { animation: titleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.09s forwards; }
body.page-loaded .hero-title span:nth-child(3) { animation: titleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.23s forwards; }

.hero-copy {
  margin-top: 1.2rem;
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-stats {
  margin-top: 2.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(176, 198, 255, 0.2), rgba(137, 153, 255, 0.1));
  backdrop-filter: blur(30px) saturate(170%);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.hero-stats article {
  padding: 1.2rem;
  opacity: 0;
  transform: translateY(16px);
}

body.page-loaded .hero-stats article:nth-child(1) { animation: fadeUp 0.65s ease 1.56s forwards; }
body.page-loaded .hero-stats article:nth-child(2) { animation: fadeUp 0.65s ease 1.68s forwards; }
body.page-loaded .hero-stats article:nth-child(3) { animation: fadeUp 0.65s ease 1.8s forwards; }

.hero-stats article:not(:last-child) {
  border-right: 1px solid rgba(226, 235, 255, 0.18);
}

.hero-stats h3 {
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 0 1px 16px rgba(178, 202, 255, 0.4);
}

.stat-value {
  display: inline-block;
  animation: shimmer 2.8s ease-in-out 2.1s infinite;
}

.hero-stats p {
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding: 2.8rem 0;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.project,
.cta {
  background:
    linear-gradient(165deg, rgba(175, 194, 255, 0.2), rgba(112, 123, 234, 0.08));
  border: 1px solid rgba(220, 232, 255, 0.25);
  border-radius: 16px;
  padding: 1.2rem;
  backdrop-filter: blur(28px) saturate(172%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  position: relative;
  overflow: hidden;
}

.card::before,
.project::before,
.cta::before {
  content: "";
  position: absolute;
  top: -68%;
  left: -12%;
  width: 150%;
  height: 70%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.card h3,
.project h3 {
  font-size: 1.15rem;
}

.card h3 a {
  color: var(--white);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.card p,
.project p,
.about-copy,
.cta p {
  color: var(--muted);
  margin-top: 0.6rem;
}

.about-copy {
  max-width: 70ch;
}

.cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.cta .btn {
  margin-top: 1rem;
}

.cta a {
  color: var(--white);
}

.item-price {
  color: var(--white);
  font-weight: 700;
  margin-top: 0.7rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.admin-card h3 {
  margin-bottom: 0.5rem;
}

.admin-textarea {
  width: 100%;
  min-height: 190px;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(220, 232, 255, 0.3);
  background: rgba(7, 12, 27, 0.55);
  color: var(--white);
  padding: 0.85rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-status {
  color: var(--muted);
}
.site-footer {
  padding: 2.2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.top-gap {
  margin-top: 1rem;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(56px) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes popGlass {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
  0%, 100% { text-shadow: 0 1px 10px rgba(172, 202, 255, 0.25); }
  50% { text-shadow: 0 1px 20px rgba(201, 183, 255, 0.72); }
}

@keyframes blobBounceOne {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  20% {
    transform: translate3d(18vw, 9vh, 0) scale(1.06);
  }
  40% {
    transform: translate3d(34vw, -8vh, 0) scale(0.98);
  }
  60% {
    transform: translate3d(14vw, 22vh, 0) scale(1.08);
  }
  80% {
    transform: translate3d(-6vw, 10vh, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes blobBounceTwo {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  18% {
    transform: translate3d(-14vw, -8vh, 0) scale(1.04);
  }
  38% {
    transform: translate3d(-30vw, 10vh, 0) scale(0.96);
  }
  58% {
    transform: translate3d(-12vw, 24vh, 0) scale(1.08);
  }
  78% {
    transform: translate3d(8vw, 6vh, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes pulseFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}

@media (max-width: 900px) {
  .grid.three,
  .grid.two,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 235, 255, 0.2);
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4.6rem);
  }
}


.home-format {
  padding: 6.2rem 0 3rem;
  max-width: 900px;
}

.home-title {
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
  background: linear-gradient(110deg, #ffffff 10%, #d7e6ff 34%, #c9b7ff 60%, #8ccfff 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-tagline {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  margin-bottom: 2rem;
}

.home-block {
  margin-top: 1.8rem;
}

.home-block h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.15rem, 3.6vw, 1.6rem);
}

.box-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.box-list.one-col {
  grid-template-columns: 1fr;
}

.box-list.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.placeholder-box {
  height: 66px;
  border-radius: 14px;
  border: 1px solid rgba(226, 235, 255, 0.28);
  background:
    linear-gradient(155deg, rgba(176, 198, 255, 0.2), rgba(137, 153, 255, 0.1));
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  position: relative;
  overflow: hidden;
}

.placeholder-box::before {
  content: "";
  position: absolute;
  top: -62%;
  left: -12%;
  width: 150%;
  height: 68%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(-8deg);
}

.placeholder-box.short {
  height: 54px;
  width: min(72%, 640px);
}



@media (max-width: 760px) {
  .placeholder-box.short {
    width: 100%;
  }

  .box-list.two-col {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}



.home-section-title {
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  font-family: "Sora", sans-serif;
}

.feature-stack,
.collection-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid rgba(230, 238, 255, 0.26);
  border-bottom: 1px solid rgba(230, 238, 255, 0.26);
  padding: 0.95rem 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: stretch;
  border: 1px solid rgba(220, 232, 255, 0.24);
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(165deg, rgba(175, 194, 255, 0.14), rgba(112, 123, 234, 0.06));
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.feature-row.compact {
  grid-template-columns: 155px 1fr;
}

.feature-media {
  border-radius: 10px;
  border: 1px solid rgba(226, 235, 255, 0.28);
  min-height: 112px;
  background:
    linear-gradient(150deg, rgba(196, 217, 255, 0.18), rgba(109, 127, 255, 0.08));
  position: relative;
  overflow: hidden;
}

.feature-media::after {
  content: "Image";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(240, 246, 255, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.feature-media.compact {
  min-height: 92px;
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-title {
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  color: var(--white);
  margin-bottom: 0.35rem;
}

.feature-content p {
  color: var(--muted);
  margin: 0;
}

.who-block {
  border-top: 1px solid rgba(230, 238, 255, 0.26);
  border-bottom: 1px solid rgba(230, 238, 255, 0.26);
  padding: 0.9rem 0;
}

.who-block p + p {
  margin-top: 0.5rem;
}

.contact-strip {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(230, 238, 255, 0.26);
  padding-top: 1rem;
}

@media (max-width: 760px) {
  .feature-row,
  .feature-row.compact {
    grid-template-columns: 1fr;
  }

  .feature-media,
  .feature-media.compact {
    min-height: 130px;
  }

  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.feature-media.has-image {
  background-size: cover;
  background-position: center;
}

.feature-media.has-image::after {
  content: "";
}

.editor-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.editor-card {
  padding: 1rem;
}

.editor-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.7rem;
}

.editor-input,
.editor-textarea {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(220, 232, 255, 0.3);
  background: rgba(7, 12, 27, 0.55);
  color: var(--white);
  padding: 0.62rem 0.68rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.editor-textarea {
  min-height: 84px;
  resize: vertical;
}

@media (max-width: 1100px) {
  .editor-shell {
    grid-template-columns: 1fr;
  }
}

.portal-selector-wrap {
  max-width: 320px;
  margin-bottom: 1rem;
}

.editor-select {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(220, 232, 255, 0.3);
  background: rgba(7, 12, 27, 0.55);
  color: var(--white);
  padding: 0.62rem 0.68rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.portal-hidden {
  display: none;
}

.projects-editor-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-editor-item {
  border: 1px solid rgba(220, 232, 255, 0.24);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(16, 22, 46, 0.42);
}

.project-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-editor-head h4 {
  font-size: 1rem;
  color: var(--white);
}

.project-remove {
  padding: 0.42rem 0.62rem;
  font-size: 0.8rem;
}

.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: start;
}

.portal-sidebar {
  position: sticky;
  top: 92px;
}

.portal-page-btn {
  width: 100%;
  text-align: left;
  margin-top: 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(220, 232, 255, 0.24);
  background: rgba(16, 22, 46, 0.42);
  color: var(--white);
  padding: 0.65rem 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.portal-page-btn.active {
  background: linear-gradient(130deg, rgba(126, 201, 255, 0.28), rgba(108, 78, 232, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.portal-main {
  min-width: 0;
}

@media (max-width: 1000px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }
}

.portal-panel { display: none; }
.portal-panel.is-active { display: block; }
.portal-current-page { color: var(--muted); margin-bottom: 0.7rem; }


:is(.feature-row, .card, .project, .cta, .project-editor-item, .placeholder-box) {
  position: relative;
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

:is(.feature-row, .card, .project, .cta, .project-editor-item, .placeholder-box):hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 16px 38px rgba(108, 78, 232, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

:is(.feature-row, .card, .project, .cta, .project-editor-item, .placeholder-box)::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, transparent, rgba(214, 240, 255, 0.95), transparent) 0 0 / 36px 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(214, 240, 255, 0.95), transparent) 100% 0 / 1px 36px no-repeat,
    linear-gradient(270deg, transparent, rgba(214, 240, 255, 0.95), transparent) 100% 100% / 36px 1px no-repeat,
    linear-gradient(0deg, transparent, rgba(214, 240, 255, 0.95), transparent) 0 100% / 1px 36px no-repeat;
}

:is(.feature-row, .card, .project, .cta, .project-editor-item, .placeholder-box):hover::after {
  opacity: 1;
}



.auth-card {
  max-width: 620px;
  margin: 0 auto;
}

.auth-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.auth-provider-btn {
  justify-content: flex-start;
  gap: 0.72rem;
  min-height: 56px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.76rem 1rem;
}

.auth-logo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.auth-logo svg {
  width: 24px;
  height: 24px;
  display: block;
}

.auth-discord {
  border-color: rgba(182, 192, 255, 0.72);
  background: linear-gradient(130deg, rgba(95, 120, 255, 0.58), rgba(95, 100, 233, 0.46));
}

.auth-discord:hover {
  background: linear-gradient(130deg, rgba(115, 140, 255, 0.65), rgba(117, 124, 245, 0.55));
}

.auth-google {
  border-color: rgba(232, 238, 255, 0.85);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 255, 0.84));
  color: #1f2a44;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 24px rgba(40, 56, 98, 0.22);
}

.auth-google:hover {
  background: linear-gradient(130deg, rgba(255, 255, 255, 1), rgba(246, 250, 255, 0.95));
  color: #162035;
}

#logout-btn {
  justify-self: start;
}

.price-tier-list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
  margin-bottom: 0.75rem;
}

.price-tier-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(220, 232, 255, 0.2);
  border-radius: 10px;
  padding: 0.42rem 0.58rem;
  background: rgba(12, 20, 44, 0.45);
}

.price-tier-list li span {
  color: var(--muted);
}

.price-tier-list li strong {
  color: var(--white);
}

.item-action-wrap {
  margin-top: 0.8rem;
}

.item-action {
  min-height: 40px;
}

.team-meta {
  margin-top: 0.6rem;
  color: var(--lav);
  font-size: 0.92rem;
}

.team-meta span {
  color: var(--white);
  font-weight: 600;
}

.editor-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.price-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.price-editor-box {
  border: 1px solid rgba(220, 232, 255, 0.24);
  border-radius: 10px;
  padding: 0.62rem;
  background: rgba(10, 16, 35, 0.55);
}

.price-editor-box h5 {
  font-size: 0.84rem;
  color: var(--lav);
}

.about-text-card {
  max-width: 920px;
}

@media (max-width: 900px) {
  .editor-two-col,
  .price-editor-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Arcynex UI Polish Layer (structure-safe overrides) --- */

.about-text-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1rem, 2.8vw, 1.6rem);
  border-radius: 18px;
  border: 1px solid rgba(222, 235, 255, 0.3);
  background:
    radial-gradient(circle at 14% 14%, rgba(174, 214, 255, 0.16), transparent 40%),
    linear-gradient(155deg, rgba(185, 205, 255, 0.18), rgba(101, 113, 220, 0.08));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.about-text-card .about-copy {
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  line-height: 1.72;
  color: #e8efff;
  max-width: 74ch;
}

.page-title {
  text-wrap: balance;
}

.hero-copy,
.about-copy,
.card p,
.project p,
.feature-content p {
  text-wrap: pretty;
}

@media (hover: none) {
  :is(.feature-row, .card, .project, .cta, .project-editor-item, .placeholder-box):hover {
    transform: none;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  :is(.feature-row, .card, .project, .cta, .project-editor-item, .placeholder-box):hover::after {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .container {
    width: min(1080px, calc(100% - 1.25rem));
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 0.55rem;
    padding-bottom: 0.6rem;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-links {
    display: flex;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.55rem;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.66rem;
    border-radius: 999px;
    border: 1px solid rgba(210, 226, 255, 0.2);
    background: rgba(164, 182, 245, 0.1);
    font-size: 0.84rem;
  }

  .hero,
  .home-format,
  .page-hero {
    padding-top: 5.25rem;
  }

  .page-title {
    font-size: clamp(1.9rem, 9vw, 3.1rem);
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 0.97rem;
  }

  .feature-row,
  .feature-row.compact {
    grid-template-columns: 1fr;
    gap: 0.72rem;
    padding: 0.72rem;
  }

  .feature-media,
  .feature-media.compact {
    min-height: 120px;
  }

  .feature-title {
    font-size: clamp(1.08rem, 5.4vw, 1.44rem);
  }

  .price-tier-list li {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .auth-provider-btn {
    min-height: 52px;
    font-size: 0.95rem;
    padding: 0.68rem 0.85rem;
  }

  .portal-layout {
    gap: 0.72rem;
  }

  .portal-page-btn {
    margin-top: 0.42rem;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: flex !important;
  }

  .hero {
    min-height: auto;
    padding-bottom: 2.2rem;
  }

  .hero-title {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .hero-stats {
    border-radius: 14px;
  }

  .section {
    padding: 2rem 0;
  }

  .card,
  .project,
  .cta,
  .project-editor-item {
    border-radius: 14px;
    padding: 0.9rem;
  }

  .about-text-card {
    padding: 0.95rem;
    border-radius: 14px;
  }

  .bg-shape {
    filter: blur(74px) brightness(0.58) saturate(0.7);
    opacity: 0.18;
  }

  .bg-shape-one,
  .bg-shape-two {
    animation-duration: 34s;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 760px) {
  body.page-loaded .nav-links li,
  body.page-loaded .logo,
  body.page-loaded .hero .eyebrow,
  body.page-loaded .hero-copy,
  body.page-loaded .hero-actions,
  body.page-loaded .hero-stats,
  body.page-loaded .hero-title span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .stat-value {
    animation: none;
  }
}

/* Mobile readability hard-fix */
@media (max-width: 900px) {
  body {
    opacity: 1 !important;
  }

  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero .eyebrow,
  .hero-copy,
  .hero-actions,
  .hero-stats,
  .hero-title span,
  .site-header,
  .logo,
  .nav-links li {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .home-title,
  .page-title {
    text-shadow: 0 1px 10px rgba(108, 78, 232, 0.2);
  }

  .hero-copy,
  .home-tagline,
  .feature-content p,
  .about-copy,
  .who-block p {
    color: #d4defa !important;
  }
}
