/* ==========================================================================
   Peakprix — Design System
   Premium digital growth & automation agency
   ========================================================================== */

:root {
  --ink: #08090d;
  --ink-2: #12151c;
  --ink-3: #1a1e28;
  --soft-black: #050507;
  --ink-border: rgba(255, 255, 255, 0.08);
  --ink-border-strong: rgba(255, 255, 255, 0.14);

  --paper: #f5f4f0;
  --paper-2: #ece9e2;
  --paper-border: rgba(5, 5, 7, 0.08);

  --violet: #7c3aed;
  --violet-2: #8b5cf6;
  --violet-deep: #6d28d9;
  --blue: #3b82f6;

  --text-primary: #050507;
  --text-muted: #5a5a68;
  --text-on-dark: #f5f4f0;
  --text-on-dark-muted: #a1a1aa;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: "Manrope", "Inter", sans-serif;
}

::selection {
  background: var(--violet);
  color: #fff;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container-px {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container-px {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1280px) {
  .container-px {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

.section-y {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .section-y {
    padding-top: 8.5rem;
    padding-bottom: 8.5rem;
  }
}

/* Subtle grid pattern background */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.bg-grid-light {
  background-image:
    linear-gradient(to right, rgba(8, 8, 12, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 8, 12, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.bg-grid-fade {
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.text-gradient {
  background: linear-gradient(120deg, var(--violet-2), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  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");
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.3s var(--ease);
}

.nav-bar.is-scrolled {
  background: rgba(8, 8, 12, 0.72);
  border-bottom: 1px solid var(--ink-border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.nav-bar.theme-light {
  background: transparent;
}

.nav-bar.theme-light.is-scrolled {
  background: rgba(250, 249, 246, 0.78);
  border-bottom: 1px solid var(--paper-border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-on-dark-muted);
  transition: color 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-on-dark);
}

.theme-light .nav-link {
  color: var(--text-muted);
}

.theme-light .nav-link:hover,
.theme-light .nav-link.is-active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  opacity: 0;
  visibility: hidden;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s var(--ease), opacity 0.3s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.btn svg,
.btn i {
  transition: transform 0.35s var(--ease);
  width: 16px;
  height: 16px;
  font-size: 0.95rem;
  line-height: 1;
}

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

.btn:hover svg,
.btn:hover i {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 24px -8px rgba(109, 94, 245, 0.55);
}

.btn-primary:hover {
  background: var(--violet-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 12px 32px -8px rgba(109, 94, 245, 0.65);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--ink-border-strong);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost-light {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--paper-border);
}

.btn-ghost-light:hover {
  background: rgba(8, 8, 12, 0.04);
  border-color: rgba(8, 8, 12, 0.2);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Magnetic wrapper - JS adds transform */
.magnetic {
  transition: transform 0.25s var(--ease-out);
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

.stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-dark {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 123, 255, 0.4);
  box-shadow: 0 24px 48px -24px rgba(109, 94, 245, 0.35);
}

.card-light {
  background: #fff;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card-light:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 94, 245, 0.3);
  box-shadow: 0 24px 48px -24px rgba(8, 8, 12, 0.18);
}

.icon-tile {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109, 94, 245, 0.18), rgba(79, 142, 247, 0.1));
  border: 1px solid rgba(139, 123, 255, 0.25);
  color: var(--violet-2);
}

/* ==========================================================================
   Hero — animated ecosystem visual
   ========================================================================== */

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.hero-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ink-border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  animation: floatY 7s var(--ease) infinite;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
}

.hero-node .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--violet-2);
  box-shadow: 0 0 12px 2px rgba(139, 123, 255, 0.8);
}

.hero-node.n1 { top: 6%; left: 4%; animation-delay: 0s; }
.hero-node.n2 { top: 18%; right: 6%; animation-delay: 1.1s; }
.hero-node.n3 { top: 44%; left: -2%; animation-delay: 2s; }
.hero-node.n4 { bottom: 22%; right: 0%; animation-delay: 0.6s; }
.hero-node.n5 { bottom: 4%; left: 18%; animation-delay: 1.6s; }
.hero-node.n6 { top: 62%; right: 22%; animation-delay: 2.6s; }
.hero-node.n7 { top: 2%; left: 42%; animation-delay: 3.2s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.hero-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, var(--violet-2), var(--violet-deep) 70%);
  box-shadow: 0 0 0 1px rgba(139, 123, 255, 0.3), 0 0 80px 10px rgba(109, 94, 245, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseCore 5s ease-in-out infinite;
}

@keyframes pulseCore {
  0%, 100% { box-shadow: 0 0 0 1px rgba(139, 123, 255, 0.3), 0 0 80px 10px rgba(109, 94, 245, 0.45); }
  50% { box-shadow: 0 0 0 1px rgba(139, 123, 255, 0.5), 0 0 110px 24px rgba(109, 94, 245, 0.6); }
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid var(--ink-border);
}

.hero-ring.r1 { width: 220px; height: 220px; animation: spin 40s linear infinite; }
.hero-ring.r2 { width: 320px; height: 320px; animation: spin 60s linear infinite reverse; }
.hero-ring.r3 { width: 420px; height: 420px; animation: spin 80s linear infinite; }

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0.7;
  animation: drift 9s ease-in-out infinite;
}

@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translate(var(--dx, 40px), var(--dy, -60px)); opacity: 0; }
}

/* ==========================================================================
   Logo marquee
   ========================================================================== */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Workflow / automation diagram
   ========================================================================== */

.flow-step {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-border);
  background: var(--ink-2);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}

