/* ==========================================================================
   KURDNIC SITE STYLES
   Buttons, form fields and animations. Tailwind handles everything else.
   ========================================================================== */
:root {
  --brand-500: #3b6cf6; --brand-600: #2550eb; --brand-700: #1d3fd8;
  --accent-400: #ff9f20; --accent-500: #f97f07;
  --ink-200: #e2e8f0; --ink-300: #cbd5e1; --ink-600: #475569; --ink-900: #0f172a; --ink-950: #0b1022;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: #fff; color: var(--ink-900); font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
[v-cloak] { opacity: 0; }
#app { transition: opacity .25s ease; }
section[id], [id].scroll-mt { scroll-margin-top: 5rem; }

/* ---------- buttons ---------- */
.btn-primary, .btn-accent, .btn-ghost, .btn-ghost-dark {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: .75rem;
  padding: .7rem 1.15rem; font-weight: 600; line-height: 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,80,235,.6); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(37,80,235,.7); }
.btn-accent { background: linear-gradient(135deg, var(--accent-400), var(--accent-500)); color: #1a0d00; box-shadow: 0 8px 22px -8px rgba(249,127,7,.7); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(249,127,7,.75); }
.btn-ghost { background: #fff; color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-200); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ink-300), 0 10px 20px -12px rgba(15,23,42,.25); }
.btn-ghost-dark { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-primary:active, .btn-accent:active, .btn-ghost:active, .btn-ghost-dark:active { transform: translateY(0) scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(59,108,246,.45); outline-offset: 2px;
}

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .875rem; font-weight: 600; color: #1e293b; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: .75rem; border: 1px solid var(--ink-200); background: #f8fafc;
  padding: .75rem .9rem; font-size: 1rem; font-weight: 400; color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(59,108,246,.15);
}

/* ---------- cards ---------- */
.card-lift { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, --tw-ring-color .2s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(15,23,42,.28); }

/* spotlight: follows the cursor on .spotlight cards (set by inline script in pages) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(59,108,246,.12), transparent 40%);
}
.spotlight:hover::before { opacity: 1; }

/* ---------- text ---------- */
.text-gradient {
  background: linear-gradient(100deg, var(--brand-600) 10%, #7c5cff 45%, var(--accent-500) 90%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- hero backgrounds ---------- */
.grid-bg {
  background-image: linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 9999px; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.blob-2 { animation-duration: 20s; animation-delay: -6s; }
.blob-3 { animation-duration: 24s; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}
.aurora {
  background: radial-gradient(40% 60% at 20% 20%, rgba(59,108,246,.55), transparent 70%),
              radial-gradient(35% 55% at 80% 30%, rgba(124,92,255,.45), transparent 70%),
              radial-gradient(40% 60% at 60% 100%, rgba(249,127,7,.35), transparent 70%);
  background-size: 160% 160%; animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }

/* floating dashboard mockup */
.tilt { transform: perspective(1400px) rotateX(8deg); transform-origin: top center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.tilt:hover { transform: perspective(1400px) rotateX(2deg); }
.bob { animation: bob 6s ease-in-out infinite; }
.bob-2 { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bar-grow { transform-origin: bottom; animation: barGrow 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pulse-dot { position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 9999px; border: 2px solid currentColor; animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

/* logo / integrations marquee */
.marquee { -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; width: max-content; gap: 3rem; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scroll reveal (added by v-reveal) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Vue transitions ---------- */
.drop-enter-active, .drop-leave-active { transition: opacity .25s ease, transform .25s ease; }
.drop-enter-from, .drop-leave-to { opacity: 0; transform: translateY(-8px); }
.fade-enter-active, .fade-leave-active { transition: opacity .3s ease, transform .3s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; transform: translateY(6px); }
.flip-enter-active, .flip-leave-active { transition: opacity .2s ease, transform .2s ease; }
.flip-enter-from { opacity: 0; transform: translateY(10px); }
.flip-leave-to { opacity: 0; transform: translateY(-10px); }
.pop { animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .tilt { transform: none; }
}
