/* ============================================
   RORY MCCAFFREY — RETRO/SYNTHWAVE PROMO SITE
   ============================================ */

:root {
  --bg: #0a0217;
  --bg-alt: #12042b;
  --ink: #f1e9ff;
  --ink-dim: #b9a8de;
  --pink: #ff2e88;
  --pink-soft: #ff6ec7;
  --cyan: #01fdf6;
  --purple: #a537fd;
  --orange: #ff9a3d;
  --yellow: #ffd54a;
  --line: rgba(255, 46, 136, 0.25);
  --shadow-glow: 0 0 20px rgba(255, 46, 136, 0.5), 0 0 40px rgba(165, 55, 253, 0.25);
  --font-display: 'Press Start 2P', cursive;
  --font-mono: 'Space Mono', monospace;
  --font-terminal: 'VT323', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Texture overlays ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0px,
    rgba(255,255,255,0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 199;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 2, 23, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  letter-spacing: 2px;
}
.logo span { color: var(--pink); animation: blink 1.2s steps(1) infinite; }
.logo.small { font-size: 0.75rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--ink-dim);
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }

.nav-cta {
  border: 1px solid var(--pink);
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--pink-soft) !important;
  box-shadow: 0 0 12px rgba(255,46,136,0.35);
}
.nav-cta:hover {
  background: var(--pink);
  color: var(--bg) !important;
  text-shadow: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.3) contrast(1.05);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,2,23,0.55) 0%, rgba(10,2,23,0.35) 40%, rgba(10,2,23,0.92) 100%),
    radial-gradient(circle at 50% 30%, rgba(165,55,253,0.15), transparent 60%),
    radial-gradient(ellipse 640px 420px at 50% 58%, rgba(10,2,23,0.65), transparent 72%);
}

.sun {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 260px;
  height: 260px;
  opacity: 0.7;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 40%, var(--pink) 75%, var(--purple) 100%);
  box-shadow: 0 0 90px rgba(255, 154, 61, 0.55), 0 0 160px rgba(255, 46, 136, 0.35);
  -webkit-mask-image: repeating-linear-gradient(
    to bottom,
    #000 0px, #000 6px,
    transparent 6px, transparent 12px,
    #000 12px, #000 12px
  );
  mask-image: repeating-linear-gradient(
    to bottom,
    #000 0px, #000 6px,
    transparent 6px, transparent 12px,
    #000 12px, #000 12px
  );
  animation: sun-pulse 6s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.grid-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background-image:
    linear-gradient(rgba(1,253,246,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,253,246,0.6) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(300px) rotateX(65deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 95%);
  mask-image: linear-gradient(to top, black 20%, transparent 95%);
  animation: grid-move 3s linear infinite;
  opacity: 0.55;
}

@keyframes grid-move {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 60px, 0 0; }
}

.hero-content { position: relative; z-index: 2; padding-top: 40px; }

.eyebrow {
  font-family: var(--font-terminal);
  font-size: 1.15rem;
  color: var(--cyan);
  letter-spacing: 2px;
  text-shadow: 0 0 8px var(--cyan);
  margin-bottom: 20px;
}

.blink { animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 3.4rem);
  line-height: 1.3;
  color: var(--ink);
  text-shadow:
    0 0 10px var(--pink-soft),
    0 0 24px var(--pink),
    0 0 48px var(--purple);
  margin-bottom: 20px;
  position: relative;
}

/* subtle glitch effect */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0.8;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch-anim 5s infinite linear alternate-reverse;
  clip-path: inset(0 0 60% 0);
}
.glitch::after {
  color: var(--pink);
  animation: glitch-anim 6s infinite linear alternate-reverse;
  clip-path: inset(60% 0 0 0);
}
@keyframes glitch-anim {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, 0); }
  80%  { transform: translate(1px, 1px); }
  100% { transform: translate(0,0); }
}

.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(1,253,246,0.6);
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-tagline em { color: var(--pink-soft); font-style: normal; }

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  color: inherit;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 0 18px rgba(255,46,136,0.55), 0 0 40px rgba(165,55,253,0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 26px rgba(255,46,136,0.8), 0 0 60px rgba(165,55,253,0.55);
}

.btn-ghost {
  border-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}
.btn-ghost:hover {
  background: rgba(1,253,246,0.1);
  box-shadow: 0 0 18px rgba(1,253,246,0.4);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-terminal);
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--ink-dim);
}
.scroll-cue span {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-cue-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-anim {
  0% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.3); opacity: 0.3; }
}

/* ---------- Section base ---------- */
.section { padding: 110px 0; position: relative; }

.kicker {
  font-family: var(--font-terminal);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--pink-soft);
  text-shadow: 0 0 8px rgba(255,46,136,0.5);
  margin-bottom: 14px;
}
.kicker-light { color: var(--yellow); }
.kicker.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.4vw, 1.9rem);
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--ink);
}
.section-title.light { color: #fff; text-shadow: 0 0 20px rgba(0,0,0,0.8); }
.section-title.center { text-align: center; }

.section-lede {
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 50px;
}
.section-lede.center { text-align: center; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Split layout (About / AI) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.split-reverse { grid-template-columns: 1.1fr 0.9fr; }
.split-reverse .split-media { order: 2; }
.split-reverse .split-copy { order: 1; }

.media-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glow);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}
.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,46,136,0.18), rgba(1,253,246,0.12));
  mix-blend-mode: overlay;
}
.frame-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(10,2,23,0.75);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-terminal);
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 4px;
}

