:root {
  --cw-forest: #10221c;
  --cw-olive: #2b4a37;
  --cw-moss: #6d8a76;
  --cw-gold: #b99457;
  --cw-sand: #efe7da;
  --cw-cream: #f8f4ee;
  --cw-charcoal: #131717;
  --cw-white: #ffffff;
  --cw-border: rgba(16, 34, 28, 0.12);
  --cw-shadow: 0 24px 70px rgba(6, 18, 13, 0.16);
  --cw-radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cw-charcoal);
  background: var(--cw-cream);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

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

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

.cw-home {
  position: relative;
  overflow-x: hidden;
}

.cw-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(185, 148, 87, 0.18), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(68, 99, 82, 0.2), transparent 25%),
    linear-gradient(180deg, #f8f4ee 0%, #f4ede2 50%, #f8f4ee 100%);
}

.cw-header {
  padding: 1.2rem 0;
}

.cw-logo {
  width: min(420px, 100%);
  height: auto;
}

.cw-logo-small {
  width: min(280px, 100%);
}

.cw-header-copy {
  font-size: 0.95rem;
  color: rgba(19, 23, 23, 0.8);
}

.cw-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-weight: 700;
}

.cw-nav-links a {
  color: var(--cw-charcoal);
}

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

.cw-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--cw-olive);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cw-hero {
  padding: 3rem 0 4rem;
}

.cw-hero h1,
.cw-section h2,
.cw-simple-card h1,
.portal-copy h1,
.portal-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.02em;
}

.cw-hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.9rem);
  line-height: 0.92;
  margin-bottom: 1.25rem;
  max-width: 12ch;
}

.cw-lead {
  font-size: 1.16rem;
  line-height: 1.8;
  max-width: 62ch;
  color: rgba(19, 23, 23, 0.84);
}

.cw-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-cw-primary,
.btn-cw-secondary {
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn-cw-primary {
  background: linear-gradient(135deg, var(--cw-forest), var(--cw-olive));
  color: var(--cw-white);
  box-shadow: 0 16px 35px rgba(16, 34, 28, 0.22);
}

.btn-cw-primary:hover,
.btn-cw-primary:focus {
  background: linear-gradient(135deg, #0f211b, #355341);
  color: var(--cw-white);
}

.btn-cw-secondary {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(16, 34, 28, 0.15);
  color: var(--cw-charcoal);
}

.btn-cw-secondary:hover,
.btn-cw-secondary:focus {
  background: rgba(255, 255, 255, 0.9);
  color: var(--cw-charcoal);
}

.cw-metrics {
  margin-top: 2.25rem;
}

.cw-metric-card,
.cw-feature-card,
.cw-process-card,
.cw-simple-card,
.portal-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
  backdrop-filter: blur(14px);
}

.cw-metric-card {
  padding: 1.3rem;
  min-height: 100%;
}

.cw-metric-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.cw-metric-card span {
  color: rgba(19, 23, 23, 0.76);
  line-height: 1.55;
}

.cw-hero-panel {
  overflow: hidden;
  border-radius: 36px;
  background: var(--cw-white);
  box-shadow: var(--cw-shadow);
}

.cw-hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cw-hero-panel-copy {
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 238, 0.96));
}

.cw-hero-panel-copy p:first-child {
  color: var(--cw-gold);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.cw-hero-panel-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.cw-section {
  padding: 2.5rem 0;
}

.cw-section-alt {
  padding-top: 0.25rem;
}

.cw-section-heading {
  margin-bottom: 2rem;
}

.cw-section h2 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.cw-feature-card,
.cw-process-card,
.cw-simple-card,
.portal-card,
.cw-contact-card {
  padding: 1.8rem;
}

.cw-feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.cw-feature-card p,
.cw-process-card li,
.portal-copy p,
.portal-card p,
.cw-simple-card p {
  color: rgba(19, 23, 23, 0.82);
  line-height: 1.75;
}

.cw-process-list,
.cw-tech-list {
  margin: 1.2rem 0 0;
  padding-left: 1.25rem;
}

.cw-process-list li,
.cw-tech-list li {
  margin-bottom: 1rem;
}

.cw-editorial-image {
  border-radius: 32px;
  box-shadow: var(--cw-shadow);
}

.cw-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  background: var(--cw-forest);
  color: var(--cw-white);
}

.cw-footer-copy {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.cw-footer a {
  color: rgba(255, 255, 255, 0.92);
}

.cw-footer a:hover {
  color: var(--cw-white);
}

.cw-contact-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
  backdrop-filter: blur(14px);
}

.cw-contact-card .form-label {
  font-weight: 700;
}

