/* ============================================================
   MagnaDesk product page — dark, page-scoped styles.
   Loaded AFTER style.css and scoped under body.mdk so nothing
   here leaks into the other pages. If the sitewide refresh
   happens later, this file is the seed for it.
   ============================================================ */

body.mdk {
  --mdk-bg: #0a0e13;
  --mdk-surface: #0f151d;
  --mdk-card: rgba(255, 255, 255, 0.04);
  --mdk-card-solid: #121a23;
  --mdk-border: rgba(255, 255, 255, 0.09);
  --mdk-text: #e8eef4;
  --mdk-dim: #9aa8b5;
  --mdk-accent: #46d98e;
  --mdk-accent-dim: #2f9c66;
  --mdk-accent-soft: rgba(70, 217, 142, 0.13);
  --mdk-glow: rgba(70, 217, 142, 0.25);

  background: var(--mdk-bg);
  color: var(--mdk-text);
}

body.mdk a {
  color: var(--mdk-accent);
}

/* ----- Shared header / footer, restyled for this page only ----- */
body.mdk .site-header {
  background: rgba(10, 14, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mdk-border);
}

body.mdk .site-nav a:hover {
  color: var(--mdk-accent);
}

body.mdk .nav-toggle {
  border-color: var(--mdk-border);
}

body.mdk .site-footer {
  background: var(--mdk-surface);
  border-top: 1px solid var(--mdk-border);
  color: var(--mdk-dim);
  margin-top: 0;
}

body.mdk .site-footer a {
  color: var(--mdk-accent);
}

/* ----- Sections ----- */
body.mdk .section {
  padding: 4rem 0;
}

body.mdk .mdk-alt {
  background: var(--mdk-surface);
}

body.mdk .section h2 {
  color: var(--mdk-text);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

body.mdk .section h3 {
  color: var(--mdk-text);
}

body.mdk .section .container > p {
  color: var(--mdk-dim);
  max-width: 720px;
}

body.mdk .section .container > p strong,
body.mdk .feature-list strong {
  color: var(--mdk-text);
}

.mdk-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mdk-accent);
  text-align: center;
  margin-bottom: 0.5rem;
}

.mdk-muted {
  color: var(--mdk-dim);
  font-size: 0.95rem;
}

/* ----- Cards ----- */
body.mdk .card {
  background: var(--mdk-card);
  border: 1px solid var(--mdk-border);
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, transform 0.2s;
}