.split-copy p { color: var(--ink-dim); margin-bottom: 16px; }
.split-copy strong { color: var(--ink); }

.stat-row {
  display: flex;
  gap: 40px;
  list-style: none;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(1,253,246,0.6);
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-top: 6px;
}

.check-list {
  list-style: none;
  margin: 20px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-dim);
}
.check-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--pink);
  text-shadow: 0 0 8px var(--pink);
}

/* ---------- Project callout (Orbit) ---------- */
.project-callout {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 28px;
  background: linear-gradient(160deg, rgba(1,253,246,0.06), rgba(165,55,253,0.05));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.project-callout:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(1,253,246,0.18);
}
.project-callout-tag {
  display: inline-block;
  font-family: var(--font-terminal);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 30px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.project-callout-name {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.project-callout-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

/* ---------- Skills grid ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 8px 30px rgba(1,253,246,0.18);
}
.skill-card--ai {
  border-color: var(--pink);
  background: linear-gradient(160deg, rgba(255,46,136,0.08), rgba(165,55,253,0.05));
}
.skill-card--ai:hover { box-shadow: 0 8px 30px rgba(255,46,136,0.28); }

.skill-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 16px rgba(1,253,246,0.4);
}
.skill-card--ai .skill-icon {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 0 16px rgba(255,46,136,0.5);
}

.skill-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.skill-card p {
  font-size: 0.88rem;
  color: var(--ink-dim);
}

/* ---------- Music section ---------- */
.music {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}
.music-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.2);
}
.music-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,2,23,0.95) 10%, rgba(10,2,23,0.55) 60%, rgba(10,2,23,0.85) 100%);
}
.music-content { position: relative; z-index: 2; max-width: 620px; }
.music-copy { color: #e8dcff; margin-bottom: 26px; font-size: 1.02rem; }

.tag-pill {
  display: inline-block;
  font-family: var(--font-terminal);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 0 16px rgba(255,213,74,0.3);
}

.music-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-soundcloud {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-color: var(--orange);
  color: var(--orange);
  text-shadow: 0 0 8px rgba(255,154,61,0.5);
}
.btn-soundcloud svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-soundcloud:hover {
  background: rgba(255,154,61,0.1);
  box-shadow: 0 0 18px rgba(255,154,61,0.4);
}

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact .btn-lg { margin-top: 10px; }

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.contact-actions .btn-lg { margin-top: 0; }

.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-color: rgba(255,255,255,0.25);
  color: var(--ink);
  text-shadow: none;
}
.btn-coffee svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-coffee:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255,213,74,0.08);
  box-shadow: 0 0 18px rgba(255,213,74,0.3);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-thanks {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.footer-thanks:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(1,253,246,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .split-reverse {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-media,
  .split-reverse .split-copy,
  .split-media, .split-copy { order: unset; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(10,2,23,0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .skill-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .sun { width: 220px; height: 220px; }
  .stat-row { gap: 26px; }
}

/* ---------- Project modal ---------- */
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 1, 15, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--bg-alt), var(--bg));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: var(--shadow-glow);
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  color: var(--ink-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-close:hover {
  color: var(--pink-soft);
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255,46,136,0.4);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.5;
}
.modal-lede {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* Theme the embedded SalesMate widget — higher specificity than its inline <style> */
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi {
  font-family: var(--font-mono);
  max-width: 100%;
  color: var(--ink);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-field {
  margin-bottom: 16px;
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-field:has(textarea),
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-field:has(#sw-company-cmsljpeal0005qt010sb9z0xi),
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .cf-turnstile,
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi button[type="submit"],
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-status {
  grid-column: 1 / -1;
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .cf-turnstile {
  margin-bottom: 16px;
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi label {
  font-family: var(--font-terminal);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-check label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: normal;
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi input,
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi textarea,
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi input::placeholder,
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi textarea::placeholder {
  color: rgba(241,233,255,0.35);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi input:focus,
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi textarea:focus,
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(1,253,246,0.15);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-check input {
  width: auto;
  accent-color: var(--pink);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-error {
  color: var(--pink-soft);
  font-family: var(--font-mono);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-status {
  font-family: var(--font-mono);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-status.error {
  color: var(--pink-soft);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-status.success {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(1,253,246,0.4);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi button[type="submit"] {
  display: inline-block;
  width: auto;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255,46,136,0.5), 0 0 36px rgba(165,55,253,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(255,46,136,0.75), 0 0 50px rgba(165,55,253,0.45);
}
.modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Credits modal ---------- */
.modal-box--credits {
  max-width: 460px;
}

.credits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.credits-list li {
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.credits-list a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.credits-list a:hover {
  color: var(--pink-soft);
  text-shadow: 0 0 8px rgba(255,46,136,0.5);
}

@media (max-width: 640px) {
  .modal-box { padding: 28px 20px; }
  .modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi form {
    grid-template-columns: 1fr;
  }
  .modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-field:has(textarea),
  .modal-box #salesmate-widget-cmsljpeal0005qt010sb9z0xi .sw-field:has(#sw-company-cmsljpeal0005qt010sb9z0xi) {
    grid-column: auto;
  }
}
