/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #050816;
  color: #f9fafb;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  font-family: inherit;
}

/* Layout */
.dd-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left, #111827, #020617 65%);
  position: sticky;
  top: 0;
  z-index: 20;
}

.dd-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dd-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dd-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  background: conic-gradient(from 160deg, #38bdf8, #34d399, #6366f1, #38bdf8);
  color: #0b1220;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7), 0 10px 25px rgba(15, 23, 42, 0.7),
    0 0 25px rgba(59, 130, 246, 0.4);
}

.dd-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dd-logo-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.dd-logo-subtitle {
  font-size: 0.7rem;
  color: #9ca3af;
}

.dd-logo--small .dd-logo-mark {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.7rem;
}

.dd-logo--small .dd-logo-name {
  font-size: 0.78rem;
}

.dd-nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.86rem;
}

.dd-nav-link {
  position: relative;
  color: #9ca3af;
  padding-bottom: 0.15rem;
}

.dd-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width 0.18s ease-out;
}

.dd-nav-link:hover {
  color: #e5e7eb;
}

.dd-nav-link:hover::after {
  width: 100%;
}

.dd-nav-link--active {
  color: #e5e7eb;
}

.dd-nav-link--active::after {
  width: 100%;
}

.dd-main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 768px) {
  .dd-main {
    padding: 0.5rem 1.5rem 2.25rem;
  }

  .dd-hero-text--post-click {
    display: none;
  }
}

.dd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.dd-hero-text h1 {
  font-size: clamp(2.05rem, 2.1vw + 1.4rem, 2.5rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

.dd-hero-text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #cbd5f5;
  max-width: 32rem;
}

.dd-hero-list {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
  gap: 0.7rem 1.75rem;
  color: #d1d5db;
  font-size: 0.9rem;
}

.dd-hero-list li::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  margin-right: 0.45rem;
  background: radial-gradient(circle at 30% 30%, #fff, #22c55e);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.dd-hero-panel {
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: 1.25rem;
  padding: 1.6rem 1.7rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.dd-hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0%,
      rgba(59, 130, 246, 0.35),
      transparent 55%);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.dd-hero-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5f5;
}

.dd-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 1;
}

.dd-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.dd-field-label {
  color: #9ca3af;
}

.dd-field input {
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.dd-field input::placeholder {
  color: #6b7280;
}

.dd-field input:focus {
  border-color: #38bdf8;
  background: #020617;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.dd-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
  gap: 0.75rem;
}

.dd-form-helper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #6b7280;
  font-size: 0.78rem;
}

.dd-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
}

.dd-dot--secure {
  background: radial-gradient(circle at 30% 30%, #bbf7d0, #22c55e);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
}

.dd-btn-primary {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0b1220;
  cursor: pointer;
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.dd-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.dd-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.7);
}

.dd-form-hint {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
  z-index: 1;
  position: relative;
}

/* Results section */
.dd-results {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.dd-results--hidden {
  display: none;
}

.dd-results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.dd-results-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.dd-results-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.dd-results-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dd-meta-label {
  font-size: 0.78rem;
  color: #6b7280;
}

.dd-meta-brand {
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
}

.dd-loading {
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 1.15rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #020617, #020617 50%, #020617);
}

.dd-loading--hidden {
  display: none;
}

.dd-loading-inner {
  text-align: center;
}

.dd-loading-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #9ca3af;
}

.dd-loading-text-wrapper {
  margin: 0.55rem 0 0.4rem;
  min-height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-loading-anagram {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: radial-gradient(circle at top left, #0b1120, #020617);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.35);
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.dd-loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dd-loading-row--top {
  color: #e5e7eb;
}

.dd-loading-row--bottom {
  color: #a5b4fc;
}

.dd-letter {
  display: inline-block;
  width: 0.75ch;
  text-align: center;
}

.dd-letter--space {
  width: 0.95ch;
}

.dd-loading-caption {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.dd-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: flex-start;
}

.dd-result-layout--hidden {
  display: none;
}

.dd-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left,
      #020617,
      #020617 55%,
      #020617);
  padding: 1rem 1.1rem 1.05rem;
}

.dd-card--primary {
  grid-column: 1 / -1;
}

.dd-card--timeline {
  grid-column: 1 / 2;
}

.dd-card--summary {
  grid-column: 2 / 3;
}

.dd-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.dd-card-header h3 {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

.dd-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.dd-tracking-id {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.dd-status-badge-wrapper {
  display: flex;
  align-items: center;
}

.dd-status-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.7);
  background: radial-gradient(circle at 15% 0%,
      rgba(74, 222, 128, 0.5),
      rgba(22, 163, 74, 0.15));
  color: #bbf7d0;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.55);
}

.dd-status-badge--warning {
  border-color: rgba(234, 179, 8, 0.8);
  background: radial-gradient(circle at 15% 0%,
      rgba(250, 204, 21, 0.5),
      rgba(161, 98, 7, 0.18));
  color: #fef9c3;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.55);
}

.dd-status-badge--danger {
  border-color: rgba(248, 113, 113, 0.85);
  background: radial-gradient(circle at 15% 0%,
      rgba(248, 113, 113, 0.6),
      rgba(127, 29, 29, 0.28));
  color: #fee2e2;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.7);
}

.dd-card-body--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem 1.25rem;
}

.dd-grid-item .dd-label {
  margin-bottom: 0.2rem;
}

.dd-value {
  font-size: 0.9rem;
}

.dd-btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  padding: 0.3rem 0.7rem;
  color: #9ca3af;
  font-size: 0.78rem;
  cursor: pointer;
}