body.mdk .card:hover {
  border-color: rgba(70, 217, 142, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

body.mdk .card h3 {
  color: var(--mdk-text);
}

body.mdk .card p {
  color: var(--mdk-dim);
  margin-bottom: 0;
}

body.mdk .card p strong {
  color: var(--mdk-text);
}

.mdk-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mdk-accent);
  background: var(--mdk-accent-soft);
  border: 1px solid rgba(70, 217, 142, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.mdk-tag--dim {
  color: var(--mdk-dim);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--mdk-border);
}

/* ----- Feature lists ----- */
body.mdk .feature-list li {
  color: var(--mdk-dim);
}

body.mdk .feature-list li::before {
  color: var(--mdk-accent);
}

/* ----- Buttons ----- */
body.mdk .btn-primary {
  background: linear-gradient(135deg, #37c978, #6fe0a8);
  color: #06230f;
  border-radius: 10px;
  box-shadow: 0 0 24px var(--mdk-glow);
}

body.mdk .btn-primary:hover {
  background: linear-gradient(135deg, #41d685, #85e8b7);
  box-shadow: 0 0 32px var(--mdk-glow);
}

body.mdk .btn-secondary {
  background: transparent;
  color: var(--mdk-text);
  border: 1px solid var(--mdk-border);
  border-radius: 10px;
}

body.mdk .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ----- kbd chips ----- */
body.mdk kbd {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85em;
  color: var(--mdk-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--mdk-border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1em 0.45em;
  white-space: nowrap;
}

/* ----- Tables (shortcuts) ----- */
body.mdk .shortcut-table table {
  background: var(--mdk-card-solid);
  border: 1px solid var(--mdk-border);
}

body.mdk .shortcut-table th,
body.mdk .shortcut-table td {
  border-bottom: 1px solid var(--mdk-border);
}

body.mdk .shortcut-table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--mdk-text);
}

body.mdk .shortcut-table td {
  color: var(--mdk-dim);
}

body.mdk .shortcut-table td:first-child {
  color: var(--mdk-accent);
}

/* ============================================================
   Hero
   ============================================================ */
.mdk-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 1rem 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(70, 217, 142, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 25%, rgba(56, 130, 246, 0.08), transparent 70%),
    var(--mdk-bg);
}

.mdk-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.mdk-hero h1 .mdk-gradient {
  background: linear-gradient(120deg, #6fe0a8, #37c978 45%, #b9f2d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mdk-hero .mdk-tagline {
  font-size: 1.15rem;
  color: var(--mdk-dim);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.mdk-hero .mdk-tagline strong {
  color: var(--mdk-text);
}

.mdk-hero-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--mdk-dim);
}

/* ----- Hero screenshot ----- */
.mdk-screenshot {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 3rem auto 0;
  border-radius: 16px;
  border: 1px solid var(--mdk-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ----- Pure-CSS desktop mockup (decorative, no assets) ----- */
.mdk-desktop {
  position: relative;
  max-width: 780px;
  margin: 3rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--mdk-border);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(47, 156, 102, 0.35), transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 10%, rgba(30, 64, 120, 0.45), transparent 70%),
    linear-gradient(160deg, #101b26, #0b1219 60%, #0d1a14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* fake desktop icons — the layer sits UNDER these */
.mdk-icons {
  position: absolute;
  top: 6%;
  left: 3.5%;
  display: flex;
  flex-direction: column;
  gap: 10%;
  height: 80%;
  z-index: 3;
}

.mdk-icon {
  width: 44px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.55rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mdk-icon::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 3px;
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* widget cards on the mockup */
.mdk-w {
  position: absolute;
  border-radius: 10px;
  background: rgba(16, 24, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--mdk-text);
  z-index: 2;
  text-align: left;
}

/* analog clock */
.mdk-w-clock {
  top: 12%;
  left: 16%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdk-clock-face {
  position: relative;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.mdk-clock-face::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--mdk-accent);
  z-index: 2;
}

.mdk-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: 50% 100%;
  border-radius: 2px;
}

.mdk-hand-h {
  width: 3px;
  height: 26%;
  margin-left: -1.5px;
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(305deg);
}

.mdk-hand-m {
  width: 2px;
  height: 38%;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.65);
  transform: rotate(80deg);
}

.mdk-hand-s {
  width: 1px;
  height: 42%;
  margin-left: -0.5px;
  background: var(--mdk-accent);
  animation: mdk-sweep 60s linear infinite;
}

@keyframes mdk-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* weather chip */
.mdk-w-weather {
  top: 16%;
  right: 8%;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
}

.mdk-w-weather .mdk-temp {
  font-size: 1.3rem;
  font-weight: 700;
}

.mdk-w-weather .mdk-sub {
  color: var(--mdk-dim);
  font-size: 0.65rem;
}

/* sticky note */
.mdk-w-note {
  bottom: 14%;
  left: 24%;
  width: 21%;
  min-width: 110px;
  padding: 0.55rem 0.7rem;
  background: #e8d878;
  border: none;
  color: #43400f;
  font-size: 0.68rem;
  line-height: 1.45;
  transform: rotate(-3deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mdk-w-note strong {
  display: block;
  margin-bottom: 0.15rem;
}

/* progress widget */
.mdk-w-progress {
  bottom: 20%;
  right: 10%;
  width: 24%;
  min-width: 140px;
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
}

.mdk-w-progress .mdk-sub {
  color: var(--mdk-dim);
}

.mdk-bar {
  margin-top: 0.4rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.mdk-bar span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, #37c978, #6fe0a8);
}

.mdk-desktop-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--mdk-dim);
}

@media (prefers-reduced-motion: reduce) {
  .mdk-hand-s {
    animation: none;
    transform: rotate(210deg);
  }

  body.mdk .card,
  body.mdk .card:hover,
  body.mdk .btn:hover {
    transform: none;
  }
}

/* ============================================================
   Fast-path feature blocks
   ============================================================ */
.mdk-feature {
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: var(--mdk-card);
  border: 1px solid var(--mdk-border);
  border-radius: 16px;
}

.mdk-feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.mdk-feature > p {
  color: var(--mdk-dim);
}

.mdk-feature > p strong {
  color: var(--mdk-text);
}

/* ----- Captioned screenshots inside sections ----- */
.mdk-figure {
  max-width: 860px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.mdk-figure .mdk-screenshot {
  margin-top: 0;
}

.mdk-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--mdk-dim);
}

.mdk-feature .mdk-figure {
  margin-top: 1.5rem;
}

/* ----- Style chips (widget styles section) ----- */
.mdk-styles-note {
  text-align: center;
  margin-top: 1.5rem;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  body.mdk .section {
    padding: 3rem 0;
  }

  .mdk-hero {
    padding: 3.5rem 1rem 3rem;
  }

  .mdk-w-note {
    left: 30%;
  }

  .mdk-feature {
    padding: 1.5rem;
  }
}

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

  .mdk-w-weather {
    display: none;
  }
}
