/* ==============================================
   Marketing Homepage — Sections & Components
   Depends on: marketing.css (shared foundation)
   ============================================== */

/* ---- Hero ---- */

.mk-home-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.mk-home-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.mk-home-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.mk-home-hero-text {
  animation: mkFadeUp 0.7s ease-out 0.1s both;
}

.mk-home-hero-text h1 {
  font-family: var(--mk-serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--mk-bg-dark);
  margin: 0 0 24px;
  letter-spacing: -0.025em;
}

.mk-home-hero-subtitle {
  font-size: 17px;
  color: var(--mk-text-secondary);
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 480px;
}

.mk-home-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.mk-home-hero-microcopy {
  font-size: 13px;
  color: var(--mk-text-light);
  margin: 0;
}

.mk-home-hero-visual {
  animation: mkFadeUp 0.8s ease-out 0.3s both;
  position: relative;
}

/* Hero Screenshot */

.mk-home-hero-ss {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.5s ease;
}

.mk-home-hero-ss .ss-content {
  padding: 0;
  min-height: auto;
}

.ss-app-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 380px;
}

.ss-sidebar {
  background-color: #f7f8f5;
  border-right: 1px solid #eceee9;
  padding: 0;
}

.ss-sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 10px;
  color: var(--mk-text-muted);
  font-weight: 500;
}

.ss-sidebar-item.ss-sidebar-active {
  background-color: rgba(14, 58, 58, 0.06);
  color: var(--mk-bg-dark);
  font-weight: 600;
}

.ss-sidebar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ss-main {
  padding: 12px 14px;
  overflow: hidden;
}

/* ---- Problem Section ---- */

.mk-home-problem {
  padding: 100px 0;
  background-color: var(--mk-bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mk-home-problem::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.mk-home-problem-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.mk-home-problem .mk-eyebrow {
  background-color: var(--mk-accent);
  color: var(--mk-bg-dark);
}

.mk-home-problem h2 {
  font-family: var(--mk-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.mk-home-problem p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0 0 20px;
}

.mk-home-problem p:last-child {
  margin-bottom: 0;
}

/* Accent line */
.mk-home-problem-accent {
  width: 48px;
  height: 3px;
  background-color: var(--mk-accent);
  border-radius: 2px;
  margin-bottom: 32px;
}

/* ---- Audience Section ---- */

.mk-home-audience {
  padding: 100px 0;
  background-color: var(--mk-bg-white);
  border-top: 1px solid var(--mk-border);
}

.mk-home-audience-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.mk-home-audience-text h2 {
  font-family: var(--mk-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--mk-bg-dark);
}

.mk-home-audience-text > p {
  font-size: 17px;
  color: var(--mk-text-secondary);
  line-height: 1.7;
  margin: 0 0 32px;
}

.mk-home-audience-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-text);
  margin: 0 0 16px;
}

.mk-home-audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mk-home-audience-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--mk-text-secondary);
  line-height: 1.5;
}

.mk-home-audience-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--mk-accent);
  flex-shrink: 0;
}

.mk-home-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mk-home-role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background-color: var(--mk-bg);
  border: 1px solid var(--mk-border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mk-home-role-card:hover {
  border-color: var(--mk-border-dark);
  box-shadow: 0 2px 12px rgba(14, 58, 58, 0.05);
}

.mk-home-role-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--mk-accent-soft);
  border-radius: 8px;
  flex-shrink: 0;
}

.mk-home-role-icon svg {
  width: 20px;
  height: 20px;
  color: var(--mk-bg-dark);
  stroke-width: 2;
}

.mk-home-role-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-text);
}

/* ---- Value Section ---- */

.mk-home-value {
  padding: 100px 0;
}

.mk-home-value-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mk-home-value-card {
  padding: 32px 28px;
  background-color: var(--mk-bg-white);
  border: 1px solid var(--mk-border);
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.mk-home-value-card:hover {
  border-color: var(--mk-border-dark);
  box-shadow: 0 4px 20px rgba(14, 58, 58, 0.06);
  transform: translateY(-2px);
}

.mk-home-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--mk-accent-soft);
  border-radius: 10px;
  margin-bottom: 20px;
}

