:root {
  --ink: #171717;
  --soft-ink: #55514d;
  --paper: #f8f7f4;
  --panel: #ffffff;
  --line: #ded8ce;
  --amber: #ff7a14;
  --amber-deep: #c74d05;
  --graphite: #262320;
  --mist: #ece7df;
  --green: #42675d;
  --shadow: 0 22px 70px rgba(28, 24, 20, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

body:has(.quote-modal[open]),
body:has(.modal[open]),
body:has(.admin-modal[open]) {
  overflow: hidden;
}

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

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

.site-header {
  align-items: center;
  background: rgba(248, 247, 244, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222, 216, 206, 0.72);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.header-menu {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  min-width: 0;
}

.brand img {
  display: block;
  height: 54px;
  object-fit: contain;
  width: 126px;
}

.main-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(222, 216, 206, 0.8);
  border-radius: 999px;
  display: flex;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  padding: 5px;
  width: max-content;
  justify-self: center;
}

.main-nav a {
  border-radius: 999px;
  color: var(--soft-ink);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 10px 13px;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.main-nav a:hover {
  background: #171411;
  color: #fff;
  transform: translateY(-1px);
}

.header-actions,
.hero-actions,
.product-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.header-actions {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(222, 216, 206, 0.74);
  border-radius: 999px;
  flex-wrap: nowrap;
  padding: 5px;
}

.mobile-actions-toggle {
  display: none;
}

.solid-button,
.ghost-button {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  padding: 12px 17px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.solid-button {
  background: var(--amber);
  color: #16120e;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost-button.light {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.solid-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes quote-pulse {
  0%,
  100% {
    box-shadow: 0 22px 60px rgba(255, 122, 20, 0.28);
  }

  50% {
    box-shadow: 0 28px 86px rgba(255, 122, 20, 0.42);
  }
}

@keyframes ambient-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.82;
    transform: translate3d(-3vw, 2vh, 0) scale(1.06);
  }
}

@keyframes light-sweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes line-breathe {
  0%,
  100% {
    opacity: 0.74;
    transform: scaleX(0.92);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.05);
  }
}

.hero {
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 122, 20, 0.28), transparent 28%),
    linear-gradient(135deg, #191715 0%, #26211c 55%, #100f0e 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
  min-height: calc(100vh - 87px);
  overflow: hidden;
  padding: clamp(56px, 7vw, 110px) clamp(18px, 5vw, 76px) 42px;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
  pointer-events: none;
  position: absolute;
}

.hero-glow {
  background:
    radial-gradient(circle, rgba(255, 122, 20, 0.98) 0 19%, transparent 20% 100%),
    conic-gradient(from 80deg, transparent 0 21%, rgba(255, 122, 20, 0.96) 22% 53%, transparent 54%);
  border-radius: 999px;
  filter: blur(0.2px);
  height: min(62vw, 680px);
  opacity: 0.7;
  position: absolute;
  right: -18vw;
  top: 11vh;
  width: min(62vw, 680px);
  animation: ambient-glow 8s ease-in-out infinite;
}

.hero-content {
  align-self: center;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 8rem);
  line-height: 0.88;
  margin: 0;
  max-width: 780px;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  margin: 24px 0 30px;
  max-width: 620px;
}

.hero-showcase {
  align-self: end;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.hero-showcase article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  transition:
    transform 190ms ease,
    background 190ms ease,
    border-color 190ms ease;
}

.hero-showcase article::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-120%);
}

.hero-showcase article:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 122, 20, 0.45);
  transform: translateY(-4px);
}

.hero-showcase article:hover::after {
  animation: light-sweep 760ms ease;
}

.hero-showcase span,
.product-kicker {
  color: var(--amber);
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.intro-band,
.notification-band,
.documentation-band,
.contact-section {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 76px);
}

.intro-band {
  background: var(--graphite);
  color: #fff;
}

.intro-band > div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 22px;
}

.metric {
  color: var(--amber);
  display: block;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
}

.intro-band p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 330px;
}

.notification-band {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
}

