:root {
  --bg: #050816;
  --bg-soft: #0f172a;
  --accent: #f97316;
  --accent-soft: rgba(249,115,22,0.12);
  --accent-alt: #22c55e;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --radius-xl: 22px;
  --radius-2xl: 30px;
  --shadow-soft: 0 18px 60px rgba(15,23,42,0.55);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, -system-ui, sans-serif;
  --max-w: 1120px;
  --transition-fast: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(1200px at top, rgba(249,115,22,0.06), transparent), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 100px;
  width: auto;
  border-radius: 10px;
  display: block;
}

.logo-text {
  font-weight: 600;
  font-size: 38px;
  letter-spacing: 0.02em;
}

.logo-sub.tagline {
  margin-top: -15px;
  margin-left: 36px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 1.1rem;  /* qui aumenti */
  font-weight: 500;   /* se vuoi un pelo più grosso */
  letter-spacing: 0.04em; /* più “tech” */
}


.nav {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1.4fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-pre {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,253,0.12);
  color: var(--muted);
}

.tag strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(to right, var(--accent), #fb923c);
  color: #0f172a;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 70px rgba(249,115,22,0.35);
}

.btn-outline {
  border-color: rgba(148,163,253,0.18);
  background: rgba(9,9,11,0.9);
  color: var(--muted);
}

.btn-outline span.icon {
  font-size: 13px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(15,23,42,0.65);
}

.tooltip {
  position: relative;
}

/* Tooltip bubble */
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  padding: 6px 9px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--text);
  background: rgba(9, 9, 11, 0.98);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 253, 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.75);
  white-space: normal;
  max-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 50;
}

/* Freccetta */
.tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(9, 9, 11, 0.98) transparent transparent transparent;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 49;
}

/* Mostra tooltip su hover/focus */
.tooltip:hover::after,
.tooltip:focus-visible::after,
.tooltip:hover::before,
.tooltip:focus-visible::before {
  opacity: 1;
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
  transform: translateX(-50%) translateY(2px);
}


.hero-note {
  font-size: 10px;
  color: var(--muted);
}

.hero-note a {
  color: var(--accent);
}

.hero-card {
  background: radial-gradient(circle at top, rgba(249,115,22,0.22), transparent), var(--bg-soft);
  border-radius: var(--radius-2xl);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(148,163,253,0.12);
}

.hero-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero-card p {
  font-size: 11px;
  color: var(--muted);
}

.hero-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 6px;
}

.mini {
  padding: 6px 7px;
  border-radius: 14px;
  background: rgba(9,9,11,0.96);
  border: 1px solid rgba(75,85,99,0.9);
  font-size: 9px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mini span.label {
  font-size: 8px;
  color: var(--accent-alt);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-main {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.metric-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}


.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 760px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,253,0.12);
  font-size: 11px;
  color: var(--muted);
}

.card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.card ul {
  list-style: none;
  margin-top: 4px;
}

.card ul li {
  margin-bottom: 3px;
  padding-left: 12px;
  position: relative;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 10px;
}

.highlight-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid rgba(249,115,22,0.45);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(9,9,11,0.96);
  border: 1px solid rgba(75,85,99,0.9);
  color: var(--muted);
}

.roi-label {
  font-size: 9px;
  color: var(--accent-alt);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 2px;
}

.form-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 11px;
}

.form-block {
  margin-top: 8px;
  font-size: 11px;
}

input,
textarea,
select {
  width: 100%;
  padding: 6px 8px;
  margin-top: 2px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #020817;
  color: #e5e7eb;
  font-family: var(--font-main);
  outline: none;
  font-size: 11px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  cursor: pointer;
}

#mint-model {
  font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}


textarea {
  height: 80px;
  resize: vertical;
}

.form-msg {
  font-size: 9px;
  color: #9ca3af;
  margin-top: 6px;
}

.support-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.support-text {
  flex: 2 1 210px;
}

.support-note {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 4px;
}

.contract-link {
  margin-top: 6px;
  font-size: 9px;
  color: #9ca3af;
}

.contract-link a {
  color: var(--accent);
}

.support-qr {
  flex: 1 1 140px;
  text-align: center;
  font-size: 10px;
  color: #9ca3af;
}

.qr-box {
  display: inline-block;
  padding: 6px;
  border-radius: 16px;
  background: transparent;
  border: 0px solid #374151;
  box-shadow: 0 10px 30px rgba(15,23,42,0.6);
}

.qr-box img {
  width: 120px;
  height: 120px;
  display: block;
}

.qr-note {
  font-size: 8px;
  color: #6b7280;
  margin-top: 4px;
}

.footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(75,85,99,0.55);
  font-size: 9px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer span strong {
  color: var(--accent);
  font-weight: 500;
}

/* Modale logo */

.logo-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 18, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.logo-modal.active {
  display: flex;
}

.logo-big {
  width: min(520px, 90vw);
  height: auto;
  object-fit: contain;
  display: block;
}
/* --- MintingDapp: extra specifici --- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.json-output {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  min-height: 220px;
  resize: vertical;
  white-space: pre;
  overflow: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.metadata-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.metadata-status {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

.metadata-status strong {
  color: var(--accent);
}

.tokenuri-input {
  width: 100%;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px dashed #4b5563;
  background: #020617;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
}

/* Responsive */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-card {
    order: -1;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.verify-output {
  min-height: 80px;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
}

.verify-output code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
}

.verify-attestation {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 0px;
  background: transparent;
  border: 0px solid rgba(148, 163, 253, 0.3);
}

.verify-attestation-title {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.verify-attestation-row {
  font-size: 10px;
  color: var(--muted);
}

.verify-attestation-row a {
  color: var(--accent);
  text-decoration: none;
}

.verify-attestation-row a:hover {
  text-decoration: underline;
}
.tokenuri-compact {
  height: 32px;
  min-height: 32px;
  max-height: 50px;
  resize: vertical; /* o "none" se non vuoi proprio che si possa allargare */
  line-height: 1.4;
}
.mint-login-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: #111827;
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid #1f2937;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #f9fafb;
}

.login-card p {
  margin: 0 0 16px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.mint-password-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  margin-bottom: 12px;
}

.mint-password-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.login-card .btn {
  width: 100%;
  justify-content: center;
}
