* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-900: #312e81;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --orange-600: #ea580c;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 45px rgba(79, 70, 229, 0.22);
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--slate-50);
  color: var(--slate-800);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.35);
  outline-offset: 3px;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(14px);
}

.header-content,
.page-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.header-content {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--slate-900);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: var(--indigo-600);
  color: var(--white);
  font-weight: 800;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--slate-600);
}

.icon-button,
.profile-button {
  color: inherit;
  background: transparent;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
}

.icon-button:hover,
.profile-button:hover {
  background: var(--slate-100);
}

.notification-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.notification-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #ef4444;
  border: 2px solid var(--white);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.profile-button svg {
  width: 2rem;
  height: 2rem;
  color: var(--slate-400);
}

.page-shell {
  padding: 2rem 0 3rem;
}

.page-shell > * + * {
  margin-top: 2rem;
}

.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 2.5rem);
  color: var(--white);
  background: linear-gradient(135deg, var(--indigo-600), #6d28d9);
  box-shadow: var(--shadow-lg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.theme-badge,
.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.theme-badge {
  padding: 0.35rem 0.75rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.19);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-section h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.hero-description {
  margin: 1rem 0 2rem;
  max-width: 42rem;
  color: #dbe4ff;
  font-size: 1.125rem;
}

.primary-video-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.85rem;
  color: var(--indigo-700);
  background: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: background 180ms ease, transform 180ms ease;
}

.primary-video-button:hover {
  background: var(--indigo-50);
  transform: translateY(-1px);
}

.primary-video-button svg {
  color: var(--indigo-600);
  transition: transform 180ms ease;
}

.primary-video-button:hover svg {
  transform: scale(1.1);
}

.hero-glow {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(48px);
}

.panel {
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.progress-panel {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.section-header,
.community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.progress-header {
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-header h2,
.community-header h2,
.meetup-panel h2,
.company-action-panel h2,
.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--slate-900);
  font-size: 1.25rem;
  line-height: 1.3;
}

.section-header h2 svg {
  color: var(--indigo-600);
  width: 1.5rem;
  height: 1.5rem;
}

.section-header p {
  margin: 0.25rem 0 0;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.progress-number {
  margin: 0;
  color: var(--indigo-600);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.progress-number span:last-child {
  color: var(--slate-400);
  font-size: 1.125rem;
  font-weight: 600;
}

.progress-track {
  height: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-100);
  margin-bottom: 2rem;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--indigo-600);
  transition: width 900ms ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--slate-400);
  font-size: 0.875rem;
  font-weight: 700;
}

.progress-step::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: calc(50% + 1.25rem);
  width: calc(100% - 2.5rem);
  height: 2px;
  background: var(--slate-100);
  z-index: 0;
}

.progress-step:last-child::after {
  display: none;
}

.progress-step svg {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--white);
  border-radius: 999px;
}

.progress-step.completed {
  color: var(--slate-900);
}

.progress-step.completed svg {
  color: var(--emerald-500);
}

.progress-step.pending svg {
  color: var(--slate-200);
}

.eyebrow-heading {
  margin: 0 0 1rem 0.25rem;
  color: var(--slate-500);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.action-card {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  text-align: left;
}

.action-card-completed {
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  opacity: 0.62;
}

.action-card-current {
  border: 2px solid var(--indigo-200);
  background: var(--indigo-50);
  box-shadow: var(--shadow-sm);
  transition: background 180ms ease, transform 180ms ease;
}

.action-card-current:hover {
  background: var(--indigo-100);
  transform: translateY(-1px);
}

.action-card-disabled {
  border: 1px solid var(--slate-200);
  background: var(--white);
  opacity: 0.8;
  cursor: not-allowed;
}

.action-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  flex: 0 0 auto;
}

.action-icon.completed {
  color: var(--emerald-600);
  background: var(--emerald-100);
}

.action-icon.current {
  color: var(--white);
  background: var(--indigo-600);
}

.action-icon.disabled {
  color: var(--slate-400);
  background: var(--slate-100);
}

.action-title,
.action-copy strong {
  color: var(--slate-600);
  font-weight: 800;
}

.completed-text {
  text-decoration: line-through;
}

.action-copy {
  flex: 1;
}

.action-copy strong {
  display: block;
  color: #312e81;
}

.action-copy small {
  display: block;
  margin-top: 0.15rem;
  color: var(--indigo-600);
  font-size: 0.75rem;
  font-weight: 600;
}

.chevron {
  color: var(--indigo-400);
  transition: color 180ms ease, transform 180ms ease;
}

.action-card-current:hover .chevron {
  color: var(--indigo-600);
  transform: translateX(4px);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  gap: 2rem;
}

.community-panel {
  overflow: hidden;
}

.community-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.community-header h2 svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--emerald-500);
}

.new-posts-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.post-list > article + article {
  border-top: 1px solid var(--slate-50);
}

.community-post {
  padding: 1.5rem;
  transition: background 160ms ease;
}

.community-post:hover {
  background: var(--slate-50);
}

.post-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--slate-200), var(--slate-300));
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 800;
}

.author-name {
  color: var(--slate-900);
  font-size: 0.875rem;
  font-weight: 800;
}

.author-company,
.post-time {
  color: var(--slate-400);
  font-weight: 500;
}

.post-time {
  margin-top: 0.1rem;
  font-size: 0.75rem;
}

