/* ══════════════════════════════════════════
   PULSE FEEDBACK — DESIGN SYSTEM
   Dark glassmorphism · Syne + Instrument Sans
   ══════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────── */
:root {
  /* Background */
  --bg-base:       #0a0a0f;
  --bg-deep:       #06060a;

  /* Glass surfaces */
  --glass-bg:      rgba(255, 255, 255, 0.04);
  --glass-border:  rgba(255, 255, 255, 0.09);
  --glass-hover:   rgba(255, 255, 255, 0.07);

  /* Accent — vivid coral-orange */
  --accent:        #ff6b35;
  --accent-dim:    rgba(255, 107, 53, 0.15);
  --accent-glow:   rgba(255, 107, 53, 0.35);

  /* Secondary accent — electric teal */
  --teal:          #00d4aa;
  --teal-dim:      rgba(0, 212, 170, 0.12);

  /* Orb colors */
  --orb-1:         rgba(255, 107, 53, 0.18);
  --orb-2:         rgba(0, 212, 170, 0.12);
  --orb-3:         rgba(120, 80, 255, 0.10);

  /* Text */
  --text-primary:  #f0ede8;
  --text-secondary:#9b9699;
  --text-muted:    #5a5760;

  /* Stars */
  --star-on:       #ffc845;
  --star-off:      #2a2730;

  /* Functional */
  --success:       #00d4aa;
  --error:         #ff5c7a;

  /* Typography */
  --font-display:  'Syne', sans-serif;
  --font-body:     'Instrument Sans', sans-serif;

  /* Sizing */
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     22px;
  --radius-xl:     28px;

  /* Transitions */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:        0.15s;
  --t-med:         0.28s;
  --t-slow:        0.5s;
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }
a { text-decoration: none; color: inherit; }

/* ── BASE ────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── AMBIENT ORBS ────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  top: -150px; left: -150px;
  background: var(--orb-1);
  animation-duration: 18s;
}

.orb-2 {
  width: 500px; height: 500px;
  top: 40%; right: -180px;
  background: var(--orb-2);
  animation-duration: 22s;
  animation-delay: -6s;
}

.orb-3 {
  width: 400px; height: 400px;
  bottom: -100px; left: 30%;
  background: var(--orb-3);
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ── NOISE OVERLAY ───────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* Everything above z-index 1 */
header, section, main, footer { position: relative; z-index: 2; }

/* ── HEADER ──────────────────────────────── */
.header {
  padding: 0 24px;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;        /* white bg so handprint shows correctly */
  display: grid;
  place-items: center;
  padding: 3px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;  /* removes white bg, shows only the red hand */
  display: block;
}

.header-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--glass-bg);
}

/* ── HERO ────────────────────────────────── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #ff9a5c 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── GRID (form + chart only) ────────────── */
.grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  grid-template-areas: "form" "chart";
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "form chart";
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: 420px 1fr;
    grid-template-areas: "form chart";
    align-items: start;
  }
}

/* ── CARDS ───────────────────────────────── */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  animation: card-in var(--t-slow) var(--ease) both;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.card--form  { grid-area: form; }
.card--chart { grid-area: chart; }

.card--chart { animation-delay: 0.08s; }
.card--list  { animation-delay: 0.16s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD LABEL ──────────────────────────── */
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-label span {
  color: var(--accent);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* ── FORM FIELDS ─────────────────────────── */
.field {
  margin-bottom: 16px;
  position: relative;
}

input[type="text"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  resize: none;
  -webkit-appearance: none;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.05);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 20px rgba(255,107,53,0.08);
}

textarea {
  height: 110px;
  display: block;
}

.char-count {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* ── STARS ───────────────────────────────── */
.star-field {
  margin-bottom: 18px;
}

.star-row {
  display: flex;
  gap: 2px;
  margin-bottom: 6px;
}

.star-btn {
  font-size: 30px;
  color: var(--star-off);
  padding: 4px 5px;
  border-radius: 8px;
  transition: color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              text-shadow var(--t-fast) var(--ease);
  line-height: 1;
}

.star-btn:hover,
.star-btn.lit {
  color: var(--star-on);
  transform: scale(1.2) translateY(-2px);
  text-shadow: 0 0 16px rgba(255, 200, 69, 0.6);
}

.star-btn.active {
  color: var(--star-on);
  text-shadow: 0 0 10px rgba(255, 200, 69, 0.4);
}

.star-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  transition: color var(--t-fast);
}

/* ── SUBMIT ──────────────────────────────── */
.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), #ff8c55);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              opacity var(--t-fast);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.submit-btn:hover::before { opacity: 1; }

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.submit-btn svg {
  transition: transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}

