/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a10;
  --bg-elevated: #12121a;
  --surface: #15151f;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(139, 122, 255, 0.35);

  --text-primary: #f3f2fa;
  --text-secondary: #a8a6b8;
  --text-muted: #6f6d80;

  --accent-violet: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet) 55%, var(--accent-pink));

  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.9rem;
}

/* ---------- Background glow ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.glow--one {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -160px;
  background: var(--accent-indigo);
}

.glow--two {
  width: 560px;
  height: 560px;
  top: 10%;
  right: -220px;
  background: var(--accent-violet);
}

.glow--three {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: 30%;
  background: var(--accent-pink);
  opacity: 0.2;
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.section__header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section__title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--ease) 0.3s, border-color var(--ease) 0.3s, backdrop-filter var(--ease) 0.3s;
}

.nav.is-scrolled {
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--surface-border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 2.1rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--ease) 0.2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--accent-gradient);
  transition: width var(--ease) 0.25s;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.nav__toggle span {
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--ease) 0.25s, opacity var(--ease) 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--ease) 0.25s, box-shadow var(--ease) 0.25s, background var(--ease) 0.25s, border-color var(--ease) 0.25s;
  white-space: nowrap;
}

.btn--cta {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
}

.btn--cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 30px -6px rgba(139, 92, 246, 0.55);
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

.btn--ghost:hover {
  border-color: var(--surface-border-hover);
  background: rgba(139, 92, 246, 0.08);
}

.btn--card {
  border: 1px solid var(--surface-border);
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn--card:hover {
  border-color: var(--surface-border-hover);
  background: rgba(139, 92, 246, 0.1);
}

.btn--card-ai {
  border-color: rgba(139, 92, 246, 0.35);
}

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

/* ---------- Hero ---------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 760px;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--surface-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--designs {
  grid-template-columns: repeat(3, 1fr);
}

.grid--ai {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--ease) 0.3s, border-color var(--ease) 0.3s, box-shadow var(--ease) 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-hover);
  box-shadow: 0 20px 40px -20px rgba(99, 102, 241, 0.35);
}

.card__preview {
  height: 150px;
  position: relative;
}

.card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
}

.card__preview--aurora { background: linear-gradient(135deg, #4338ca, #7c3aed); }
.card__preview--ledger { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.card__preview--atlas { background: linear-gradient(135deg, #b45309, #f59e0b); }
.card__preview--northstar { background: linear-gradient(135deg, #1e293b, #475569); }
.card__preview--bloom { background: linear-gradient(135deg, #be185d, #f472b6); }
.card__preview--vertex { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }

.card__body {
  padding: 1.5rem;
}

.card--ai .card__body {
  padding-top: 0.5rem;
}

/* An agent showing an uploaded image has no icon to sit under, so it needs
   the same body padding a design card uses. */
.card--ai .card__preview + .card__body {
  padding-top: 1.5rem;
}

.card__icon {
  margin: 1.5rem 0 0 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-violet);
  font-size: 1.1rem;
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  min-height: 3.4em;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.card__price-period {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Audit section ---------- */
.section--audit {
  padding-top: 2rem;
}

.audit {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.audit__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color var(--ease) 0.2s, box-shadow var(--ease) 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.audit__note {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--accent-violet);
}

.audit__note--error {
  color: #f9a8d4;
}

/* ---------- Audit gate (logged-out state) ---------- */
.audit-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.audit-gate__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent-violet);
}

.audit-gate__icon svg {
  width: 100%;
  height: 100%;
}

.audit-gate__title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.audit-gate__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 340px;
  margin-bottom: 1.75rem;
}

.audit-gate__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Audit success state ---------- */
.audit-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.audit-success:focus {
  outline: none;
}

.audit-success__badge {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  color: var(--accent-violet);
}

.audit-success__badge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.audit-success__ring {
  opacity: 0.35;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: successRing 0.6s var(--ease) forwards;
}

.audit-success__tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: successTick 0.4s var(--ease) 0.35s forwards;
}

@keyframes successRing {
  to { stroke-dashoffset: 0; }
}

@keyframes successTick {
  to { stroke-dashoffset: 0; }
}

.audit-success__title {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.audit-success__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
  margin-bottom: 1.75rem;
}

.audit-success__text strong {
  color: var(--text-primary);
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .audit-success__ring,
  .audit-success__tick {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--surface-border);
  margin-top: 4rem;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer__text {
  margin-top: 1rem;
  color: var(--text-secondary);
  max-width: 380px;
  font-size: 0.95rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer__col a,
.footer__muted {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--ease) 0.2s;
}

.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--surface-border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.footer__admin-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity var(--ease) 0.2s, color var(--ease) 0.2s;
}

.footer__admin-link:hover {
  opacity: 1;
  color: var(--text-secondary);
}

