/* ================================================
   Pulsoid Groups Landing Page Styles
   ================================================ */

.groups-page {
  background: var(--background);
  font-family: var(--font-family);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.g-text-teal {
  color: var(--brand-teal);
}

/* ================================================
   Buttons
   ================================================ */

.g-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--brand-teal);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(7, 171, 161, 0.25);
}

.g-btn-primary:hover,
.g-btn-primary:focus {
  background: var(--brand-teal-light);
  color: var(--text-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(7, 171, 161, 0.45);
}

.g-btn-primary--lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 10px;
}

.g-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 4px;
  transition: color 0.2s ease;
}

.g-btn-link:hover,
.g-btn-link:focus {
  color: var(--brand-teal);
  text-decoration: none;
}

.g-btn-link svg {
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.g-btn-link:hover svg {
  transform: translateY(2px);
}

/* ================================================
   Hero
   ================================================ */

.g-hero-section {
  padding: 60px 24px 80px;
  background: radial-gradient(ellipse at top right, rgba(7, 171, 161, 0.08) 0%, transparent 50%), var(--background);
  position: relative;
  overflow: hidden;
}

.g-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.g-hero-content {
  flex: 1;
  text-align: center;
  max-width: 560px;
}

.g-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(7, 171, 161, 0.1);
  border: 1px solid rgba(7, 171, 161, 0.3);
  border-radius: 999px;
  color: var(--brand-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.g-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 8px var(--brand-teal-glow);
}

.g-hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 18px;
}

.g-hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.g-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.g-hero-preview {
  flex: 1.5;
  width: 100%;
  max-width: 840px;
}

.g-hero-iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  background: linear-gradient(180deg, #14141c 0%, #0d0d12 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(7, 171, 161, 0.08);
}

/* ================================================
   Hero preview mock (browser window with tiles)
   ================================================ */

.g-preview-window {
  background: linear-gradient(180deg, #14141c 0%, #0d0d12 100%);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(7, 171, 161, 0.08);
}

.g-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-1);
  position: relative;
}

.g-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.g-preview-dot--r { background: #ff5f57; }
.g-preview-dot--y { background: #febc2e; }
.g-preview-dot--g { background: #28c840; }

.g-preview-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.g-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.g-tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 12px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.g-tile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.g-tile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a35 0%, #1a1a22 100%);
  border: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.g-tile-avatar--teal {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #059e95 100%);
  border-color: rgba(7, 171, 161, 0.6);
  color: var(--background);
}

.g-tile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.g-tile-bpm {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--brand-teal);
}

.g-tile-bpm-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 4px;
}

.g-tile-bpm-unit {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.g-tile-wave {
  height: 18px;
  width: 100%;
  color: var(--brand-teal);
  opacity: 0.85;
}

.g-tile-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.g-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border-1);
  background: rgba(0, 0, 0, 0.2);
}

.g-preview-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.g-preview-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-teal);
}

.g-preview-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 8px var(--brand-teal);
  animation: g-pulse 1.6s ease-in-out infinite;
}

@keyframes g-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ================================================
   Generic section
   ================================================ */

.g-section {
  padding: 48px 24px;
}

