:root {
  --bg-deep: #120728;
  --bg-mid: #2a0f45;
  --bg-outer: #051d36;

  --card-bg: rgba(28, 10, 56, 0.94);
  --card-border: rgba(255, 255, 255, 0.08);

  --text-main: #f5efe9;
  --text-soft: #ddd3eb;
  --text-muted: #b8accf;
  --accent: #efc56b;

  --grid-card-bg: linear-gradient(180deg, rgba(90, 51, 125, 0.92) 0%, rgba(71, 38, 99, 0.92) 100%);
  --grid-card-hover: linear-gradient(180deg, rgba(106, 64, 141, 0.96) 0%, rgba(84, 48, 111, 0.96) 100%);
  --grid-card-active: linear-gradient(180deg, rgba(129, 82, 172, 0.98) 0%, rgba(100, 56, 140, 0.98) 100%);

  --field-bg: rgba(108, 67, 148, 0.18);
  --field-border: rgba(255, 255, 255, 0.1);

  --gold-bg: linear-gradient(180deg, #efc56b 0%, #d8a93f 100%);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  background: #0d1630;
  color: var(--text-main);
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(150, 67, 180, 0.26), transparent 24%),
    linear-gradient(180deg, #3f114f 0%, #26093f 32%, #18052e 65%, #071f38 100%);
  z-index: -2;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.05), transparent 12%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.04), transparent 10%),
    radial-gradient(circle at 70% 80%, rgba(153, 87, 205, 0.12), transparent 20%);
  z-index: -1;
}

.app-shell {
  min-height: 100vh;
  padding: 42px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card {
  width: min(1100px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 36px 32px 34px;
  backdrop-filter: blur(8px);
}

.icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.tool-icon {
  font-size: 30px;
  line-height: 1;
  opacity: 0.95;
}

.eyebrow {
  text-align: center;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5vw, 4.15rem);
  line-height: 1;
  font-weight: 600;
  color: var(--text-main);
}

.subtitle {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.16rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 18px auto 30px;
}

.intro-block {
  text-align: center;
  margin-bottom: 28px;
  padding: 0 10px;
}

.intro-block h2,
.reflection-preview h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin: 0 0 12px;
  font-weight: 600;
}

.intro-block p {
  margin: 0 auto;
  max-width: 700px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.scenario-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--grid-card-bg);
  color: var(--text-main);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  min-height: 150px;
}

.scenario-card:hover {
  transform: translateY(-2px);
  background: var(--grid-card-hover);
}

.scenario-card.active {
  background: var(--grid-card-active);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 12px 24px rgba(42, 10, 73, 0.42);
}

.scenario-title {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 10px;
}

.scenario-subtitle {
  display: block;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.reflection-preview {
  background: rgba(82, 43, 120, 0.18);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.reflection-preview h3 {
  margin-bottom: 14px;
}

.preview-content {
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 1rem;
}

.preview-content p {
  margin: 0 0 12px;
}

.preview-content strong {
  color: var(--text-main);
}

.empower-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(135, 90, 178, 0.18);
  border: 1px solid rgba(239, 197, 107, 0.14);
  box-shadow:
    0 0 0 1px rgba(239, 197, 107, 0.05),
    0 14px 32px rgba(49, 14, 76, 0.18);
}

.empower-label {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.empower-text {
  margin: 0;
  color: #f3d78a;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0;
}

.action-btn {
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn.primary {
  background: var(--gold-bg);
  color: #2a1637;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .scenario-card {
    min-height: unset;
  }

  .scenario-title {
    font-size: 1.5rem;
  }
}