.submit-btn:hover svg {
  transform: translateX(4px);
}

/* ── TOAST ───────────────────────────────── */
.toast {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--t-med) var(--ease),
              padding var(--t-med) var(--ease),
              opacity var(--t-med) var(--ease);
}

.toast.visible {
  padding: 11px 14px;
  max-height: 60px;
  opacity: 1;
}

.toast.success {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.toast.error {
  background: rgba(255, 92, 122, 0.1);
  color: var(--error);
  border: 1px solid rgba(255, 92, 122, 0.2);
}

/* ── STATS ROW ───────────────────────────── */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 0;
  margin-bottom: 22px;
}

.stat-box {
  flex: 1;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
  flex-shrink: 0;
}

/* ── CHART ───────────────────────────────── */
.chart-box {
  position: relative;
  height: 190px;
}

/* ── COUNT BADGE ─────────────────────────── */
.count-badge {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255,107,53,0.2);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  white-space: nowrap;
  align-self: flex-start;
}

/* ── SECTION DIVIDER ─────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ── REVIEWS SECTION ─────────────────────── */
.reviews-section {
  position: relative;
  z-index: 2;
  padding: 48px 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,107,53,0.03) 30%, rgba(0,0,0,0.15) 100%);
  border-top: 1px solid var(--glass-border);
  margin-top: 8px;
}

.reviews-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.reviews-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.reviews-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.reviews-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.1;
}

.reviews-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 340px;
}

/* ── REVIEWS GRID ────────────────────────── */
.reviews-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ── FEEDBACK ITEM ───────────────────────── */
.fi {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  animation: card-in 0.35s var(--ease) both;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.fi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.fi:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.fi-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: hsl(var(--hue), 55%, 22%);
  border: 1px solid hsl(var(--hue), 55%, 35%);
  color: hsl(var(--hue), 80%, 75%);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fi-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fi-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fi-stars {
  font-size: 0.72rem;
  color: var(--star-on);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255,200,69,0.3);
}

.fi-stars-empty {
  opacity: 0.2;
}

.fi-text {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.fi-rating-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.fi-rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--star-on));
  border-radius: 99px;
  transition: width 0.6s var(--ease);
}

/* ── LOADER ──────────────────────────────── */
.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 48px 20px 36px;
  }

  .grid {
    padding: 0 16px 40px;
    gap: 14px;
  }

  .card {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .star-btn {
    font-size: 26px;
  }

  .stats-row {
    gap: 0;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .chart-box {
    height: 160px;
  }

  .reviews-section {
    padding: 36px 0 0;
  }

  .reviews-inner {
    padding: 28px 16px 48px;
  }

  .reviews-hero {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .reviews-title {
    font-size: 1.7rem;
  }

  .section-divider {
    padding: 0 16px;
  }
}

@media (min-width: 481px) and (max-width: 699px) {
  .hero-title { font-size: 3rem; }
  .grid { padding: 0 20px 48px; }
  .reviews-inner { padding: 32px 20px 56px; }
  .reviews-hero { flex-direction: column; gap: 14px; }
}

@media (min-width: 700px) and (max-width: 999px) {
  .hero-title { font-size: 3.6rem; }
}