.cw-contact-card .form-control {
  border-radius: 22px;
  border: 1px solid rgba(16, 34, 28, 0.14);
  padding: 1rem 1.1rem;
}

.cw-privacy,
.cw-portal {
  background:
    radial-gradient(circle at top left, rgba(185, 148, 87, 0.18), transparent 22%),
    linear-gradient(180deg, #f6f2eb 0%, #f3ebdf 100%);
}

.cw-simple-shell,
.portal-shell {
  padding: 2rem 0 3rem;
}

.cw-simple-card {
  margin-top: 1.25rem;
}

.cw-simple-card h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.cw-text-link {
  font-weight: 700;
  color: var(--cw-olive);
}

.cw-text-link:hover {
  color: var(--cw-forest);
}

.portal-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.portal-hero {
  margin-bottom: 2rem;
}

.portal-copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin-bottom: 0.75rem;
}

.portal-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.portal-card .form-label,
.portal-card .form-check-label {
  font-weight: 700;
}

.portal-card .form-control {
  border-radius: 22px;
  border: 1px solid rgba(16, 34, 28, 0.14);
  padding: 1rem 1.1rem;
}

.portal-card .form-check-input {
  margin-top: 0.35rem;
}

.portal-guidance,
.portal-selection-status,
.portal-status,
.portal-destination,
.portal-list-item,
.portal-empty {
  border-radius: 22px;
  border: 1px solid rgba(16, 34, 28, 0.12);
  background: rgba(248, 244, 238, 0.92);
}

.portal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cw-olive);
}

.portal-guidance,
.portal-selection-status {
  padding: 0.85rem 1rem;
  color: rgba(19, 23, 23, 0.78);
  line-height: 1.6;
}

.portal-status-block {
  margin-top: 1rem;
  display: flex;
}

.portal-list {
  display: grid;
  gap: 1rem;
}

.portal-list-item,
.portal-empty {
  padding: 1.1rem 1.25rem;
}

.portal-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.portal-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  color: rgba(19, 23, 23, 0.72);
  font-size: 0.95rem;
}

.portal-list-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.portal-destination {
  padding: 1rem 1.1rem;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.portal-upload-queue {
  display: grid;
  gap: 0.85rem;
}

.portal-upload-item {
  border-radius: 22px;
  border: 1px solid rgba(16, 34, 28, 0.12);
  background: rgba(248, 244, 238, 0.92);
  padding: 1rem 1.05rem;
}

.portal-upload-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.portal-upload-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(16, 34, 28, 0.08);
  color: var(--cw-olive);
}

.portal-upload-badge--complete {
  background: rgba(43, 74, 55, 0.12);
}

.portal-upload-badge--failed,
.portal-upload-badge--canceled {
  background: rgba(185, 79, 57, 0.12);
  color: #8e3c2b;
}

.portal-progress {
  margin-top: 0.9rem;
  height: 10px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 34, 28, 0.08);
}

.portal-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cw-gold), var(--cw-olive));
  transition: width 0.2s ease;
}

.portal-footer-note {
  margin-top: 1.5rem;
  padding: 1rem 0.2rem 0;
  text-align: center;
  color: rgba(19, 23, 23, 0.74);
}

.cookie-banner {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: min(340px, calc(100vw - 2.4rem));
  padding: 1rem;
  border-radius: 22px;
  background: rgba(16, 34, 28, 0.94);
  color: var(--cw-white);
  box-shadow: var(--cw-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 50;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-banner.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

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

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

@media (max-width: 991px) {
  .cw-header-copy {
    text-align: left !important;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .cw-header {
    padding-top: 0.75rem;
  }

  .cw-hero {
    padding-top: 1rem;
  }

  .cw-hero h1,
  .portal-copy h1,
  .cw-section h2,
  .cw-simple-card h1 {
    line-height: 0.98;
  }

  .cw-cta-group,
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cw-nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .cw-feature-card,
  .cw-process-card,
  .cw-simple-card,
  .portal-card,
  .cw-contact-card {
    padding: 1.35rem;
  }

  .portal-header {
    margin-bottom: 1.4rem;
  }

  .portal-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .portal-card h2 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .portal-status,
  .portal-status-block {
    width: 100%;
  }

  .portal-upload-head {
    flex-direction: column;
  }

  .portal-list-item .btn,
  .cw-cta-group .btn,
  .cw-contact-card .btn {
    width: 100%;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
    width: auto;
  }
}

@media (max-width: 575px) {
  .cw-simple-shell,
  .portal-shell {
    padding: 1.2rem 0 2.25rem;
  }

  .cw-logo-small {
    width: min(220px, 100%);
  }

  .portal-list-item,
  .portal-empty,
  .portal-guidance,
  .portal-selection-status {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