.post-content {
  margin: 0 0 1rem;
  color: var(--slate-700);
  font-size: 0.875rem;
  line-height: 1.7;
}

.ai-insight {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--indigo-100);
  border-radius: 0.75rem;
  background: var(--indigo-50);
}

.ai-insight h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  color: var(--indigo-700);
  font-size: 0.875rem;
}

.ai-insight p {
  margin: 0;
  color: #312e81;
  font-size: 0.875rem;
  white-space: pre-wrap;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.post-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate-400);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 800;
  transition: color 160ms ease;
}

.post-actions button:hover {
  color: var(--indigo-600);
}

.post-actions .empathy-button:hover {
  color: var(--emerald-600);
}

.post-actions .hint-button {
  margin-left: auto;
  color: var(--indigo-600);
}

.post-actions button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.panel-footer {
  padding: 1rem;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  color: var(--slate-600);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.more-button:hover {
  color: var(--indigo-600);
  background: var(--indigo-50);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.meetup-panel,
.company-action-panel {
  position: relative;
  overflow: hidden;
}

.meetup-panel {
  padding: 1.5rem;
}

.meetup-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  border-bottom-left-radius: 999px;
  background: var(--orange-50);
}

.meetup-content,
.company-action-content {
  position: relative;
  z-index: 1;
}

.event-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  color: var(--orange-600);
  background: var(--orange-100);
  font-size: 0.75rem;
}

.meetup-panel h2 {
  font-size: 1.125rem;
}

.event-date-card {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: var(--slate-50);
}

.event-date-card p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--slate-700);
  font-size: 0.875rem;
}

.event-date-card svg {
  color: var(--slate-400);
}

.event-time {
  margin-top: 0.25rem !important;
  padding-left: 2rem;
  color: var(--slate-600) !important;
}

.agenda-block h3 {
  margin: 0 0 0.5rem;
  color: var(--slate-400);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-block ul {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--slate-600);
  font-size: 0.875rem;
}

.agenda-block li {
  position: relative;
  padding-left: 1rem;
}

.agenda-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--orange-400);
}

.dark-button,
.submit-button {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  color: var(--white);
  background: var(--slate-900);
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.dark-button:hover {
  background: var(--slate-800);
}

.company-action-panel {
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  color: var(--white);
  background: var(--indigo-900);
}

.company-action-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: radial-gradient(circle at center, #fff 0, transparent 45%);
}

.company-action-panel h2 {
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.125rem;
}

.company-action-panel h2 svg {
  color: var(--indigo-300);
}

.company-action-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.company-action-card p {
  margin: 0 0 0.25rem;
  color: #c7d2fe;
  font-size: 0.75rem;
}

.company-action-card strong {
  display: block;
  font-size: 0.875rem;
  line-height: 1.6;
}

.weekly-progress {
  margin-top: 1rem;
}

.weekly-progress-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.weekly-progress-header span {
  color: #c7d2fe;
  font-size: 0.875rem;
  font-weight: 700;
}

.weekly-progress-header strong {
  font-size: 1.125rem;
}

.weekly-progress-header small {
  color: #a5b4fc;
  font-size: 0.875rem;
  font-weight: 500;
}

.weekly-progress-track {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 27, 75, 0.6);
}

.weekly-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--indigo-400);
}

.ghost-button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 800;
  transition: background 160ms ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(100%, 34rem);
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.modal-header h2 {
  font-size: 1.125rem;
}

.modal-header h2 svg {
  color: var(--indigo-600);
}

.modal-body {
  padding: 1.5rem;
}

#post-text {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.9rem;
  color: var(--slate-700);
  background: var(--slate-50);
}

#post-text:focus {
  border-color: transparent;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
}

.form-error {
  min-height: 1.1rem;
  margin: 0.45rem 0 0;
  color: #ef4444;
  font-size: 0.75rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.refine-button,
.secondary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.85rem;
  font-weight: 800;
}

.refine-button {
  padding: 0.7rem 1rem;
  color: var(--indigo-700);
  background: var(--indigo-50);
  font-size: 0.875rem;
  transition: background 160ms ease;
}

.refine-button:hover:not(:disabled) {
  background: var(--indigo-100);
}

.modal-action-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.secondary-button {
  padding: 0.7rem 1rem;
  color: var(--slate-500);
  background: transparent;
  transition: background 160ms ease;
}

.secondary-button:hover {
  background: var(--slate-100);
}

.submit-button {
  width: auto;
  padding: 0.7rem 1.5rem;
  background: var(--indigo-600);
}

.submit-button:hover:not(:disabled) {
  background: var(--indigo-700);
}

button:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 110;
  max-width: min(26rem, calc(100% - 2rem));
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  color: var(--white);
  background: var(--slate-900);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .action-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .progress-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-step::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-content,
  .page-shell {
    width: min(100% - 1rem, 72rem);
  }

  .brand-name,
  .profile-button span {
    display: none;
  }

  .profile-button {
    padding: 0.25rem;
  }

  .page-shell {
    padding-top: 1rem;
  }

  .hero-section {
    padding: 1.5rem;
  }

  .section-header,
  .progress-header,
  .community-header,
  .modal-actions,
  .modal-action-group {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-number {
    text-align: left;
  }

  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-actions .hint-button {
    margin-left: 0;
    width: 100%;
  }

  .refine-button,
  .modal-action-group,
  .secondary-button,
  .submit-button {
    width: 100%;
  }
}