.mk-home-value-icon svg {
  width: 22px;
  height: 22px;
  color: var(--mk-bg-dark);
  stroke-width: 2;
}

.mk-home-value-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--mk-text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.mk-home-value-card p {
  font-size: 14px;
  color: var(--mk-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ---- Differentiation Section ---- */

.mk-home-diff {
  padding: 100px 0;
  background-color: var(--mk-bg-white);
  border-top: 1px solid var(--mk-border);
  border-bottom: 1px solid var(--mk-border);
}

.mk-home-diff-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.mk-home-diff-body {
  font-size: 17px;
  color: var(--mk-text-secondary);
  line-height: 1.7;
  margin: 0 0 56px;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.mk-home-diff-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mk-home-diff-col {
  padding: 32px 28px;
  border-radius: 12px;
  border: 1px solid var(--mk-border);
  background-color: var(--mk-bg);
}

.mk-home-diff-col.mk-home-diff-highlight {
  background-color: var(--mk-bg-dark);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(14, 58, 58, 0.15);
  position: relative;
}

.mk-home-diff-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-text-light);
  margin: 0 0 8px;
}

.mk-home-diff-highlight .mk-home-diff-col-label {
  color: var(--mk-accent);
}

.mk-home-diff-col h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--mk-text);
}

.mk-home-diff-highlight h3 {
  color: #fff;
}

.mk-home-diff-row {
  margin-bottom: 16px;
}

.mk-home-diff-row:last-child {
  margin-bottom: 0;
}

.mk-home-diff-row-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mk-text-light);
  margin: 0 0 4px;
}

.mk-home-diff-highlight .mk-home-diff-row-label {
  color: rgba(255, 255, 255, 0.5);
}

.mk-home-diff-row-value {
  font-size: 14px;
  color: var(--mk-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.mk-home-diff-highlight .mk-home-diff-row-value {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- How It Works Section ---- */

.mk-home-how {
  padding: 100px 0;
}

.mk-home-how-steps {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connector line */
.mk-home-how-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--mk-border-dark) 0,
    var(--mk-border-dark) 6px,
    transparent 6px,
    transparent 12px
  );
}

.mk-home-how-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.mk-home-how-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--mk-bg-dark);
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(14, 58, 58, 0.12);
}

.mk-home-how-number span {
  font-family: var(--mk-serif);
  font-size: 22px;
  color: var(--mk-accent);
  line-height: 1;
}

.mk-home-how-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--mk-text);
  margin: 0 0 8px;
}