.g-section--what {
  background: linear-gradient(180deg, var(--background) 0%, #0d0d12 100%);
}

.g-section--custom {
  background: linear-gradient(180deg, #0d0d12 0%, var(--layer-1) 100%);
}

.g-section--why {
  background: linear-gradient(180deg, var(--layer-1) 0%, #0d0d12 100%);
}

.g-section--how {
  background: linear-gradient(180deg, #0d0d12 0%, var(--layer-1) 100%);
}

.g-section--cases {
  background: linear-gradient(180deg, var(--layer-1) 0%, var(--background) 100%);
}

.g-section--testimonial {
  background: var(--background);
  padding: 56px 24px;
}

.g-section--cta {
  background: radial-gradient(ellipse at center, rgba(7, 171, 161, 0.06) 0%, transparent 60%), var(--background);
  padding: 64px 24px;
}

.g-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.g-section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 14px;
}

.g-section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.g-section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ================================================
   Card grids (info + step)
   ================================================ */

.g-two-grid,
.g-four-grid,
.g-steps-grid {
  display: grid;
  gap: 16px;
}

.g-two-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.g-four-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.g-steps-grid { grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto; }

.g-card {
  background: linear-gradient(180deg, rgba(30, 30, 38, 0.5) 0%, rgba(22, 22, 28, 0.3) 100%);
  border: 1px solid rgba(43, 43, 51, 0.6);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.g-card:hover {
  border-color: rgba(7, 171, 161, 0.3);
  transform: translateY(-3px);
}

.g-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(7, 171, 161, 0.1);
  border: 1px solid rgba(7, 171, 161, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  margin-bottom: 16px;
}

.g-card-icon svg {
  width: 22px;
  height: 22px;
}

.g-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.g-card-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Step card */

.g-card--step .g-step-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 12px;
  line-height: 1;
  font-feature-settings: 'tnum';
}

/* ================================================
   Customization (split layout)
   ================================================ */

.g-custom-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.g-custom-copy .g-section-label,
.g-custom-copy .g-section-title,
.g-custom-copy .g-section-subtitle {
  text-align: left;
  margin-left: 0;
}

.g-custom-copy .g-section-subtitle {
  margin: 0 0 32px;
}

.g-custom-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(7, 171, 161, 0.1);
  border: 1px solid rgba(7, 171, 161, 0.3);
  border-radius: 999px;
  color: var(--brand-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.g-custom-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 8px var(--brand-teal-glow);
}

.g-custom-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(7, 171, 161, 0.12) 0%, rgba(7, 171, 161, 0.04) 100%);
  border: 1px solid rgba(7, 171, 161, 0.35);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.g-custom-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(7, 171, 161, 0.18);
  border: 1px solid rgba(7, 171, 161, 0.35);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g-custom-callout-icon svg {
  width: 20px;
  height: 20px;
}

.g-custom-callout-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.g-custom-callout-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
}

.g-custom-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.g-custom-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.g-custom-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(7, 171, 161, 0.1);
  border: 1px solid rgba(7, 171, 161, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  flex-shrink: 0;
}

.g-custom-row-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.g-custom-row-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Widget configuration mock */

.g-custom-mock {
  width: 100%;
}

.g-config-mock {
  background: linear-gradient(180deg, #14141c 0%, #0d0d12 100%);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 22px 22px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.g-config-mock-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.g-config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.g-config-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.g-config-input {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.g-config-input--muted {
  color: rgba(255, 255, 255, 0.3);
}

.g-config-select svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.g-config-number {
  padding-right: 8px;
}

.g-config-number-arrows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--text-muted);
}

.g-config-number-arrows svg {
  display: block;
  opacity: 0.7;
}

.g-config-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 2px;
}

.g-config-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.g-config-check-label {
  color: var(--text-primary);
}

.g-config-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
}

.g-config-checkbox--on {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: var(--background);
}

/* ================================================
   Testimonial
   ================================================ */

.g-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  max-width: 760px;
  margin: 0 auto;
}

.g-testimonial-inner {
  padding: 40px 28px 36px;
  background: linear-gradient(180deg, rgba(30, 30, 38, 0.5) 0%, rgba(22, 22, 28, 0.3) 100%);
  border: 1px solid rgba(43, 43, 51, 0.6);
  border-radius: 18px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.g-testimonial-quote-mark {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: var(--background);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  box-shadow: 0 8px 24px rgba(7, 171, 161, 0.45);
}

.g-testimonial-quote {
  flex: 1 0 auto;
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

.g-testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.g-testimonial-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(7, 171, 161, 0.12);
  border: 1px solid rgba(7, 171, 161, 0.3);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g-testimonial-author-avatar svg {
  width: 20px;
  height: 20px;
}

.g-testimonial-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.g-testimonial-author-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (min-width: 768px) {
  .g-testimonial-inner {
    padding: 48px 56px 44px;
  }

  .g-testimonial-quote {
    font-size: 20px;
  }
}

@media (min-width: 900px) {
  .g-testimonial-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    gap: 28px;
  }

  .g-testimonial-grid .g-testimonial-inner {
    padding: 44px 40px 40px;
  }
}

/* ================================================
   Final CTA
   ================================================ */

.g-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.g-cta-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px var(--brand-teal-glow));
}

.g-cta-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.g-cta-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.g-cta-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.g-cta-footnote {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
  margin: 18px 0 0;
  line-height: 1.55;
}

/* ================================================
   Tablet (768+)
   ================================================ */

@media (min-width: 768px) {
  .g-hero-section {
    padding: 80px 40px 100px;
  }

  .g-hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 60px;
  }

  .g-hero-content {
    text-align: left;
  }

  .g-hero-title {
    font-size: 46px;
  }

  .g-hero-subtitle {
    font-size: 18px;
  }

  .g-hero-actions {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }

  .g-two-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
  }

  .g-four-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .g-section-title,
  .g-cta-title {
    font-size: 38px;
  }

  .g-custom-inner {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ================================================
   Desktop (1024+)
   ================================================ */

@media (min-width: 1024px) {
  .g-hero-title {
    font-size: 52px;
  }

  .g-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .g-section-title,
  .g-cta-title {
    font-size: 42px;
  }
}

/* ================================================
   Wide (1440+)
   ================================================ */

@media (min-width: 1440px) {
  .g-section-inner {
    max-width: 1180px;
  }
}
