:root {
  --pri-color: #05361a;
  --sec-color: #aad13f;
  --acc-color: #B6DB8C;
  --shadow-main: 0px 4px 15px rgba(0, 0, 0, 0.1);
  --grey-txt-color: #707070;
  --body-bg-color: #f5f5f5;
  --black-txt-color: #1d1d1d;
}

.playground-page {
  background: var(--body-bg-color);
  padding: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;;
  gap: 80px;
  margin-top: 120px;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;;
}
.section-head h2 {
  font-size: 42px !important;
  width: auto;
  max-width: 100%;
  text-align: center;
}

.highlight {
  text-decoration: underline;
  text-decoration-color: var(--sec-color);
  text-decoration-thickness: 10px;
  text-underline-offset: -3px;
  text-decoration-skip-ink: none;
}

.playground-hero {
  background: linear-gradient(120deg, #05361a 0%, #0a4f26 55%, #05361a 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.playground-hero::before,
.playground-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(170, 209, 63, 0.12);
  filter: blur(0.5px);
}

.playground-hero::before {
  width: 240px;
  height: 240px;
  top: -60px;
  right: 8%;
}

.playground-hero::after {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: 4%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: #ffffff;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-text h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  margin: 18px 0 12px;
  text-align: left;
  max-width: 18ch;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.playground-hero .button-sec {
  border-color: #ffffff;
  color: #ffffff;
}

.playground-hero .button-sec:hover {
  background: #ffffff;
  color: var(--pri-color);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.stat-value {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(5, 72, 33, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 16px;
}

.hero-card h3 {
  margin: 0;
  font-size: 20px;
  color: var(--pri-color);
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #2b2b2b;
  font-size: 14px;
}

.hero-card ul li {
  padding-left: 16px;
  position: relative;
}

.hero-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sec-color);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

.hero-note {
  background: #f4f7ef;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e0ead6;
}

.hero-note strong {
  display: block;
  color: var(--pri-color);
  margin-bottom: 6px;
  font-size: 13px;
}

.hero-note p {
  margin: 0;
  color: #5c645b;
  font-size: 13px;
}

.playground-demos,
.playground-steps,
.playground-cta {
  width: 100%;
}

.playground-demos,
.playground-steps {
  padding: 0 24px;
}

.section-head {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 720px;
  padding: 0 20px;
}

.section-head h2 {
  font-size: 40px;
  margin-bottom: 12px;
  width: auto;
}

.section-head p {
  color: var(--grey-txt-color);
  font-size: 16px;
}

.demo-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.demo-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #e4e8e2;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(5, 72, 33, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(5, 72, 33, 0.12);
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.demo-card h3 {
  margin: 4px 0 0;
  font-size: 20px;
  color: var(--pri-color);
}

.demo-eyebrow {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a8a8a;
  font-weight: 600;
}

.demo-chip {
  background: var(--acc-color);
  color: var(--pri-color);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
}

.demo-card p {
  margin: 0;
  color: #6f6f6f;
  font-size: 14px;
}

.demo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #3a3a3a;
  font-size: 13px;
}

.demo-list li {
  padding-left: 18px;
  position: relative;
}

.demo-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sec-color);
  position: absolute;
  left: 0;
  top: 7px;
}

.demo-card .button {
  width: fit-content;
}

.playground-steps {
  padding: 0 24px;
}

.steps-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eef1eb;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(5, 72, 33, 0.05);
  transition: transform 0.4s ease;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sec-color);
  color: var(--pri-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 4px;
}

.step-card h4 {
  margin: 0;
  font-size: 20px;
  color: var(--pri-color);
  font-weight: 500;
}

.step-card p {
  margin: 0;
  color: #7a7a7a;
  font-size: 15px;
}

.playground-cta {
  padding: 0 24px;
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  background: var(--linear-grd);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 18px;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 50px rgba(5, 72, 33, 0.2);
}

