:root {
  --ink: #0f172a;
  --muted: #475569;
  --emerald: #0f3d2c;
  --emerald-deep: #071d15;
  --gold: #c29b42;
  --gold-dark: #8c6c2d;
  --line: rgba(15, 23, 42, 0.1);
  --fs-body: 1.0625rem;
  --fs-sub: 0.9375rem;
  --fs-meta: 0.875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image: url('/landing-assets/landing_background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  body::before {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 100dvh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

/* Shared Floating Pill Navbar Matching /explore & /trust */
.dk-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 50;
  width: calc(100% - 2rem);
  max-width: 72rem;
  transition: transform 280ms ease;
}
.dk-header.navbar-hidden { transform: translate(-50%, -150%); }
.dk-header.navbar-visible { transform: translate(-50%, 0); }

.dk-header-bar {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.65);
  box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .dk-header-bar { padding: 0.85rem 2rem; display: grid; grid-template-columns: 1fr auto 1fr; }
}

.dk-logo-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}
.dk-logo-link img { height: 2rem; width: auto; display: block; }
@media (min-width: 768px) { .dk-logo-link img { height: 2.3rem; } }

.dk-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  justify-self: center;
}
@media (min-width: 768px) { .dk-nav-links { display: flex; } }
.dk-nav-links a {
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 180ms ease;
}
.dk-nav-links a:hover, .dk-nav-links a[aria-current="page"] { color: var(--gold-dark); }

.dk-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: end;
}
.dk-dash-btn {
  display: none;
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 700;
  transition: background-color 180ms ease;
}
.dk-dash-btn:hover { background: var(--gold-dark); }

.dk-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
@media (max-width: 767px) {
  #nav-signin-slot, .dk-header-right .dk-dash-btn { display: none !important; }
  .dk-logo-link img { height: 1.7rem; }
}
@media (min-width: 768px) { .dk-burger { display: none; } }

.dk-mobile-menu {
  display: none;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  flex-direction: column;
  gap: 0.85rem;
}
.dk-mobile-menu.open { display: flex; }
.dk-mobile-menu a { text-decoration: none; font-weight: 600; color: var(--ink); font-size: var(--fs-sub); }
.dk-mobile-menu a[aria-current="page"] { color: var(--gold-dark); }

/* Scrolling Frosted Glass Stage Rising Over Fixed Wave Background */
.dk-scroll-veil {
  position: relative;
  z-index: 20;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.78);
}

.dk-page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 6.75rem;
}

.dk-page-content {
  flex: 1 0 auto;
  width: 100%;
}

.dk-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.dk-glass-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.08);
}

.dk-icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 61, 44, 0.1) 0%, rgba(194, 155, 66, 0.16) 100%);
  color: var(--emerald);
  margin-bottom: 1rem;
}

.dk-signin-pill-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--emerald);
  font-size: var(--fs-meta);
  font-weight: 700;
  transition: all 180ms ease;
}
.dk-signin-pill-link:hover { border-color: var(--gold); color: var(--gold-dark); }

/* Shared Footer */
.dk-footer {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 2rem;
  font-size: var(--fs-meta);
  color: var(--muted);
}
.dk-footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.dk-footer h4 { margin: 0 0 0.75rem; color: var(--ink); font-size: var(--fs-sub); font-weight: 700; }
.dk-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.dk-footer a { color: var(--muted); text-decoration: none; transition: color 180ms ease; }
.dk-footer a:hover { color: var(--gold-dark); }
.dk-footer-bottom {
  max-width: 72rem;
  margin: 1.25rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
