:root {
  --accent: #D7FF3B;
  --ink: #111;
  --muted: #555;
  --hover: #333;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #fff;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
}

a { font-family: inherit; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes qrCell {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes soonPop {
  0% { opacity: 0; transform: scale(0.7) translateY(6px); }
  60% { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Modal ---------- */

.dnh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fadeUp 0.25s ease;
}

.dnh-modal-overlay[hidden] { display: none; }

.dnh-modal {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  width: 380px;
  max-width: 90vw;
  animation: modalIn 0.3s ease;
}

.dnh-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dnh-modal-title {
  font-size: 22px;
  font-weight: 600;
}

.dnh-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.dnh-modal-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.dnh-modal-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
}

.dnh-modal-submit {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.dnh-modal-submit:hover { background: var(--hover); }

.dnh-modal-success {
  padding: 20px 0;
  text-align: center;
}

.dnh-modal-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}

.dnh-modal-success-title {
  font-weight: 600;
  font-size: 16px;
}

.dnh-modal-success-copy {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- Layout ---------- */

.dnh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  min-height: 100vh;
  width: 100%;
}

.dnh-left {
  background: #fff;
  display: flex;
  flex-direction: column;
}

.dnh-left-pad { padding: 36px 48px 64px; }

.dnh-right {
  background: #eef0ec;
  display: flex;
  flex-direction: column;
}

.dnh-right-pad { padding: 36px 48px 40px; }

.dnh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Left: logo / nav ---------- */

.dnh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.dnh-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: #333;
}

.dnh-nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dnh-nav-links a:hover { color: var(--ink); }

.dnh-nav-links a.dnh-nav-active {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 10px;
  font-weight: 500;
}

.dnh-nav-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 3px;
  background: var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* ---------- Left: hero copy ---------- */

.dnh-hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
}

.dnh-eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.dnh-title {
  font-size: 72px;
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 36px;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.dnh-highlight {
  position: relative;
  display: inline-block;
}

.dnh-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 14px;
  background: var(--accent);
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease 0.6s;
}

.dnh-highlight-text {
  position: relative;
  z-index: 1;
}

.dnh-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.dnh-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
}

.dnh-copyright {
  font-size: 12px;
  color: #888;
  margin-top: 20px;
}

/* mounted state, toggled by JS after first paint */
body.dnh-mounted .dnh-eyebrow,
body.dnh-mounted .dnh-title,
body.dnh-mounted .dnh-cta {
  opacity: 1;
  transform: translateY(0);
}

body.dnh-mounted .dnh-underline {
  transform: scaleX(1);
}

body.dnh-mounted .dnh-caption {
  opacity: 1;
}

/* ---------- Right: socials / open app ---------- */

.dnh-socials {
  display: flex;
  gap: 16px;
}

.dnh-social {
  color: var(--ink);
  transition: color 0.15s ease;
}

.dnh-social:hover { color: var(--accent); }

.dnh-open-app {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-width: 118px;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.dnh-open-app:hover { background: var(--hover); }

/* ---------- Right: QR ---------- */

.dnh-qr-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dnh-qr-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}

.dnh-qr-decorated {
  position: relative;
}

.dnh-qr-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.dnh-stock-badge {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.4) translateY(6px);
  animation: qrCell 0.4s ease forwards;
}

.dnh-stock-badge img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  border-radius: 50%;
}

.dnh-stock-badge-tl { top: -16px; left: -16px; }
.dnh-stock-badge-tr { top: -16px; right: -16px; }
.dnh-stock-badge-bl { bottom: -16px; left: -16px; }
.dnh-stock-badge-br { bottom: -16px; right: -16px; }
.dnh-stock-badge-tc { top: -16px; left: calc(50% - 20px); }

.dnh-qr-grid {
  display: grid;
  grid-template-columns: repeat(9, 10px);
  grid-template-rows: repeat(9, 10px);
  gap: 3px;
}

.dnh-qr-cell {
  opacity: 0;
  animation: qrCell 0.35s ease forwards;
}

.dnh-caption {
  text-align: center;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 280px;
  opacity: 0;
  transition: opacity 0.6s ease 1.2s;
}

/* label swap pop */
.dnh-pop {
  display: inline-block;
  animation: soonPop 0.4s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .dnh-grid { grid-template-columns: 1fr; }
  .dnh-nav-links { display: none; }
  .dnh-title { font-size: 52px !important; }
  .dnh-right-pad { padding: 32px 24px 40px !important; }
  .dnh-left-pad { padding: 32px 24px 48px !important; }
  .dnh-open-app { min-width: 96px !important; padding: 10px 16px !important; font-size: 13px !important; }
  .dnh-stock-badge { width: 32px !important; height: 32px !important; }
  .dnh-stock-badge-tl { top: -12px !important; left: -12px !important; }
  .dnh-stock-badge-tr { top: -12px !important; right: -12px !important; }
  .dnh-stock-badge-bl { bottom: -12px !important; left: -12px !important; }
  .dnh-stock-badge-br { bottom: -12px !important; right: -12px !important; }
  .dnh-stock-badge-tc { top: -12px !important; left: calc(50% - 16px) !important; }
}
