/* DevMind Consulting — shared styles (on top of Tailwind CDN utilities) */

:root {
  --ink: #0b0b12;
  --pink: #fb6c85;
  --mind: #6d5cff;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-feature-settings: 'cv11', 'ss01', 'ss03'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(251, 108, 133, .25); }

/* ---------- Type helpers ---------- */
.display { letter-spacing: -.045em; line-height: .98; font-weight: 800; }
.text-gradient {
  background: linear-gradient(100deg, #fb6c85 0%, #e0569f 40%, #6d5cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-mind {
  background: linear-gradient(100deg, #8b7dff 0%, #6d5cff 45%, #fb6c85 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header { backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.nav-link { position: relative; }
.nav-link[aria-current='page']::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--mind));
}

/* ---------- Key caps ---------- */
.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1em; height: 2.1em; padding: 0 .55em;
  font-weight: 600; font-size: .95em; line-height: 1; color: #1d1d29;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f4 100%);
  border: 1px solid #dcdce3; border-radius: .5em;
  box-shadow: 0 1.5px 0 #c9c9d3, 0 3px 8px -4px rgba(16, 16, 24, .25), inset 0 1px 0 #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap;
}
.key-lg { font-size: 1.35rem; border-radius: .7rem; min-width: 3.4rem; height: 3.4rem; box-shadow: 0 3px 0 #c9c9d3, 0 10px 20px -10px rgba(16, 16, 24, .35), inset 0 1px 0 #fff; }
.key-dark {
  color: #f4f4f6; background: linear-gradient(180deg, #2c2c38 0%, #1f1f29 100%);
  border-color: #3a3a48; box-shadow: 0 1.5px 0 #0a0a10, 0 3px 8px -4px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.key-pink { color: #fff; background: linear-gradient(180deg, #ff8197 0%, #fb6c85 100%); border-color: #f0506d; box-shadow: 0 1.5px 0 #d93558, 0 6px 14px -6px rgba(251, 108, 133, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.key.is-pressed { transform: translateY(1.5px); box-shadow: 0 0 0 #c9c9d3, inset 0 1px 0 #fff; }

/* ---------- Backgrounds ---------- */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(11, 11, 18, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 11, 18, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.bg-grid-dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
}
.bg-dots {
  background-image: radial-gradient(rgba(11, 11, 18, .12) 1px, transparent 1px);
  background-size: 18px 18px;
}
.blob { position: absolute; border-radius: 9999px; filter: blur(70px); opacity: .55; pointer-events: none; }
.noise::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero "Mac desktop" scene ---------- */
.mac-scene {
  position: relative; aspect-ratio: 16 / 11; border-radius: 1.6rem; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, #c8ecd0 0%, transparent 60%),
    radial-gradient(70% 80% at 10% 100%, #ffb3c1 0%, transparent 60%),
    radial-gradient(60% 60% at 60% 70%, #ffd1db 0%, transparent 70%),
    linear-gradient(135deg, #fde7ec 0%, #fbd4dc 45%, #f6c3cf 100%);
  box-shadow: 0 0 0 1px rgba(11, 11, 18, .06), 0 40px 80px -30px rgba(176, 38, 71, .35), 0 20px 40px -20px rgba(11, 11, 18, .25);
}
.mac-scene::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); pointer-events: none; }
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 7%; min-height: 22px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 3%;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: clamp(9px, 1.15vw, 12.5px); color: #1d1d29; z-index: 3;
}
.menubar .mb-item { opacity: .85; }
.menubar .mb-active { background: rgba(11, 11, 18, .1); border-radius: 5px; padding: 2px 6px; }
.mac-window {
  position: absolute; background: #fff; border-radius: .9rem; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(11, 11, 18, .07), 0 30px 60px -25px rgba(11, 11, 18, .45);
}
.mac-window .tl { display: flex; gap: 6px; }
.mac-window .tl span { width: 9px; height: 9px; border-radius: 50%; display: block; }
.hl { background: rgba(251, 108, 133, .22); border-radius: 3px; box-shadow: 0 0 0 2px rgba(251, 108, 133, .22); }
.hl-anim { animation: hlPulse 6s ease-in-out infinite; }
@keyframes hlPulse { 0%, 100% { background: rgba(251, 108, 133, .14); } 50% { background: rgba(251, 108, 133, .32); } }

.popover-img { position: absolute; filter: drop-shadow(0 30px 40px rgba(120, 20, 50, .28)) drop-shadow(0 4px 10px rgba(11, 11, 18, .12)); }

.toast {
  position: absolute; display: flex; align-items: center; gap: .55rem;
  padding: .55rem .8rem .55rem .6rem; border-radius: 999px;
  background: rgba(20, 20, 29, .86); color: #fff; font-size: clamp(10px, 1.1vw, 13px); font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(11, 11, 18, .5);
  opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .35s ease, transform .35s ease;
}
.toast.is-on { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Floating / reveal animations ---------- */
.float-slow { animation: floaty 7s ease-in-out infinite; }
.float-slower { animation: floaty 9s ease-in-out infinite; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-slow, .float-slower, .hl-anim, .marquee-track, .pulse-dot::after { animation: none !important; }
}

/* ---------- Status dot ---------- */
.pulse-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Marquee (apps list) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: .75rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Gallery ---------- */
.snap-row { scroll-snap-type: x mandatory; scrollbar-width: none; }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { scroll-snap-align: center; }

/* ---------- Demo ---------- */
.demo-source ::selection { background: rgba(251, 108, 133, .35); }
.demo-item { animation: popIn .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.chip-copy { transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.chip-copy:active { transform: scale(.97); }
.capture-on .capture-led { background: #fb6c85; box-shadow: 0 0 0 4px rgba(251, 108, 133, .2); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid rgba(11, 11, 18, .07); border-radius: 1.5rem; box-shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 8px 24px -12px rgba(16, 16, 24, .10); }
.card-dark { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .09); border-radius: 1.5rem; }
.ring-gradient { position: relative; }
.ring-gradient::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(251, 108, 133, .7), rgba(109, 92, 255, .5), rgba(255, 255, 255, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Legal pages ---------- */
.prose-legal h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; color: #0b0b12; scroll-margin-top: 6rem; }
.prose-legal h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .5rem; color: #0b0b12; }
.prose-legal p, .prose-legal li { color: #3f3f4e; line-height: 1.75; }
.prose-legal p { margin: .75rem 0; }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.prose-legal li { margin: .35rem 0; }
.prose-legal a { color: #d93558; text-decoration: underline; text-underline-offset: 3px; }
.prose-legal strong { color: #1d1d29; }

/* ---------- Details / FAQ ---------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .2s ease; }
