/* =========================================================
   Technofire — Premium Design System (Citirise-inspired)
   Sora (display) + Inter (body) · red-600 accent · 8pt rhythm
   GSAP + ScrollTrigger + Lenis-powered motion
   ========================================================= */

:root {
  --accent:      #DC2626;     /* red-600 */
  --accent-deep: #B91C1C;     /* red-700 */
  --accent-soft: #FEF2F2;     /* red-50  */

  --ink:         #0A0A0A;
  --ink-2:       #1F2937;
  --muted:       #6B7280;
  --line:        #E5E7EB;
  --line-2:      #F3F4F6;
  --paper:       #FFFFFF;
  --paper-2:     #F9FAFB;

  --r-sm: 10px;
  --r:    12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(17, 24, 39, .04);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05), 0 2px 6px rgba(17, 24, 39, .04);
  --shadow-md: 0 12px 32px -16px rgba(17, 24, 39, .18);
  --shadow-lg: 0 24px 60px -24px rgba(17, 24, 39, .22);
  --shadow-cta: 0 1px 2px rgba(220, 38, 38, .15), 0 12px 28px -12px rgba(220, 38, 38, .55);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: auto; }                /* Lenis controls scroll */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.011em;
  font-size: 16px;
  line-height: 1.6;
}

.font-display {
  font-family: 'Sora', 'Inter Tight', Inter, sans-serif;
  letter-spacing: -0.025em;
}

/* Heading tokens */
.h1 { font-family:'Sora',sans-serif; font-weight:600; letter-spacing:-0.04em; line-height:1.02; }
.h2 { font-family:'Sora',sans-serif; font-weight:600; letter-spacing:-0.03em; line-height:1.08; }
.h3 { font-family:'Sora',sans-serif; font-weight:500; letter-spacing:-0.018em; line-height:1.2; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-xs);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(220,38,38,.14);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1;
  letter-spacing: -0.011em;
  white-space: nowrap;
  position: relative;
  transition:
    background-color .35s cubic-bezier(.16,1,.3,1),
    color .25s ease,
    border-color .35s ease,
    transform .35s cubic-bezier(.16,1,.3,1),
    box-shadow .35s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .15s; }

.btn-lg { height: 56px; padding: 0 28px; font-size: 15.5px; font-weight: 600; border-radius: 16px; }