/* ---------- Admin ---------- */
.admin {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.admin-gate {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-gate__card {
  max-width: 420px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.admin-gate__card .btn {
  margin-top: 1.5rem;
}

.admin-panel__header {
  margin-bottom: 3rem;
}

.admin-block {
  margin-bottom: 4rem;
}

.admin-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-block__title {
  font-size: 1.4rem;
}

.listing-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.listing-form .field:has(textarea),
.listing-form > button,
.listing-form > .audit__note {
  grid-column: 1 / -1;
}

.field select,
.field input[type="file"] {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

.radio-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0.4rem 0;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.field__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn--danger {
  border-color: rgba(236, 72, 153, 0.35);
  color: #f9a8d4;
}

.btn--danger:hover {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.6);
}

/* Spans the whole grid so an empty section reads as a deliberate state
   rather than a single stray line next to blank space. */
.grid__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius-md);
}

@media (max-width: 640px) {
  .listing-form {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

/* ---------- Auth + modals ---------- */
.btn--auth {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
}

.btn--admin-add {
  align-self: center;
  margin-top: 1.5rem;
  border-color: rgba(139, 92, 246, 0.4);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 10, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.3rem;
  line-height: 1;
  transition: background var(--ease) 0.2s, color var(--ease) 0.2s;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.modal__title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.modal__tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--surface-border);
}

.modal__tab {
  padding: 0.6rem 0.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--ease) 0.2s, border-color var(--ease) 0.2s;
}

.modal__tab.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-violet);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-form .field input {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.auth-form .field input:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

#listingModalMount .listing-form {
  padding: 0;
  border: none;
  background: none;
  grid-template-columns: 1fr;
}

@media (max-width: 480px) {
  .modal {
    padding: 1.75rem;
  }
}

/* ---------- Listing details modal ---------- */
.modal--details {
  max-width: 480px;
  padding: 2.5rem 0;
}

.details__preview {
  height: 180px;
  margin: -2.5rem 0 1.75rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal--details .eyebrow,
.modal--details .modal__title,
.modal--details .details__desc,
.modal--details .details__features,
.modal--details .details__footer {
  margin-left: 2.5rem;
  margin-right: 2.5rem;
}

.modal--details .eyebrow {
  margin-bottom: 0.5rem;
}

.modal--details .modal__title {
  margin-bottom: 1rem;
}

.details__desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.details__features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.details__features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.details__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.details__download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-violet);
  transition: color var(--ease) 0.2s;
}

.details__download::before {
  content: "\2193";
  font-size: 1rem;
}

.details__download:hover {
  color: var(--text-primary);
}

.details__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
}

.details__footer .card__price {
  font-size: 1.3rem;
}

@media (max-width: 480px) {
  .details__preview,
  .modal--details .eyebrow,
  .modal--details .modal__title,
  .modal--details .details__desc,
  .modal--details .details__features,
  .modal--details .details__footer {
    margin-left: 1.75rem;
    margin-right: 1.75rem;
  }
}

/* ---------- Profile menu ---------- */
.account {
  position: relative;
  display: flex;
  align-items: center;
}

.profile {
  position: relative;
}

.profile__trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  transition: border-color var(--ease) 0.2s, background var(--ease) 0.2s;
}

.profile__trigger:hover {
  border-color: var(--surface-border-hover);
  background: rgba(139, 92, 246, 0.08);
}

.profile__avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile__name {
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile__dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
  z-index: 150;
}

.profile__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.profile__display-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.profile__email {
  font-size: 0.82rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile__role {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
}

.profile__role--admin {
  color: var(--accent-violet);
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}

.profile__link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--ease) 0.2s;
}

.profile__link:hover {
  color: var(--text-primary);
}

.profile__logout {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--surface-border);
  text-align: left;
  font-size: 0.88rem;
  color: #f9a8d4;
  transition: color var(--ease) 0.2s;
}

.profile__logout:hover {
  color: #f472b6;
}

@media (max-width: 480px) {
  .profile__name {
    display: none;
  }

  .profile__trigger {
    padding: 0.3rem;
  }

  .profile__dropdown {
    width: 220px;
  }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--designs { grid-template-columns: repeat(2, 1fr); }
  .grid--ai { grid-template-columns: repeat(2, 1fr); }
  .audit { grid-template-columns: 1fr; padding: 2.5rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 16, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease) 0.25s, transform var(--ease) 0.25s;
  }

  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__toggle { display: flex; }

  .nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .btn--cta { padding: 0.65rem 1.1rem; font-size: 0.85rem; }

  .grid--designs,
  .grid--ai { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }

  .hero { min-height: auto; padding: 4rem 1.5rem 3rem; }

  .section { padding: 4.5rem 1.5rem; }
}
