:root {
  --bg-start: #fffdf8;
  --bg-end: #f4efe2;
  --text-main: #1d1a26;
  --text-muted: #6b6575;
  --card: rgba(255, 255, 255, 0.95);
  --accent: #6c63ff;
  --border: rgba(23, 15, 42, 0.08);
}

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

body {
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  padding: 3rem clamp(1.5rem, 6vw, 4rem);
}

.sticky-actions {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.sticky-apple {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-apple::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 4px rgba(255, 255, 255, 0.08);
}

.sticky-apple:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sticky-menu {
  position: absolute;
  top: 84px;
  right: 0;
  display: grid;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sticky-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: none;
  background: #f8f7ff;
  color: #1d1a26;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.sticky-link:hover {
  transform: translateY(-1px);
  background: #f0eeff;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
}

@media (max-width: 640px) {
  .sticky-actions {
    top: 1rem;
    right: 1rem;
  }

  .sticky-apple {
    width: 56px;
    height: 56px;
    border-width: 2px;
  }

  .sticky-apple::before {
    width: 40px;
    height: 40px;
  }

  .sticky-menu {
    top: 68px;
    min-width: 140px;
  }
}

.course-picker {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.picker-hero {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-inline: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.picker-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.picker-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.path-card {
  grid-column: span 2;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.03), transparent 60%);
  z-index: 0;
}

.path-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  border-color: rgba(108, 99, 255, 0.2);
}

/* 3 on top, 2 under logic */
@media (min-width: 1101px) {
  .path-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .path-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.path-tag {
  align-self: flex-start;
  padding: 0.4rem 1.1rem;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.path-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.path-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.path-card ul {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.path-card ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.75rem;
  position: relative;
}

.path-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.path-card:hover ul li::before {
  transform: translateX(4px);
}

.path-btn {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #6c63ff 0%, #4f46e5 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.25);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.path-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.35);
  filter: brightness(1.1);
}

/* Tablet Layout */
@media (max-width: 1100px) {
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .path-card {
    grid-column: span 1;
  }
  .path-card:nth-child(5) {
    grid-column: span 2;
    justify-self: center;
    max-width: calc(50% - 1rem);
  }
}

/* Mobile Layout */
@media (max-width: 768px) {
  .course-picker {
    padding: 2rem 1.25rem;
  }
  .path-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .path-card, .path-card:nth-child(5) {
    grid-column: span 1;
    max-width: 100%;
    padding: 2rem;
  }
}
