/* ==============================================================
   LANDING PAGE — the front door at "/"
   Two doors: Writing (essays, arts, the book) and Apps (Verloq).
   Self-contained; shares no stylesheet with either destination.
============================================================== */

:root {
  --bg: #FDFCFB;
  --surface: #FFFFFF;
  --surface-2: #F7F6F4;
  --text-main: #1C1C1E;
  --text-muted: #58585D;
  --text-light: #8E8E93;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #4F46E5;
  --accent-secondary: #7C3AED;
  --accent-glow: rgba(79, 70, 229, 0.12);
  --ink: #B45309;
  --ink-glow: rgba(180, 83, 9, 0.1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
}

body.dark-mode {
  --bg: #0F0F13;
  --surface: #1A1A1E;
  --surface-2: #232329;
  --text-main: #F5F5F7;
  --text-muted: #B8B8BC;
  --text-light: #85858A;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #8B83FF;
  --accent-secondary: #A78BFA;
  --accent-glow: rgba(139, 131, 255, 0.16);
  --ink: #FBBF24;
  --ink-glow: rgba(251, 191, 36, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top bar ---------------------------------------------------- */
.ld-top {
  padding: 24px 0;
}

.ld-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ld-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ld-mark-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffef6 0%, #ffc404 45%, #fa0505 100%);
  flex-shrink: 0;
}

.ld-theme {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.ld-theme:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- The two doors ---------------------------------------------- */
.ld-doors {
  display: grid;
  gap: 22px;
  padding: 56px 0 64px;
}

@media (min-width: 820px) {
  .ld-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ld-door {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 32px 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.ld-door::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--door-accent, var(--accent)), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ld-door:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--door-accent, var(--accent)) 35%, transparent);
}

.ld-door:hover::before { opacity: 1; }

.ld-door-writing { --door-accent: var(--ink); }
.ld-door-apps { --door-accent: var(--accent); }

.ld-door-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--door-accent);
  background: color-mix(in srgb, var(--door-accent) 12%, transparent);
}

.ld-door h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.ld-door > p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 22px;
}

.ld-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 26px;
}

.ld-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ld-list i {
  color: var(--door-accent);
  font-size: 0.72rem;
  margin-top: 0.45em;
  flex-shrink: 0;
}

.ld-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--door-accent);
}

.ld-cta i {
  font-size: 0.78rem;
  transition: transform 0.25s var(--ease);
}

.ld-door:hover .ld-cta i { transform: translateX(4px); }

.ld-tag {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--door-accent);
  background: color-mix(in srgb, var(--door-accent) 12%, transparent);
}

/* --- Footer ----------------------------------------------------- */
.ld-footer {
  margin-top: auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--text-light);
}

.ld-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ld-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ld-footer-links a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .ld-doors { padding: 32px 0 48px; }
  .ld-door { padding: 28px 24px 26px; }
  .ld-footer-inner { justify-content: center; text-align: center; }
}
