:root {
  --ink: #17212b;
  --muted: #627082;
  --paper: #fffaf2;
  --panel: #ffffff;
  --teal: #0d9488;
  --deep-teal: #0f5f63;
  --coral: #ff5f57;
  --gold: #f4b942;
  --violet: #7c5cff;
  --line: rgba(23, 33, 43, 0.14);
  --shadow: 0 22px 70px rgba(23, 33, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(244, 185, 66, 0.24), transparent 30%),
    linear-gradient(135deg, #fffaf2 0%, #f5fbff 42%, #fff4ef 100%);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--deep-teal), var(--violet));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.nav-links {
  gap: clamp(12px, 2vw, 28px);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 48px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--deep-teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.64);
  border-color: var(--line);
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.visual-board {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52)),
    conic-gradient(from 30deg, var(--teal), var(--gold), var(--coral), var(--violet), var(--teal));
  box-shadow: var(--shadow);
}

.visual-board::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 16deg, rgba(255, 255, 255, 0.8) 0 10deg, rgba(255, 255, 255, 0.18) 10deg 24deg),
    radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.12) 62%, transparent 64%);
  transform: rotate(-10deg);
}

.swatch,
.note-card,
.project-strip {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 33, 43, 0.2);
}

.swatch {
  width: 34%;
  height: 20%;
  border: 10px solid rgba(255, 255, 255, 0.72);
}

.swatch.coral {
  right: 8%;
  top: 12%;
  background: var(--coral);
  transform: rotate(9deg);
}

.swatch.gold {
  left: 10%;
  bottom: 16%;
  background: var(--gold);
  transform: rotate(-8deg);
}

.swatch.teal {
  right: 15%;
  bottom: 8%;
  background: var(--teal);
  transform: rotate(4deg);
}

.note-card {
  left: 9%;
  top: 14%;
  width: 210px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.note-card.light {
  right: 9%;
  top: 45%;
  left: auto;
  width: 190px;
}

.note-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.note-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.8rem;
}

.project-strip {
  left: 18%;
  right: 18%;
  bottom: 27%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background: rgba(23, 33, 43, 0.82);
}

.project-strip span {
  aspect-ratio: 1.2 / 1;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 185, 66, 0.8));
}

.domain-band,
.section-grid,
.resource-section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.domain-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
}

.domain-band article {
  min-height: 220px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--panel);
}

.domain-band h2 {
  margin: 18px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

.domain-band p,
.feature p,
.resource-section p {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.status.live {
  background: var(--teal);
}

.status.registered {
  background: var(--coral);
}

.status.workspace {
  background: var(--violet);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 62px);
  background: #fff;
}

.section-heading {
  position: sticky;
  top: 104px;
  align-self: start;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(13, 148, 136, 0.08), transparent 42%),
    #fff;
}

.feature-number {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 950;
}

.resource-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  background: linear-gradient(135deg, #102229 0%, #132f2f 48%, #221d34 100%);
  color: white;
}

.resource-section .eyebrow,
.resource-section p {
  color: rgba(255, 255, 255, 0.76);
}

.resource-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.resource-table > div {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.4fr;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.resource-table > div:last-child {
  border-bottom: 0;
}

.table-head {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.feature-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--deep-teal);
  font-weight: 900;
  text-decoration: none;
}

.portal-hero {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px) 34px;
}

.portal-hero > div {
  max-width: 980px;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 4vw, 42px);
  padding: 22px clamp(18px, 5vw, 72px) clamp(48px, 8vw, 96px);
}

.upload-panel,
.archive-panel {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 50px rgba(23, 33, 43, 0.08);
}

.upload-panel {
  display: grid;
  gap: 18px;
  align-self: start;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font: inherit;
}

.collection-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.drop-zone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  color: var(--muted);
  border: 1px dashed rgba(15, 95, 99, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.09), rgba(124, 92, 255, 0.09)),
    rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: center;
}

.drop-zone input {
  width: 100%;
  max-width: 300px;
}

.drop-zone span {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status[data-tone="success"] {
  color: var(--teal);
}

.form-status[data-tone="warn"] {
  color: var(--coral);
}

.archive-panel {
  display: grid;
  gap: 22px;
}

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.chip.is-active,
.favorite-button.is-favorite {
  color: white;
  background: var(--coral);
  border-color: transparent;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.image-tile,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.image-tile {
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.image-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef3f4;
}

.image-tile div {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.image-tile span,
.image-tile small {
  display: block;
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-tile small {
  color: var(--muted);
  font-size: 0.75rem;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section-grid,
  .resource-section,
  .domain-band,
  .upload-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .section-heading {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .collection-create {
    grid-template-columns: 1fr;
  }

  .note-card {
    width: 170px;
  }

  .note-card.light {
    width: 150px;
  }

  .note-card strong {
    font-size: 1.35rem;
  }

  .resource-table > div {
    grid-template-columns: 1fr;
  }
}
