@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --paper: #f7efe3;
  --paper-warm: #fff7ee;
  --ink: #17120f;
  --ink-soft: #544540;
  --line: rgba(23, 18, 15, 0.1);
  --panel: rgba(255, 248, 238, 0.86);
  --panel-strong: rgba(255, 248, 238, 0.96);
  --panel-contrast: linear-gradient(145deg, rgba(28, 22, 18, 0.96), rgba(60, 33, 24, 0.92));
  --hot: #dc5032;
  --hot-deep: #aa2f1c;
  --hot-soft: #ff9964;
  --sun: #f8bf56;
  --pool: #1f9eb2;
  --pool-soft: #9be6ef;
  --shadow: 0 22px 60px rgba(55, 31, 22, 0.12);
  --shadow-strong: 0 28px 76px rgba(42, 16, 10, 0.18);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 12%, rgba(220, 80, 50, 0.22), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(248, 191, 86, 0.3), transparent 28%),
    radial-gradient(circle at 82% 36%, rgba(31, 158, 178, 0.14), transparent 20%),
    linear-gradient(180deg, #fff4e8 0%, #f7efe3 45%, #f9f4ec 100%);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(23, 18, 15, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 18, 15, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 88%);
}

body::after {
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.46), transparent 18%),
    radial-gradient(circle at 88% 34%, rgba(255, 255, 255, 0.3), transparent 16%);
  opacity: 0.8;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
  z-index: 1;
}

.topbar,
.hero-panel,
.hero-side-card,
.feature-card,
.feature-card--lead,
.private-shell,
.private-card,
.private-aside,
.studio-card,
.viewer-card,
.site-footer,
.modal-panel,
.toast {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar,
.hero-panel,
.private-shell,
.site-footer,
.modal-panel {
  border-radius: var(--radius-xl);
}

.hero-side-card,
.feature-card,
.feature-card--lead,
.private-card,
.private-aside,
.studio-card,
.viewer-card,
.toast {
  border-radius: var(--radius-lg);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  margin-bottom: 22px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 248, 238, 0.8);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand-mark,
h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
}

.brand-mark {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
}

.topbar-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.topbar-actions,
.hero-actions,
.status-row,
.signal-strip,
.studio-inline-actions,
.collaborator-meta,
.collaborator-list,
.notes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--solid {
  color: #fff7f1;
  background: linear-gradient(135deg, var(--hot), var(--hot-soft));
  box-shadow: 0 18px 36px rgba(220, 80, 50, 0.22);
}

.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(23, 18, 15, 0.14);
}

.button--ink {
  color: #fff9f1;
  background: linear-gradient(135deg, #251914, #493228);
  box-shadow: 0 16px 34px rgba(39, 25, 20, 0.16);
}

.button--full {
  width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hot-deep);
}

.eyebrow--small {
  font-size: 0.72rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: 22px;
  padding: 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 152, 91, 0.26), transparent 26%),
    radial-gradient(circle at 100% 10%, rgba(31, 158, 178, 0.12), transparent 18%),
    linear-gradient(160deg, rgba(255, 250, 242, 0.94), rgba(255, 245, 233, 0.82));
}

.hero-panel::after {
  content: "CLITZ";
  position: absolute;
  right: -20px;
  bottom: -18px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4.4rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  color: rgba(23, 18, 15, 0.05);
  pointer-events: none;
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 9.3ch;
}

.hero-description,
.updated-meta,
.field span,
.card-copy,
.private-copy,
.viewer-copy,
.modal-copy,
.demo-copy,
.form-message,
.hero-side-card p,
.notes-list li,
.collaborator-item p,
.site-footer p {
  color: var(--ink-soft);
}

.hero-description {
  max-width: 62ch;
  margin: 0 0 24px;
  font-size: 1.06rem;
  line-height: 1.8;
}

.status-chip,
.signal-pill,
.access-pill,
.collaborator-access {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 18, 15, 0.1);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip--hot,
.access-pill--owner,
.collaborator-access--owner {
  color: #fff8f1;
  background: linear-gradient(135deg, var(--hot-deep), var(--hot));
  border-color: transparent;
}

.access-pill--editor,
.collaborator-access--editor {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(248, 191, 86, 0.85), rgba(255, 213, 132, 0.95));
}

.access-pill--viewer,
.collaborator-access--viewer {
  color: #fff;
  background: linear-gradient(135deg, rgba(31, 158, 178, 0.86), rgba(80, 197, 207, 0.96));
  border-color: transparent;
}

.signal-strip {
  margin-top: 26px;
}

.signal-pill {
  background: rgba(255, 250, 242, 0.86);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-side-card {
  padding: 22px;
  background: rgba(255, 250, 242, 0.84);
}

.hero-side-card--contrast {
  color: #fff8f1;
  background: var(--panel-contrast);
  box-shadow: var(--shadow-strong);
}

.hero-side-card--contrast .eyebrow,
.hero-side-card--contrast p {
  color: rgba(255, 243, 232, 0.78);
}

.hero-side-card h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 0.95;
}