.notification-band h2 {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
}

.notification-actions {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.notification-actions p {
  color: var(--soft-ink);
  line-height: 1.5;
  margin: 0;
}

.section-shell {
  padding: clamp(46px, 6vw, 88px) clamp(18px, 5vw, 76px);
}

.quote-panel {
  background: #151311;
  color: #fff;
  height: 100%;
  min-height: 100%;
  overflow: auto;
  padding: clamp(28px, 5vw, 64px);
  position: relative;
}

.quote-heading {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.9fr 1.1fr;
  margin-bottom: 30px;
}

.quote-heading .eyebrow {
  grid-column: 1 / -1;
}

.quote-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin: 0;
}

.quote-board {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 0.74fr) minmax(0, 1.26fr);
}

.quote-client,
.quote-list-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 20px;
}

.quote-client h3 {
  margin: 0 0 18px;
}

.quote-client dt,
.quote-list-panel label {
  color: rgba(255, 255, 255, 0.64);
}

.quote-client dd {
  color: #fff;
  overflow-wrap: anywhere;
}

.quote-list-header,
.quote-item {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.quote-list-header {
  margin-bottom: 14px;
}

.quote-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.quote-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
}

.quote-item span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  margin-top: 4px;
}

.quote-submit {
  margin-top: 12px;
  width: 100%;
}

.quote-check {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 14px;
  padding: 12px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.product-card.selected-for-quote .quote-check {
  background: #fff3e8;
  border-color: rgba(255, 122, 20, 0.65);
}

.quote-check input {
  accent-color: var(--amber);
  min-height: auto;
  width: auto;
}

.section-heading {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.9fr 1.1fr;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 4.2rem);
  line-height: 1;
  margin: 0;
}

.section-heading p:not(.eyebrow),
.documentation-band p,
.contact-section p {
  color: var(--soft-ink);
  line-height: 1.65;
  margin: 0;
}

.catalog-toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding: 12px;
}

label {
  color: var(--soft-ink);
  display: grid;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 7px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.account-gate {
  align-items: center;
  background: #1e1b18;
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin: 18px 0 24px;
  padding: 18px;
}

.account-gate span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-top: 4px;
}

.account-gate.unlocked {
  background: var(--green);
}

.catalog-grid,
.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-grid > *,
.article-grid > *,
.doc-list > * {
  animation: card-in 520ms ease both;
}

.catalog-grid > *:nth-child(2),
.article-grid > *:nth-child(2),
.doc-list > *:nth-child(2) {
  animation-delay: 70ms;
}

.catalog-grid > *:nth-child(3),
.article-grid > *:nth-child(3),
.doc-list > *:nth-child(3) {
  animation-delay: 140ms;
}

.catalog-grid > *:nth-child(4),
.article-grid > *:nth-child(4),
.doc-list > *:nth-child(4) {
  animation-delay: 210ms;
}

.product-card,
.article-card,
.doc-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(28, 24, 20, 0.06);
  overflow: hidden;
  transition:
    transform 190ms ease,
    box-shadow 190ms ease,
    border-color 190ms ease;
}

.product-card:hover,
.article-card:hover,
.doc-item:hover {
  box-shadow: 0 20px 48px rgba(28, 24, 20, 0.12);
  transform: translateY(-4px);
}

.product-card.selected-for-quote {
  border-color: rgba(255, 122, 20, 0.7);
  box-shadow: 0 18px 54px rgba(255, 122, 20, 0.16);
}

.product-visual {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(110deg, rgba(255, 122, 20, 0.2), transparent 44%),
    radial-gradient(circle at 66% 42%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9%),
    linear-gradient(135deg, #33302c, #171514);
  position: relative;
}

.product-visual::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-120%);
}

.product-visual::after {
  background: linear-gradient(90deg, transparent, rgba(255, 122, 20, 0.95), transparent);
  content: "";
  height: 4px;
  left: 12%;
  position: absolute;
  right: 12%;
  top: 50%;
  transition: transform 220ms ease;
  transform-origin: center;
  animation: line-breathe 3.8s ease-in-out infinite;
}