.mk-home-how-step p {
  font-size: 14px;
  color: var(--mk-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---- Spotlight Section ---- */

.mk-home-spotlight {
  padding: 100px 0;
  background-color: var(--mk-bg-white);
  border-top: 1px solid var(--mk-border);
}

.mk-home-spotlight-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.mk-home-spot-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.mk-home-spot-item:last-child {
  margin-bottom: 0;
}

.mk-home-spot-item:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.mk-home-spot-item:nth-child(even) .mk-home-spot-text {
  order: 2;
}

.mk-home-spot-item:nth-child(even) .mk-home-spot-visual {
  order: 1;
}

.mk-home-spot-text h3 {
  font-family: var(--mk-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--mk-bg-dark);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.mk-home-spot-text > p {
  font-size: 16px;
  color: var(--mk-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Spotlight Screenshots */

.mk-home-spot-ss .ss-content {
  padding: 16px 20px;
  min-height: auto;
}

.mk-home-spot-ss .ss-task-list {
  gap: 6px;
}

.mk-home-spot-ss .ss-task-row {
  padding: 8px 10px;
  font-size: 11px;
}

/* ---- Emotional Section ---- */

.mk-home-emotional {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.mk-home-emotional::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(244, 196, 48, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.mk-home-emotional-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.mk-home-emotional h2 {
  font-family: var(--mk-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--mk-bg-dark);
  margin: 0 0 32px;
}

.mk-home-emotional p {
  font-size: 17px;
  color: var(--mk-text-secondary);
  line-height: 1.75;
  margin: 0 0 20px;
}

.mk-home-emotional p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--mk-text);
}

/* ---- Social Proof Section ---- */

.mk-home-proof {
  padding: 100px 0;
  background-color: var(--mk-bg-white);
  border-top: 1px solid var(--mk-border);
}

.mk-home-proof-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mk-home-proof-card {
  padding: 32px 28px;
  background-color: var(--mk-bg);
  border: 1px solid var(--mk-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.mk-home-proof-quote-mark {
  font-family: var(--mk-serif);
  font-size: 48px;
  line-height: 1;
  color: var(--mk-accent);
  margin-bottom: 8px;
}

.mk-home-proof-card blockquote {
  font-size: 15px;
  color: var(--mk-text);
  line-height: 1.7;
  margin: 0 0 24px;
  flex: 1;
  font-style: italic;
}

.mk-home-proof-author {
  font-size: 13px;
  color: var(--mk-text-muted);
  font-weight: 500;
  padding-top: 16px;
  border-top: 1px solid var(--mk-border);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .mk-home-hero {
    padding: 48px 0 72px;
  }

  .mk-home-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mk-home-hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .mk-home-hero-ss {
    transform: none;
  }

  .mk-home-hero-subtitle {
    max-width: none;
  }

  .mk-home-audience-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mk-home-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mk-home-diff-strip {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .mk-home-how-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .mk-home-how-steps::before {
    display: none;
  }

  .mk-home-spot-item,
  .mk-home-spot-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mk-home-spot-item:nth-child(even) .mk-home-spot-text {
    order: 0;
  }

  .mk-home-spot-item:nth-child(even) .mk-home-spot-visual {
    order: 0;
  }

  .mk-home-spot-item {
    margin-bottom: 64px;
  }

  .mk-home-proof-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .mk-home-problem {
    padding: 72px 0;
  }

  .mk-home-audience,
  .mk-home-value,
  .mk-home-diff,
  .mk-home-how,
  .mk-home-spotlight,
  .mk-home-emotional,
  .mk-home-proof {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  .mk-home-hero {
    padding: 32px 0 56px;
  }

  .mk-home-hero-inner {
    padding: 0 20px;
    gap: 32px;
  }

  .mk-home-hero-text h1 {
    font-size: 30px;
  }

  .mk-home-hero-subtitle {
    font-size: 15px;
  }

  .mk-home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mk-home-hero-actions .mk-btn {
    justify-content: center;
    text-align: center;
  }

  .ss-app-layout {
    grid-template-columns: 1fr;
  }

  .ss-sidebar {
    display: none;
  }

  .ss-dayclose-actions {
    flex-wrap: wrap;
  }

  .mk-home-roles {
    grid-template-columns: 1fr;
  }

  .mk-home-value-grid {
    grid-template-columns: 1fr;
  }

  .mk-home-how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 320px;
  }

  .mk-home-problem-inner,
  .mk-home-emotional-inner {
    padding: 0 20px;
  }

  .mk-home-audience-inner,
  .mk-home-diff-inner,
  .mk-home-spotlight-inner {
    padding: 0 20px;
  }

  .mk-home-spot-item {
    margin-bottom: 48px;
    gap: 24px;
  }

  .mk-home-problem,
  .mk-home-audience,
  .mk-home-value,
  .mk-home-diff,
  .mk-home-how,
  .mk-home-spotlight,
  .mk-home-emotional,
  .mk-home-proof {
    padding: 56px 0;
  }
}

@media (max-width: 375px) {
  .mk-home-hero-text h1 {
    font-size: 26px;
  }

  .mk-home-role-card {
    padding: 14px 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mk-home-hero-text,
  .mk-home-hero-visual {
    animation: none;
  }

  .mk-home-hero-ss {
    transform: none;
  }
}