.notes-list {
  padding: 0;
  margin: 0;
  list-style: none;
  flex-direction: column;
}

.notes-list li {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(23, 18, 15, 0.08);
}

.feature-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.feature-card--lead {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: rgba(255, 250, 242, 0.84);
}

.feature-card::before,
.feature-card--lead::before,
.private-card::before,
.private-aside::before,
.studio-card::before,
.viewer-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.feature-card--lead {
  grid-column: span 2;
  background: linear-gradient(160deg, rgba(30, 21, 17, 0.96), rgba(76, 40, 27, 0.92));
  color: #fff8ef;
  box-shadow: var(--shadow-strong);
}

.feature-card--lead .eyebrow,
.feature-card--lead .card-copy {
  color: rgba(255, 243, 232, 0.72);
}

.feature-card h2,
.feature-card--lead h2,
.private-card h3,
.private-aside h3,
.studio-card h3,
.viewer-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1;
}

.card-copy,
.private-copy,
.viewer-copy {
  margin: 0;
  line-height: 1.75;
}

.private-stage {
  margin-top: 24px;
}

.private-shell {
  padding: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 158, 178, 0.08), transparent 18%),
    linear-gradient(165deg, rgba(255, 248, 238, 0.96), rgba(255, 243, 232, 0.9));
}

.private-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.private-heading h2,
.studio-heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 0.96;
}

.private-shell__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr);
  gap: 18px;
}

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

.private-card,
.private-aside,
.studio-card,
.viewer-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: rgba(255, 250, 242, 0.8);
}

.private-card--locked {
  min-height: 240px;
  background: linear-gradient(155deg, rgba(37, 25, 20, 0.94), rgba(78, 49, 33, 0.9));
  color: #fff7ef;
}

.private-card--locked .private-copy,
.private-card--locked .eyebrow {
  color: rgba(255, 243, 232, 0.76);
}

.private-card--ghost {
  position: relative;
}

.private-card--ghost::after {
  content: "preview locked";
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
}

.private-card--ghost .private-copy {
  filter: blur(5px);
  user-select: none;
}

.private-aside ul,
.studio-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.studio-grid {
  margin-top: 24px;
}

.studio-shell {
  display: grid;
  gap: 18px;
}

.studio-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
}

.studio-card h3 {
  font-size: 1.65rem;
}

.studio-form,
.collaborator-form,
.viewer-status {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(23, 18, 15, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  resize: vertical;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

.field textarea {
  min-height: 112px;
}

.field-hint {
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

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

.collaborator-list {
  flex-direction: column;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.collaborator-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 18, 15, 0.08);
}

.collaborator-item h4 {
  margin: 0;
  font-size: 1rem;
}

.collaborator-item p {
  margin: 0;
  font-size: 0.94rem;
}

.viewer-card {
  background: linear-gradient(160deg, rgba(255, 250, 242, 0.92), rgba(248, 240, 229, 0.84));
}

.site-footer {
  margin-top: 24px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  background: rgba(255, 249, 241, 0.82);
}

.site-footer p {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.modal.is-hidden,
.toast.is-hidden,
.demo-shell.is-hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 15, 0.34);
  backdrop-filter: blur(7px);
}

.modal-panel {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  margin: min(8vh, 64px) auto 0;
  padding: 28px;
  background: linear-gradient(160deg, rgba(255, 248, 238, 0.98), rgba(255, 244, 233, 0.96));
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(23, 18, 15, 0.08);
  color: var(--ink);
  font-size: 1.4rem;
}

.modal-panel h2 {
  margin: 0 0 12px;
  font-size: 2.3rem;
  line-height: 0.96;
}

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

.form-message {
  min-height: 1.5rem;
  margin: 14px 0 0;
}

.demo-shell {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 18, 15, 0.09);
}

.demo-header {
  display: grid;
  gap: 8px;
}

.demo-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.demo-account {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(23, 18, 15, 0.08);
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.demo-account strong,
.demo-account span {
  display: block;
}

.demo-account strong {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.demo-account span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(420px, calc(100vw - 36px));
  max-width: 520px;
  padding: 16px 18px;
  background: rgba(255, 248, 238, 0.96);
}

.toast-close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
}

.rise-in {
  animation: rise-in 0.7s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card--lead {
    grid-column: span 2;
  }

  .private-shell__grid,
  .studio-layout,
  .hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100vw - 20px, 100%);
    padding: 14px 0 32px;
  }

  .topbar,
  .hero-panel,
  .private-shell,
  .modal-panel {
    padding: 20px;
  }

  .topbar,
  .private-heading,
  .studio-heading,
  .site-footer {
    align-items: flex-start;
  }

  .feature-grid,
  .private-card-grid,
  .studio-columns {
    grid-template-columns: 1fr;
  }

  .feature-card--lead {
    grid-column: auto;
  }

  .hero-copy h1,
  .private-heading h2,
  .studio-heading h2 {
    max-width: 11ch;
  }

  .toast {
    right: 10px;
    left: 10px;
    min-width: auto;
  }
}