.cta-inner h2 {
  margin: 0;
  font-size: 36px;
  color: #ffffff;
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

.notion-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.notion-sidebar {
  position: sticky;
  top: 110px;
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 18px;
  box-shadow: none;
}

.sidebar-block h2 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.sidebar-block p {
  margin: 0;
  color: #7a7a7a;
  font-size: 13px;
  line-height: 1.7;
}

.sidebar-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-block h4 {
  margin: 0 0 10px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a8a8a;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: #2b2b2b;
  font-size: 13px;
}

.sidebar-list li {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fbfbfb;
  border: 1px solid #f0f0f0;
}

.sidebar-note {
  border-left: 2px solid var(--pri-color);
  padding: 10px 10px 10px 12px;
  background: #fbfbfb;
  border-radius: 10px;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.notion-content {
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 26px;
  display: grid;
  gap: 32px;
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(170, 209, 63, 0.2);
  color: var(--pri-color);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.playground-cta .button-main {
  background: #ffffff;
  color: var(--pri-color);
  border: 1.5px solid #ffffff;
}

.playground-cta .button-main:hover {
  background: var(--sec-color);
  color: var(--pri-color);
  border: 1.5px solid var(--sec-color);
}

.playground-cta .button-sec {
  border: 1.5px solid #ffffff;
  color: #ffffff;
  background: none;
}

.playground-cta .button-sec:hover {
  background: #ffffff;
  color: var(--pri-color);
}

.notion-hero {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.page-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a8a8a;
}

.notion-hero h1 {
  font-size: 32px;
  margin: 0;
  letter-spacing: -0.01em;
}

.notion-hero .lede {
  color: #7a7a7a;
  font-size: 14px;
  max-width: 560px;
  margin: 0;
}

.eyebrow.muted {
  background: transparent;
  border: 1px solid rgba(5, 72, 33, 0.2);
  color: var(--grey-txt-color);
}

.playground-shell {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sandbox-card {
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 16px;
  box-shadow: none;
  display: grid;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sandbox-card:hover {
  transform: translateY(-1px);
  border-color: rgba(5, 72, 33, 0.2);
}

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

.chip {
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-body {
  display: grid;
  gap: 12px;
}

.card-copy {
  color: #7a7a7a;
  font-size: 13px;
  margin-top: -6px;
}

.card-body label {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-txt-color);
}

.card-body input,
.card-body select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e3e6e1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.card-body input:focus,
.card-body select:focus {
  outline: none;
  border-color: var(--pri-color);
  box-shadow: 0 0 0 3px rgba(5, 72, 33, 0.1);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-item {
  border: 1.5px solid #e3e6e1;
  border-radius: 14px;
  padding: 16px;
  background: white;
  display: grid;
  gap: 8px;
  animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(5, 72, 33, 0.04);
  transition: all 0.25s ease;
}

.preview-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(5, 72, 33, 0.08);
  border-color: rgba(5, 72, 33, 0.2);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.preview-item strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--black-txt-color);
  letter-spacing: -0.01em;
}

.preview-item span {
  font-size: 13px;
  color: var(--grey-txt-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-item span::before {
  content: '•';
  color: var(--pri-color);
  font-weight: 700;
  font-size: 16px;
}

.chat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.chat-card {
  background: #ffffff;
  border: 1.5px solid #e3e6e1;
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(5, 72, 33, 0.08);
  transition: all 0.3s ease;
}

.chat-card:hover {
  border-color: rgba(5, 72, 33, 0.2);
  box-shadow: 0 20px 44px rgba(5, 72, 33, 0.12);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e6e1;
}

.chat-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--black-txt-color);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.chat-role-label {
  font-size: 12px;
  color: var(--grey-txt-color);
  margin: 0;
  font-weight: 500;
}

.chat-window {
  border: 1.5px solid #e3e6e1;
  border-radius: 16px;
  padding: 16px;
  height: 420px;
  overflow-y: auto;
  background: linear-gradient(to bottom, #fafbf9, #f9faf8);
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-window::-webkit-scrollbar {
  width: 8px;
}

.chat-window::-webkit-scrollbar-track {
  background: transparent;
}

.chat-window::-webkit-scrollbar-thumb {
  background: rgba(5, 72, 33, 0.15);
  border-radius: 8px;
}

.chat-window::-webkit-scrollbar-thumb:hover {
  background: rgba(5, 72, 33, 0.25);
}

.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--grey-txt-color);
  text-align: center;
  gap: 12px;
  opacity: 0.6;
}

.chat-empty-state svg {
  stroke: var(--grey-txt-color);
  opacity: 0.4;
}

.chat-empty-state p {
  font-size: 14px;
  margin: 0;
  max-width: 200px;
  line-height: 1.5;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  max-width: 78%;
  line-height: 1.6;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  animation: bubbleAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  word-wrap: break-word;
  position: relative;
}

@keyframes bubbleAppear {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-bubble.outgoing {
  background: linear-gradient(135deg, #054821, #065a29);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.chat-bubble.incoming {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #1d1d1d;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.chat-input input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e3e6e1;
  border-radius: 14px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
  font-family: inherit;
}

.chat-input input:focus {
  outline: none;
  border-color: var(--pri-color);
  box-shadow: 0 0 0 4px rgba(5, 72, 33, 0.08);
  transform: translateY(-1px);
}

.chat-input input:disabled {
  background: #f9fafb;
  color: var(--grey-txt-color);
  cursor: not-allowed;
  opacity: 0.6;
}

.chat-send-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px !important;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.chat-send-btn svg {
  transition: transform 0.3s ease;
}

.chat-send-btn:hover:not(:disabled) svg {
  transform: translateX(3px) translateY(-3px);
}

.playground-cta {
  border-top: none;
  padding-top: 0;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   ============================================ */

/* Tablet - Large (1024px and below) */
@media (max-width: 1024px) {
  .playground-page {
    gap: 64px;
  }

  .playground-hero {
    padding: 120px 0 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 40px;
    max-width: none;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-inner {
    padding: 32px;
  }

  .chat-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chat-card {
    max-width: 100%;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .preview-stack {
    position: static;
    max-height: 400px;
  }

  .modal-panel {
    width: 92vw;
  }

  .modal-panel-wide {
    width: 92vw;
  }
}

/* Tablet - Medium (768px and below) */
@media (max-width: 768px) {
  .playground-page {
    gap: 56px;
  }

  .playground-hero {
    padding: 110px 0 70px;
  }

  .hero-inner {
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 32px;
    text-align: center;
  }

  .hero-text p {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .hero-card {
    padding: 20px;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .demo-card {
    padding: 18px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    padding: 28px;
  }

  .chat-window {
    height: 300px;
  }

  .chat-header h3 {
    font-size: 15px;
  }

  .chat-role-label {
    font-size: 11px;
  }

  .chat-send-btn {
    padding: 12px 20px !important;
    font-size: 14px;
  }

  .chat-send-btn span {
    display: none;
  }

  .cta-inner h2 {
    font-size: 28px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .button {
    width: 100%;
  }

  /* Modal adjustments */
  .modal-header {
    padding: 20px 24px;
  }

  .modal-header h3 {
    font-size: 20px;
  }

  .modal-subtitle {
    font-size: 14px;
  }

  .modal-close {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-form-section label {
    font-size: 12px;
  }

  .modal-form-section input,
  .modal-form-section select,
  .modal-form-section textarea {
    font-size: 14px;
    padding: 12px 14px;
  }

  .preview-stack {
    max-height: 350px;
  }

  .preview-stack h4 {
    font-size: 11px;
  }

  .step-progress {
    padding: 16px;
    gap: 10px;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .step-label {
    font-size: 11px;
  }

  .step-line {
    width: 30px;
  }
}

/* Mobile - Large (480px and below) */
@media (max-width: 480px) {
  .playground-page {
    gap: 48px;
  }

  .playground-hero {
    padding: 100px 0 60px;
  }

  .hero-tag {
    font-size: 10px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .section-head p {
    font-size: 14px;
  }

  .demo-card h3 {
    font-size: 18px;
  }

  .demo-card .button {
    width: 100%;
  }

  .step-card {
    padding: 18px;
  }

  .step-number {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .cta-inner {
    padding: 24px;
  }

  .chat-card {
    padding: 16px;
  }

  .chat-header h3 {
    font-size: 14px;
  }

  .chat-role-label {
    font-size: 10px;
  }

  .chat-window {
    height: 280px;
    padding: 12px;
  }

  .chat-bubble {
    font-size: 13px;
    padding: 12px 16px;
    max-width: 85%;
  }

  .chat-input input {
    padding: 12px 16px;
    font-size: 13px;
  }

  .chat-send-btn {
    padding: 12px 18px !important;
    font-size: 13px;
  }

  .cta-inner h2 {
    font-size: 22px;
  }

  .cta-inner p {
    font-size: 14px;
  }

  /* Modal adjustments */
  .modal-panel {
    width: 95vw;
  }

  .modal-panel-wide {
    width: 95vw;
  }

  .modal-header {
    padding: 18px 20px;
  }

  .modal-eyebrow {
    font-size: 10px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-subtitle {
    font-size: 13px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-form-section {
    gap: 16px;
  }

  .modal-form-section label {
    font-size: 11px;
  }

  .modal-form-section input,
  .modal-form-section select,
  .modal-form-section textarea {
    font-size: 13px;
    padding: 11px 13px;
  }

  .modal-form-section .button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .preview-stack {
    padding: 18px;
    max-height: 300px;
  }

  .preview-stack h4 {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .step-progress {
    padding: 14px 12px;
    gap: 8px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .step-label {
    font-size: 10px;
  }

  .step-line {
    width: 24px;
    margin-bottom: 24px;
  }

  .step-heading {
    font-size: 16px;
    padding-bottom: 10px;
  }

  .step-navigation {
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .btn-step {
    padding: 10px 20px;
    font-size: 14px;
  }

  .pg-invoice-item {
    padding: 14px;
  }

  .pg-invoice-totals {
    padding: 14px;
  }

  .pg-total-row {
    font-size: 13px;
  }

  .pg-total-final {
    font-size: 16px;
  }

  .project-card-preview,
  .portal-preview-card {
    padding: 16px;
  }

  .project-client-name,
  .portal-project-name {
    font-size: 16px;
  }

  .project-amount {
    font-size: 20px;
  }

  .project-detail-row {
    font-size: 12px;
  }

  .pg-portal-service {
    padding: 14px;
  }

  .pg-service-input {
    padding: 10px 14px;
    font-size: 14px;
  }

  .pg-task-item input {
    padding: 9px 12px;
    font-size: 13px;
  }

  .pg-task-item select {
    padding: 9px 12px;
    font-size: 12px;
    min-width: 120px;
  }

  .pg-link-item {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .pg-link-item input {
    padding: 9px 12px;
    font-size: 13px;
  }

  .portal-section-title {
    font-size: 11px;
  }

  .deliverable-card {
    padding: 14px;
  }

  .deliverable-title {
    font-size: 14px;
  }

  .deliverable-link {
    font-size: 11px;
    padding: 5px 8px;
  }

  .btn-deliverable {
    padding: 7px 14px;
    font-size: 12px;
  }

  .portal-task-item {
    padding: 10px;
  }

  .portal-task-name {
    font-size: 13px;
  }

  .portal-task-status {
    font-size: 10px;
    padding: 3px 8px;
  }

  #pgInvoicePreview {
    padding: 18px;
  }

  .invoice-preview-number {
    font-size: 20px;
  }

  .invoice-preview-dates {
    font-size: 12px;
  }

  .invoice-preview-parties {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .invoice-party-label {
    font-size: 10px;
  }

  .invoice-party-name {
    font-size: 14px;
  }

  .invoice-party-email {
    font-size: 12px;
  }

  .invoice-items-table th {
    font-size: 11px;
    padding: 8px;
  }

  .invoice-items-table td {
    font-size: 13px;
    padding: 10px 8px;
  }

  .invoice-totals {
    padding: 14px;
  }

  .invoice-total-row {
    font-size: 13px;
  }

  .invoice-total-final {
    font-size: 16px;
  }
}

/* Mobile - Small (360px and below) */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 22px;
  }

  .hero-text p {
    font-size: 13px;
  }

  .demo-card {
    padding: 16px;
  }

  .demo-card h3 {
    font-size: 16px;
  }

  .chat-header h3 {
    font-size: 13px;
  }

  .chat-window {
    height: 260px;
  }

  .chat-bubble {
    font-size: 12px;
    padding: 10px 14px;
  }

  .cta-inner h2 {
    font-size: 20px;
  }

  .modal-header h3 {
    font-size: 16px;
  }

  .modal-subtitle {
    font-size: 12px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-label {
    font-size: 9px;
  }

  .step-line {
    width: 18px;
  }

  .step-heading {
    font-size: 15px;
  }

  .pg-total-final {
    font-size: 15px;
  }

  .project-amount {
    font-size: 18px;
  }

  .invoice-preview-number {
    font-size: 18px;
  }
}

/* ================================ */
/* MODALS - REDESIGNED */
/* ================================ */

.playground-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 24, 18, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.35s ease;
  z-index: 1200;
}

.playground-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.playground-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(5, 72, 33, 0.1);
  width: min(1400px, 90vw);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(5, 72, 33, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.playground-modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-panel-wide {
  width: min(1600px, 94vw);
}

.modal-header {
  padding: 28px 32px;
  border-bottom: 1px solid #e3e6e1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(to bottom, #ffffff, #fafbf9);
}

.modal-header-content {
  flex: 1;
}

.modal-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pri-color);
  margin-bottom: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--pri-color);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.modal-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--black-txt-color);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  color: var(--grey-txt-color);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.modal-close {
  border: none;
  background: #f2f4ef;
  color: #1d1d1d;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: #e5e8e1;
  transform: rotate(90deg);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  min-height: 500px;
}

.modal-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-stack {
  border: 1px solid #e3e6e1;
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #fafbf9 0%, #f9faf8 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

.preview-stack h4 {
  margin: 0 0 20px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--pri-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-stack h4::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--pri-color);
  border-radius: 2px;
}

/* Enhanced form elements in modals */
.modal-form-section label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--black-txt-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modal-form-section input,
.modal-form-section select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e3e6e1;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.modal-form-section input:focus,
.modal-form-section select:focus {
  outline: none;
  border-color: var(--pri-color);
  box-shadow: 0 0 0 4px rgba(5, 72, 33, 0.08);
  transform: translateY(-1px);
}

.modal-form-section .button {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-section .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 72, 33, 0.2);
}

@media (max-width: 1200px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .preview-stack {
    position: static;
    max-height: 400px;
  }

  .modal-panel {
    width: 95vw;
  }
}

@media (max-width: 768px) {
  .modal-header {
    padding: 20px 24px;
  }

  .modal-header h3 {
    font-size: 20px;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-grid {
    min-height: auto;
  }
}

/* ================================ */
/* ENHANCED DEMO FEATURES */
/* ================================ */

/* Step Progress Indicator */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: linear-gradient(135deg, #fafbf9, #f5f7f3);
  border-radius: 16px;
  border: 1px solid #e3e6e1;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  background: #E5E7EB;
  color: #9CA3AF;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.active .step-circle {
  background: var(--pri-color);
  color: white;
  border-color: var(--pri-color);
  box-shadow: 0 4px 12px rgba(5, 72, 33, 0.3);
  transform: scale(1.1);
}

.step-item.completed .step-circle {
  background: #10B981;
  color: white;
  border-color: #10B981;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
  transition: color 0.3s ease;
}

.step-item.active .step-label {
  color: var(--pri-color);
}

.step-item.completed .step-label {
  color: #10B981;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #E5E7EB;
  margin: 0 4px;
  margin-bottom: 28px;
}

/* Invoice Steps */
.invoice-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeSlideIn 0.4s ease-out;
}

.invoice-step.active {
  display: flex;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--black-txt-color);
  margin: 0 0 4px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3e6e1;
}

/* Step Navigation */
.step-navigation {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e3e6e1;
}

.btn-step {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-prev {
  background: #F3F4F6;
  color: #1d1d1d;
}

.btn-prev:hover {
  background: #E5E7EB;
  transform: translateX(-2px);
}

.btn-next {
  margin-left: auto;
}

.btn-next svg {
  transition: transform 0.3s ease;
}

.btn-next:hover svg {
  transform: translateX(3px);
}

/* Invoice Items in Playground */
.pg-invoice-item {
  padding: 16px;
  background: #F9FAFB;
  border-radius: 12px;
  border: 1px solid #e3e6e1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-add-invoice-item {
  padding: 10px 16px;
  background: white;
  border: 1.5px dashed #e3e6e1;
  border-radius: 10px;
  color: var(--pri-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-add-invoice-item:hover {
  border-color: var(--pri-color);
  background: rgba(5, 72, 33, 0.05);
}

.pg-invoice-totals {
  margin-top: 16px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e3e6e1;
}

.pg-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--grey-txt-color);
}

.pg-total-final {
  border-top: 2px solid #e3e6e1;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--pri-color);
}

/* Project Card Preview */
.project-card-preview {
  background: white;
  border: 1.5px solid #e3e6e1;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(5, 72, 33, 0.06);
  animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-client-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--black-txt-color);
}

.project-status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(170, 209, 63, 0.2);
  color: var(--pri-color);
}

.project-status-badge.partial {
  background: rgba(245, 158, 11, 0.2);
  color: #D97706;
}

.project-status-badge.paid {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
}

.project-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--pri-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #e3e6e1;
}

.project-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.project-detail-label {
  color: var(--grey-txt-color);
}

.project-detail-value {
  font-weight: 600;
  color: var(--black-txt-color);
}

.project-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #e3e6e1;
}

.project-service-tag {
  padding: 4px 10px;
  background: rgba(5, 72, 33, 0.08);
  color: var(--pri-color);
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
}

/* Portal Service/Task Inputs */
.pg-portal-service {
  padding: 16px;
  background: #F9FAFB;
  border-radius: 12px;
  border: 1px solid #e3e6e1;
}

.pg-service-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e3e6e1;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  background: white;
}

.pg-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-task-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.pg-task-item input {
  padding: 10px 14px;
  border: 1px solid #e3e6e1;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.pg-task-item select {
  padding: 10px 14px;
  border: 1px solid #e3e6e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: white;
  cursor: pointer;
  min-width: 140px;
}

/* Portal Links */
.pg-portal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pg-link-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 10px;
  border: 1px solid #e3e6e1;
}

.pg-link-item input {
  padding: 10px 14px;
  border: 1px solid #e3e6e1;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

/* Portal Preview */
.portal-preview-card {
  background: white;
  border: 1.5px solid #e3e6e1;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(5, 72, 33, 0.06);
  animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portal-preview-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e3e6e1;
}

.portal-project-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--black-txt-color);
  margin-bottom: 8px;
}

.portal-timeline {
  font-size: 13px;
  color: var(--grey-txt-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-deliverables {
  margin-bottom: 20px;
}

.portal-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pri-color);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.deliverable-card {
  background: #F9FAFB;
  border: 1px solid #e3e6e1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.deliverable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.deliverable-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black-txt-color);
}

.deliverable-link {
  font-size: 12px;
  color: var(--pri-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(5, 72, 33, 0.08);
  border-radius: 6px;
  font-weight: 600;
}

.deliverable-actions {
  display: flex;
  gap: 8px;
}

.btn-deliverable {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-approve {
  background: #10B981;
  color: white;
}

.btn-approve:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-revision {
  background: white;
  color: #F59E0B;
  border: 1.5px solid #FCD34D;
}

.btn-revision:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
  transform: translateY(-2px);
}

.portal-tasks {
  margin-top: 20px;
}

.portal-task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e3e6e1;
  margin-bottom: 8px;
}

.portal-task-name {
  font-size: 14px;
  color: var(--black-txt-color);
  font-weight: 500;
}

.portal-task-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.portal-task-status.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
}

.portal-task-status.in-progress {
  background: rgba(59, 130, 246, 0.2);
  color: #2563EB;
}

.portal-task-status.pending {
  background: rgba(156, 163, 175, 0.2);
  color: #6B7280;
}

/* Invoice Preview Enhancements */
#pgInvoicePreview {
  background: white;
  border-radius: 12px;
  border: 1px solid #e3e6e1;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(5, 72, 33, 0.04);
  max-height: 600px;
  overflow-y: auto;
}

.invoice-preview-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e3e6e1;
}

.invoice-preview-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--pri-color);
  margin-bottom: 8px;
}

.invoice-preview-dates {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--grey-txt-color);
}

.invoice-preview-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.invoice-party-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--pri-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.invoice-party-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--black-txt-color);
  margin-bottom: 4px;
}

.invoice-party-email {
  font-size: 13px;
  color: var(--grey-txt-color);
}

.invoice-items-table {
  width: 100%;
  margin-bottom: 20px;
}

.invoice-items-table th {
  text-align: left;
  padding: 10px;
  background: #F9FAFB;
  font-size: 12px;
  font-weight: 700;
  color: var(--pri-color);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #e3e6e1;
}

.invoice-items-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e3e6e1;
  font-size: 14px;
}

.invoice-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 12px;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.invoice-total-final {
  border-top: 2px solid #e3e6e1;
  padding-top: 12px;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--pri-color);
}

/* Note: Main responsive adjustments are defined above in the consolidated responsive section */