.dd-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

.dd-timeline {
  list-style: none;
  margin: 0;
  padding: 0.1rem 0 0 0.2rem;
  position: relative;
}

.dd-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(to bottom,
      rgba(148, 163, 184, 0.9),
      rgba(148, 163, 184, 0.2));
}

.dd-timeline-item {
  position: relative;
  padding-left: 1.4rem;
  padding-bottom: 0.8rem;
}

.dd-timeline-item:last-child {
  padding-bottom: 0.2rem;
}

.dd-timeline-dot {
  position: absolute;
  left: 0.2rem;
  top: 0.15rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 2px solid #020617;
  background: #9ca3af;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.7);
}

.dd-timeline-item--current .dd-timeline-dot {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.9), 0 0 18px rgba(34, 197, 94, 0.7);
}

.dd-timeline-primary {
  font-size: 0.86rem;
  margin-bottom: 0.1rem;
}

.dd-timeline-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.dd-summary-list {
  margin: 0.1rem 0 0;
  padding: 0;
}

.dd-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(55, 65, 81, 0.9);
  font-size: 0.84rem;
}

.dd-summary-row:last-child {
  border-bottom: none;
}

.dd-summary-row dt {
  color: #9ca3af;
}

.dd-summary-row dd {
  margin: 0;
  color: #e5e7eb;
}

.dd-support-block {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.dd-support-text {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.dd-support-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #a5b4fc;
  text-decoration: none;
}

.dd-support-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.dd-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  padding: 0.9rem 1.5rem;
}

.dd-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dd-footer-copy {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.dd-footer-links {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.dd-footer-links a:hover {
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 900px) {
  .dd-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  }

  .dd-result-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .dd-header-inner {
    padding-inline: 1.1rem;
  }

  .dd-nav {
    display: none;
  }

  .dd-main {
    padding-inline: 1.1rem;
  }

  .dd-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-hero-panel {
    order: -1;
  }

  .dd-result-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-card--summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .dd-form-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .dd-btn-primary {
    width: 100%;
    justify-content: center;
  }

  .dd-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dd-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.header-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  text-align: center;
  width: 100%;
}

.monospace {
  font-family: monospace;
  font-weight: 600;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}


.dd-card--primary {
  position: relative;
  overflow: hidden;
}

/* Container */
.fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Individual burst */
.firework {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  animation: explode 1.8s infinite ease-out;
}

.firework {
  width: 7px;
  height: 7px;
}

/* Different positions & delays */
.firework:nth-child(1) {
  left: 30%;
  animation-delay: 0s;
}

.firework:nth-child(2) {
  left: 55%;
  animation-delay: 0.6s;
}

.firework:nth-child(3) {
  left: 75%;
  animation-delay: 1.2s;
}

.firework:nth-child(4) {
  left: 95%;
  animation-delay: 1.8s;
}


/* Explosion effect using box-shadow particles */
@keyframes explode {
  0% {
    box-shadow:
      0 0 #ff4757,
      0 0 #ffa502,
      0 0 #2ed573,
      0 0 #1e90ff,
      0 0 #eccc68;
    opacity: 1;
    transform: scale(0.2);
  }
  100% {
    box-shadow:
      -40px -40px #ff4757,
       40px -40px #ffa502,
      -40px  40px #2ed573,
       40px  40px #1e90ff,
       0px   60px #eccc68;
    opacity: 0;
    transform: scale(1);
  }
}