.btn-primary {
  background: var(--accent); color:#fff; font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 1px 2px rgba(220,38,38,.15),
    0 8px 22px -8px rgba(220,38,38,.55);
}
.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 1px 2px rgba(220,38,38,.2),
    0 18px 36px -12px rgba(220,38,38,.6);
}
.btn-secondary { background: var(--ink); color:#fff; }
.btn-secondary:hover { background:#000; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--ink); color:#fff; border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); }
.btn .arrow { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(17,24,39,.025);
  transition:
    box-shadow .55s cubic-bezier(.16,1,.3,1),
    border-color .35s ease,
    transform .55s cubic-bezier(.16,1,.3,1);
}
.card:hover {
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 18px 40px -20px rgba(17,24,39,.18);
  border-color: #D1D5DB;
}

/* =========================================================
   NAVBAR  (cleaner, less clutter)
   ========================================================= */
.nav-blur {
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav-blur.scrolled {
  background: rgba(255,255,255,0.93);
  border-bottom-color: var(--line);
}
.nav-link {
  position: relative; padding: 8px 4px;
  font-size: 14.5px; color: #374151;
  letter-spacing: -0.005em;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 500; }
.nav-link.active::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 70; background: rgba(17,24,39,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(86vw, 380px);
  background: #fff; padding: 24px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer a {
  padding: 14px 12px; border-radius: 12px; font-size: 16px;
  color: var(--ink); letter-spacing: -0.01em;
  min-height: 48px; display: flex; align-items: center;
}
.mobile-drawer a:hover { background: var(--line-2); }

/* =========================================================
   FLOATING ACTIONS
   ========================================================= */
.fab-wrap {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 16px 36px -14px rgba(17,24,39,.4);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease;
}
.fab:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 22px 44px -16px rgba(17,24,39,.5); }
.fab.call { background: var(--accent); }
.fab.wa   { background: #25D366; }

/* Mobile call-bar permanently hidden — duplicates the floating FABs.
   Markup is left in place across pages for backwards compatibility but
   never rendered. To re-enable, remove `display: none !important` below. */
.mobile-callbar { display: none !important; }
.mobile-callbar a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px;
  border-radius: 14px;
  font-weight: 500; font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 14px 30px -12px rgba(17,24,39,.4);
}
.mobile-callbar a.call { background: var(--accent); color: #fff; font-weight: 600; }
.mobile-callbar a.wa   { background: #25D366; color: #fff; }

/* Marquee — seamless infinite-loop logo ticker */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex; gap: 24px;
  animation: scroll 40s linear infinite;
  width: max-content; align-items: center;
  will-change: transform;
}
@media (min-width: 768px){ .marquee-track { gap: 32px; } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Forms */
.field {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,24,39,.06); }
.field::placeholder { color: #9CA3AF; }
textarea.field { min-height: 96px; line-height: 1.55; }
.field-label { font-size: 13px; color: #374151; font-weight: 500; letter-spacing: -0.005em; }

/* Hover-underline link */
.link-u { position: relative; padding-bottom: 2px; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* Soft radial bg */
.bg-radial-soft {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(220,38,38,.045), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(17,24,39,.035), transparent 60%);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================================
   PREMIUM ANIMATION PRIMITIVES (used by GSAP)
   ========================================================= */

/* Line-mask reveal — masked word/line entrance.
   Each word is wrapped in a span; the span clips its inner sibling. */
.line-mask {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  line-height: 1.05;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;            /* don't grow line-height */
}
.line-mask > .line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

/* Generic up-fade reveal — refined: shorter distance + longer ease for premium feel */
[data-up] {
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
}
[data-up].is-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--up-delay, 0ms);
}

/* Image-reveal with clip-path mask — slightly slower */
.clip-reveal { clip-path: inset(100% 0 0 0); will-change: clip-path; }

/* Image scale-in — gentler scale, longer duration */
.scale-img > img { transform: scale(1.08); transition: transform 1.8s cubic-bezier(.16,1,.3,1); will-change: transform; }
.scale-img.is-in > img { transform: scale(1); }

/* 3D tilt cards */
.tilt-3d { transform-style: preserve-3d; transition: transform .55s cubic-bezier(.16,1,.3,1); will-change: transform; }
.tilt-3d > * { transform: translateZ(0); }

/* Number counter — keeps tabular alignment */
.counter { font-variant-numeric: tabular-nums; }

/* Magnetic button */
.magnetic { transition: transform .35s cubic-bezier(.16,1,.3,1); will-change: transform; }

/* Cursor halo — softer, smaller, less aggressive blend */
.cursor-halo {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px;
  border-radius: 999px; pointer-events: none; z-index: 90;
  background: radial-gradient(circle, rgba(220,38,38,.4), rgba(220,38,38,0) 70%);
  transform: translate(-50%, -50%) scale(.5); opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}
.cursor-halo.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Filter chips */
[data-filter] {
  background: var(--paper);
  border: 1px solid var(--line);
  color: #374151;
  letter-spacing: -0.005em;
  height: 38px;
  display: inline-flex; align-items: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
[data-filter]:hover { background: var(--line-2); }
[data-filter].is-active { background: var(--ink); color:#fff; border-color: var(--ink); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .line-mask > .line-inner { transform: none !important; }
  [data-up] { opacity: 1 !important; transform: none !important; }
  .clip-reveal { clip-path: none !important; }
  .scale-img > img { transform: none !important; }
}

/* =========================================================
   BLOG PROSE
   ========================================================= */
.prose-blog { color:#374151; font-size:17px; line-height:1.7; letter-spacing:-0.005em; }
.prose-blog h2 { font-family:'Sora',sans-serif; font-weight:600; color: var(--ink); font-size:26px; line-height:1.2; letter-spacing:-0.025em; margin: 36px 0 12px; }
.prose-blog h3 { font-family:'Sora',sans-serif; font-weight:600; color: var(--ink); font-size:20px; line-height:1.25; letter-spacing:-0.018em; margin: 24px 0 10px; }
.prose-blog p { margin: 10px 0; }
.prose-blog ul { list-style: none; padding: 0; margin: 10px 0; }
.prose-blog ul li { padding-left: 22px; position: relative; margin: 6px 0; }
.prose-blog ul li::before { content:""; position:absolute; left:4px; top:12px; width:7px; height:7px; border-radius:999px; background: var(--accent); }
.prose-blog ol { padding-left: 22px; margin: 12px 0; }
.prose-blog ol li { margin: 6px 0; }
.prose-blog a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness:1px; }
.prose-blog a:hover { text-decoration-thickness:2px; }
.prose-blog blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 18px; margin: 24px 0; color: var(--ink); font-style: italic; }
.prose-blog table { width:100%; border-collapse:collapse; margin: 24px 0; font-size:15px; }
.prose-blog th, .prose-blog td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose-blog th { background: var(--paper-2); font-weight: 600; }
.prose-blog img { border-radius: var(--r-md); margin: 24px 0; }