.flow-step:hover,
.flow-step.is-active {
  border-color: rgba(139, 123, 255, 0.5);
  background: var(--ink-3);
  transform: translateY(-4px);
}

/* Light variant — used when a flow-step sits in a bg-paper section (paired with the bg-white utility class) */
.flow-step.bg-white,
.flow-step.bg-white:hover,
.flow-step.bg-white.is-active {
  background: #fff;
  border-color: var(--paper-border);
  box-shadow: 0 12px 32px -20px rgba(8, 8, 12, 0.18);
}

.flow-step.bg-white:hover,
.flow-step.bg-white.is-active {
  border-color: rgba(109, 94, 245, 0.35);
  transform: translateY(-4px);
}

.flow-connector {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 6 6;
  animation: dashMove 2.4s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -24; }
}

/* ==========================================================================
   Chatbot mockup
   ========================================================================== */

.chat-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-border);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  overflow: hidden;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  animation: bubbleIn 0.5s var(--ease) forwards;
}

@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.user {
  margin-left: auto;
  background: var(--violet);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  border: 1px solid var(--ink-border);
  border-bottom-left-radius: 4px;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0.2rem 0;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text-on-dark-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Telegram-style mockup */
.tg-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #17212b;
  border: 1px solid var(--ink-border);
}

.tg-bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.tg-bubble.in {
  background: #232e3c;
  color: #e6ebf0;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.tg-bubble.out {
  background: #2b5278;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid var(--paper-border);
}

.faq-item.on-dark {
  border-bottom: 1px solid var(--ink-border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-panel-inner {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

.faq-item.on-dark .faq-panel-inner {
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Misc components
   ========================================================================== */

.stat-block .stat-number {
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pill-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ink-border-strong);
  color: var(--text-on-dark-muted);
}

a.pill-dark {
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

a.pill-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-on-dark);
}

.pill-dark.is-active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

a.pill-dark.is-active:hover {
  background: var(--violet-2);
  border-color: var(--violet-2);
  color: #fff;
}

.pill-light {
  background: rgba(109, 94, 245, 0.08);
  border: 1px solid rgba(109, 94, 245, 0.2);
  color: var(--violet-deep);
}

.divider-dark {
  border-color: var(--ink-border);
}

.case-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--ink-border);
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
}

.industry-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--paper-border);
  background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(8, 8, 12, 0.2);
  border-color: rgba(109, 94, 245, 0.25);
}

.step-card {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--paper-border);
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-border);
  background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -28px rgba(8, 8, 12, 0.18);
}

.blog-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  position: relative;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 440px;
  margin-bottom: 0.5em;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 640px) {
  .article-featured-image {
    height: 260px;
  }
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(109, 94, 245, 0.12);
}

.service-pill {
  cursor: pointer;
  user-select: none;
}

.service-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.service-pill input:checked + span {
  border-color: var(--violet);
  background: rgba(109, 94, 245, 0.08);
  color: var(--violet-deep);
}

.form-alert-error {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: rgba(8, 8, 12, 0.18);
  border-radius: 999px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--violet);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.link-arrow i,
.link-arrow svg {
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover i,
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Article body (Insights posts)
   ========================================================================== */

.article-prose {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-prose > * + * {
  margin-top: 1.5em;
}

.article-prose h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 2.2em;
}

.article-prose h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-top: 1.8em;
}

.article-prose p {
  color: var(--text-muted);
}

.article-prose strong {
  color: var(--text-primary);
  font-weight: 700;
}

.article-prose a {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.article-prose a:hover {
  color: var(--violet);
}

.article-prose ul,
.article-prose ol {
  color: var(--text-muted);
  padding-left: 1.4em;
}

.article-prose ul {
  list-style: disc;
}

.article-prose ol {
  list-style: decimal;
}

.article-prose li + li {
  margin-top: 0.5em;
}

.article-prose blockquote {
  border-left: 3px solid var(--violet);
  padding-left: 1.25em;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.15rem;
}

.article-prose img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* Cursor glow (desktop only, subtle) */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(109, 94, 245, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   Floating contact buttons (WhatsApp + Call)
   ========================================================================== */

.floating-contact {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.floating-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff;
}

.floating-btn-whatsapp {
  background: #25d366;
}

.floating-btn-whatsapp:hover {
  background: #23c160;
  box-shadow: 0 16px 32px -8px rgba(37, 211, 102, 0.55);
}

.floating-btn-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25d366;
  opacity: 0.55;
  animation: floatingPulse 2.6s ease-out infinite;
  z-index: -1;
}

@keyframes floatingPulse {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.7); opacity: 0; }
}

.floating-btn-call {
  background: var(--violet);
}

.floating-btn-call:hover {
  background: var(--violet-2);
  box-shadow: 0 16px 32px -8px rgba(109, 94, 245, 0.55);
}

.floating-btn-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-btn:hover .floating-btn-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
  .floating-contact {
    right: 1rem;
    bottom: 1rem;
    gap: 0.65rem;
  }
  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
  .floating-btn-label {
    display: none;
  }
}
