.branding-page {
  --brand-core-blue: #0071ba;
  --brand-cad-red: #ed1c24;
  --brand-cms-orange: #ff671d;
  --brand-radio-blue: #4b5e81;
  --brand-store-green: #57cb33;
  --brand-navy-deep: #081522;
  --brand-navy-mid: #10263b;
  --brand-text: #e8f2ff;
  --brand-text-muted: #c3d7ea;
  --panel-dark: rgba(10, 26, 40, 0.84);
  --panel-border: rgba(126, 182, 235, 0.24);

  font-family: "Outfit", sans-serif;
  color: var(--brand-text);
  overflow-x: clip;
  background-color: #071420;
}

.branding-main {
  position: relative;
  padding-bottom: 5.5rem;
  overflow-x: clip;
  background: linear-gradient(180deg, #071420 0%, #0b1d2e 44%, #0d2338 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.branding-shell {
  max-width: 1120px;
  width: 100%;
}

.branding-hero {
  padding: 8.5rem 0 2.4rem;
}

.branding-overline {
  margin: 0 0 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9dc7f5;
}

.branding-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
}

.branding-subcopy {
  max-width: 760px;
  margin: 1.1rem 0 0;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--brand-text-muted);
}

.branding-note {
  margin: 0.7rem 0 0;
  max-width: 760px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #9dc7f5;
}

.branding-section {
  padding: 1.4rem 0;
}

.branding-heading h2 {
  margin: 0 0 1.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

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

.branding-message-grid > .branding-card:last-child {
  grid-column: 2;
}

.branding-card {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel-dark);
  backdrop-filter: blur(6px);
  padding: 1.3rem;
  min-height: 208px;
}

.branding-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.message-copy {
  margin-top: 0.75rem;
  border: 1px solid rgba(126, 182, 235, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.message-copy:first-of-type {
  margin-top: 0;
}

.message-copy:hover,
.message-copy:focus {
  transform: translateY(-2px);
  border-color: #9dc7f5;
  box-shadow: 0 0 0 2px rgba(157, 199, 245, 0.2);
  outline: none;
}

.message-copy-long {
  cursor: pointer;
}

.message-copy-long:hover,
.message-copy-long:focus {
  transform: none;
  border-color: rgba(126, 182, 235, 0.2);
  box-shadow: none;
}

.message-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9dc7f5;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.message-toggle:focus,
.message-toggle:focus-visible,
.message-copy-long:focus-within {
  outline: none;
  box-shadow: none;
}

.message-toggle::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
  color: #9dc7f5;
}

.message-copy-long.is-open .message-toggle::after {
  content: "-";
}

.message-copy-long .message-long {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.message-copy-long.is-open .message-long {
  max-height: 700px;
  opacity: 1;
  margin-top: 0.6rem;
  pointer-events: auto;
}

.message-copy-long .message-long.message-content {
  cursor: pointer;
  border-top: 0;
  padding-top: 0;
}

.message-copy-long.is-open .message-long.message-content {
  border-top: 1px solid rgba(126, 182, 235, 0.18);
  padding-top: 0.6rem;
}

.message-copy.is-copied {
  border-color: #66d18f;
  box-shadow: 0 0 0 2px rgba(102, 209, 143, 0.2);
}

.message-copy.copy-failed {
  border-color: #ed1c24;
  box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.2);
}

.message-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9dc7f5;
}

.branding-card .message-short {
  margin: 0;
  color: #dcecff;
  line-height: 1.6;
  font-weight: 600;
}

.branding-card .message-long p {
  margin: 0;
  color: var(--brand-text-muted);
  line-height: 1.62;
  font-size: 0.95rem;
}

.branding-card .message-long p + p {
  margin-top: 0.62rem;
}

.branding-card-cad h3 {
  color: var(--brand-cad-red);
}

.branding-card-cms h3 {
  color: var(--brand-cms-orange);
}

.branding-card-radio h3 {
  color: var(--brand-radio-blue);
}

.branding-card-store h3 {
  color: var(--brand-store-green);
}

.branding-card-software h3 {
  color: var(--brand-core-blue);
}

.logo-product {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel-dark);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.logo-product:last-child {
  margin-bottom: 0;
}

.logo-product h3 {
  margin: 0 0 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.logo-variants {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logo-preview {
  border-radius: 12px;
  border: 1px solid rgba(12, 24, 36, 0.2);
  padding: 0.85rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.logo-preview:hover,
.logo-preview:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(157, 199, 245, 0.2);
  outline: none;
}

.logo-preview.is-copied {
  border-color: #66d18f;
  box-shadow: 0 0 0 2px rgba(102, 209, 143, 0.2);
}

.logo-preview.copy-failed {
  border-color: #ed1c24;
  box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.2);
}

.logo-preview span {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-preview img {
  display: block;
  width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.logo-preview a {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.74rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #5f7c98;
  text-decoration: none;
}

.logo-preview a:hover {
  text-decoration: underline;
}

.logo-preview-light {
  background: #ffffff;
}

.logo-preview-light span {
  color: #18324d;
}

.logo-preview-dark {
  background: #000000;
  border-color: rgba(126, 182, 235, 0.3);
}

.logo-preview-dark:hover,
.logo-preview-dark:focus {
  border-color: #9dc7f5;
}

.logo-preview-dark span {
  color: #cae2fb;
}

.logo-preview-dark a {
  color: #a7c7e7;
}

.vector-download {
  margin: 0.95rem 0 0;
  font-size: 0.88rem;
  color: #b9cee3;
}

.vector-download a {
  color: #9dc7f5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.vector-download a:hover {
  text-decoration: underline;
}

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

.swatch-card {
  border: 1px solid var(--panel-border);
  background: var(--panel-dark);
  border-radius: 14px;
  padding: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.swatch-card:hover,
.swatch-card:focus {
  transform: translateY(-2px);
  border-color: #9dc7f5;
  box-shadow: 0 0 0 2px rgba(157, 199, 245, 0.2);
  outline: none;
}

.swatch-card.is-copied {
  border-color: #66d18f;
  box-shadow: 0 0 0 2px rgba(102, 209, 143, 0.2);
}

.swatch {
  display: block;
  width: 100%;
  height: 60px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.swatch-card h3 {
  margin: 0.72rem 0 0.32rem;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
}

.swatch-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #b9cee3;
  letter-spacing: 0.04em;
}

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

  .branding-message-grid > .branding-card:last-child {
    grid-column: auto;
  }

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

@media (max-width: 768px) {
  .branding-hero {
    padding-top: 7.5rem;
  }

  .branding-message-grid,
  .logo-variants,
  .swatch-grid {
    grid-template-columns: 1fr;
  }
}