.product-card:hover .product-visual::after {
  transform: scaleX(1.08);
}

.product-card:hover .product-visual::before {
  animation: light-sweep 860ms ease;
}

.product-body {
  padding: 18px;
}

.product-card h3,
.article-card h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0 0 9px;
}

.product-card p,
.article-card p {
  color: var(--soft-ink);
  line-height: 1.55;
  margin: 0 0 14px;
}

dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 16px;
}

dt {
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 750;
}

.documentation-band {
  align-items: start;
  background: var(--mist);
  grid-template-columns: 0.86fr 1.14fr;
}

.doc-list {
  display: grid;
  gap: 12px;
}

.doc-item {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
  padding: 18px;
}

.doc-item strong,
.doc-item span {
  display: block;
}

.doc-item span {
  color: var(--soft-ink);
  margin-top: 4px;
}

.article-card {
  padding: 22px;
}

.article-card small {
  color: var(--amber-deep);
  display: block;
  font-weight: 850;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.contact-section {
  align-items: end;
  background: #161412;
  color: #fff;
  grid-template-columns: 1fr 1fr;
}

.contact-section address {
  display: grid;
  font-style: normal;
  gap: 12px;
  justify-self: end;
  max-width: 520px;
}

.contact-section a,
.contact-section span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
}

.modal,
.admin-modal {
  border: 0;
  border-radius: 8px;
  max-width: min(94vw, 560px);
  padding: 0;
}

.modal::backdrop,
.admin-modal::backdrop {
  background: rgba(18, 16, 14, 0.72);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  position: relative;
}

.icon-close {
  background: #eee8dd;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 34px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.auth-mode {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
}

.auth-mode label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0.88rem;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
}

.auth-mode input {
  min-height: auto;
  width: auto;
}

.auth-pane {
  display: none;
  gap: 14px;
}

.auth-pane.active {
  animation: soft-rise 180ms ease both;
  display: grid;
}

.form-message {
  color: var(--green);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.quote-panel .form-message {
  color: #a9d7c3;
}

.form-message.is-error {
  color: var(--amber-deep);
}

.quote-panel .form-message.is-error {
  color: #ffb084;
}

.quote-modal {
  background: transparent;
  border: 0;
  border-radius: 12px;
  height: min(92vh, 820px);
  max-width: min(96vw, 1120px);
  overflow: hidden;
  padding: 0;
  width: 1120px;
}

.quote-modal .quote-list {
  max-height: 270px;
  overflow: auto;
  padding-right: 4px;
}

.quote-modal::backdrop {
  background: rgba(16, 14, 12, 0.74);
  backdrop-filter: blur(8px);
}

.quote-modal[open] .quote-panel {
  animation: soft-rise 260ms ease both;
}

.quote-close {
  color: var(--ink);
  z-index: 2;
}

.floating-quote {
  align-items: center;
  background: #171411;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 20px 70px rgba(23, 20, 17, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 10px 18px 10px 10px;
  position: fixed;
  right: 22px;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  z-index: 30;
}

.floating-quote:hover {
  transform: translateY(-3px);
}

.floating-quote.has-items {
  animation: quote-pulse 2.4s ease-in-out infinite;
  background: linear-gradient(135deg, #ff7a14, #1d1915 64%);
}

.floating-quote-count {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #151311;
  display: flex;
  font-size: 1.05rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  min-width: 44px;
}

.floating-quote strong,
.floating-quote small {
  display: block;
}

.floating-quote small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  margin-top: 2px;
}

.admin-modal {
  max-width: min(96vw, 1120px);
  width: 1120px;
}

.admin-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 660px;
}

.admin-sidebar {
  background: #171514;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.admin-sidebar img {
  height: 74px;
  margin-bottom: 22px;
  object-fit: contain;
  width: 160px;
}

.tab-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  padding: 13px;
  text-align: left;
}

.tab-button.active {
  background: var(--amber);
  color: #16120e;
}

.admin-workspace {
  background: var(--paper);
  padding: 28px;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

.locked {
  filter: grayscale(0.15);
}

.locked .product-actions::before {
  color: var(--soft-ink);
  content: "Entre para baixar o PDF";
  font-size: 0.86rem;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .site-header {
    gap: 14px;
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  .header-actions {
    justify-self: end;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    min-height: 720px;
  }

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

  .catalog-toolbar label:first-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 920px) {
  .site-header,
  .hero,
  .intro-band,
  .notification-band,
  .documentation-band,
  .contact-section,
  .section-heading,
  .quote-heading,
  .quote-board,
  .catalog-toolbar,
  .catalog-grid,
  .article-grid,
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-showcase {
    margin-top: 40px;
  }

  .account-gate {
    align-items: start;
    flex-direction: column;
  }

  .contact-section address {
    justify-self: stretch;
  }

  .quote-list-header,
  .quote-item {
    align-items: stretch;
    flex-direction: column;
  }

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

  .admin-modal {
    max-height: 92vh;
    overflow: auto;
    width: min(94vw, 720px);
  }

  .admin-panel {
    min-height: 0;
  }

  .admin-sidebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    overflow-x: auto;
  }

  .admin-sidebar img {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 0;
    grid-template-columns: 1fr auto;
    min-height: 74px;
    padding: 10px 16px;
  }

  .brand {
    grid-column: 1;
    align-self: center;
  }

  .mobile-actions-toggle {
    align-items: center;
    background: var(--amber);
    border: 0;
    border-radius: 999px;
    color: #16120e;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: relative;
    right: auto;
    top: auto;
    width: 38px;
    z-index: 24;
  }

  .mobile-actions-toggle span {
    display: block;
    line-height: 1;
    transition: transform 180ms ease;
  }

  .mobile-actions-toggle[aria-expanded="true"] span {
    transform: rotate(180deg);
  }

  .main-nav {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    overflow: visible;
    padding: 0;
    white-space: normal;
    width: 100%;
  }

  .main-nav a {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 10px;
    text-align: center;
  }

  .main-nav a:first-child {
    grid-column: 1 / -1;
  }

  .header-menu {
    background: rgba(248, 247, 244, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(28, 24, 20, 0.18);
    display: none;
    gap: 10px;
    grid-template-columns: 1fr;
    left: 16px;
    padding: 12px;
    position: absolute;
    right: 16px;
    top: calc(100% + 8px);
    width: auto;
    z-index: 23;
  }

  .header-menu.mobile-open {
    animation: soft-rise 180ms ease both;
    display: grid;
  }

  .header-actions {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 8px;
    padding: 0;
    width: 100%;
  }

  .header-actions .solid-button,
  .header-actions .ghost-button {
    width: 100%;
  }

  .hero-actions .solid-button,
  .hero-actions .ghost-button {
    flex: 1;
  }

  .brand img {
    height: 42px;
    width: 100px;
  }

  .main-nav {
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 3.35rem);
    line-height: 0.95;
  }

  .hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .intro-band,
  .notification-band,
  .documentation-band,
  .contact-section,
  .quote-panel,
  .section-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .catalog-toolbar,
  .catalog-grid,
  .article-grid,
  .form-grid,
  .auth-mode,
  dl {
    grid-template-columns: 1fr;
  }

  .account-gate .solid-button,
  .notification-actions .solid-button,
  .notification-actions .ghost-button,
  .doc-item .ghost-button {
    width: 100%;
  }

  .doc-item {
    grid-template-columns: 1fr;
  }

  .modal {
    width: calc(100vw - 24px);
  }

  .modal-card,
  .admin-workspace {
    padding: 22px 16px;
  }

  .admin-sidebar {
    grid-template-columns: repeat(4, max-content);
    padding: 14px;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .header-actions.mobile-open {
    align-items: stretch;
  }

  .solid-button,
  .ghost-button {
    width: 100%;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    font-size: 0.88rem;
  }

  .floating-quote {
    bottom: 14px;
    left: 14px;
    right: 14px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
