/* =====================================================================
   Finazir — Design System
   Premium B2B manufacturing aesthetic: Apple/Nike/Gymshark inspired.
   Dark/light balanced, mobile-first, retina & 4K ready.
   ===================================================================== */

/* ---- Design tokens -------------------------------------------------- */
:root {
  /* Brand */
  --c-ink: #0A0A0B;          /* near-black */
  --c-ink-2: #141417;
  --c-surface: #ffffff;
  --c-surface-2: #f6f7f9;
  --c-surface-3: #eef0f4;
  --c-line: #e4e7ec;
  --c-text: #16181d;
  --c-text-soft: #525866;
  --c-text-mute: #8a909c;
  --c-white: #ffffff;

  /* Accents (blue + silver) */
  --c-blue: #2563EB;
  --c-blue-600: #1d4ed8;
  --c-blue-400: #38BDF8;
  --c-blue-rgb: 37, 99, 235;
  --c-silver: #c7ccd6;
  --c-silver-2: #9aa2b1;

  --grad-brand: linear-gradient(120deg, #2563EB 0%, #38BDF8 100%);
  --grad-ink: linear-gradient(160deg, #141417 0%, #0A0A0B 100%);
  --grad-sheen: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 100%);

  /* Shadows (luxury, layered) */
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
  --sh-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .06);
  --sh-lg: 0 18px 40px -12px rgba(16, 24, 40, .22), 0 8px 16px -8px rgba(16, 24, 40, .14);
  --sh-xl: 0 40px 80px -20px rgba(16, 24, 40, .35);
  --sh-blue: 0 12px 32px -8px rgba(37, 99, 235, .45);

  /* Radius */
  --r-sm: 10px; 
  --r-md: 16px; 
  --r-lg: 24px; 
  --r-xl: 32px; 
  --r-pill: 999px;

  /* Type */
  --f-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --f-display: 'Sora', 'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --sp-1: .25rem; 
  --sp-2: .5rem; 
  --sp-3: .75rem; 
  --sp-4: 1rem; 
  --sp-5: 1.5rem;
  --sp-6: 2rem; 
  --sp-7: 3rem; 
  --sp-8: 4rem; 
  --sp-9: 6rem; 
  --sp-10: 8rem;

  --container: 1240px;
  --nav-h: 74px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --c-surface: #0c0d10;
  --c-surface-2: #131519;
  --c-surface-3: #1b1e24;
  --c-line: #262a32;
  --c-text: #eef0f4;
  --c-text-soft: #aab1be;
  --c-text-mute: #727986;
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-md: 0 6px 18px rgba(0, 0, 0, .45);
  --sh-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
  --sh-xl: 0 48px 90px -24px rgba(0, 0, 0, .7);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--f-sans);
  color: var(--c-text);
  background: var(--c-surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Default inline-icon size */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.15em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Typography ----------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--c-text-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--c-text-soft);
  max-width: 60ch;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Layout --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.section-head p {
  margin-top: 1rem;
}

.bg-soft { background: var(--c-surface-2); }
.bg-ink { background: var(--grad-ink); color: var(--c-white); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #ffffff; }
.bg-ink p { color: rgba(255, 255, 255, .72); }

.grid {
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
}

.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  font-weight: 600;
  font-size: .98rem;
  border-radius: var(--r-pill);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: var(--sh-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px rgba(var(--c-blue-rgb), .6);
}

.btn-dark {
  background: var(--c-ink);
  color: #ffffff;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-line);
}

.btn-ghost:hover {
  border-color: var(--c-text);
  transform: translateY(-2px);
}

.btn-light {
  background: #ffffff;
  color: var(--c-ink);
  box-shadow: var(--sh-md);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Sheen on hover */
.btn-primary::after, .btn-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-sheen);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}

.btn-primary:hover::after, .btn-dark:hover::after {
  transform: translateX(120%);
}

/* ---- Cards ---------------------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

/* Category / product card */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}

.pcard:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.pcard__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-surface-3);
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.pcard:hover .pcard__media img {
  transform: scale(1.08);
}

.pcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, .55));
  opacity: 0;
  transition: opacity 1.0s;
}

.pcard:hover .pcard__media::after {
  opacity: 1;
}

.pcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: .35rem .8rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .92);
  color: var(--c-ink);
  border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pcard__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.pcard__ey {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.pcard__title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--c-text);
}

.pcard__desc {
  font-size: .92rem;
  color: var(--c-text-soft);
  flex: 1;
}

.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .4rem;
  padding-top: .9rem;
  border-top: 1px solid var(--c-line);
}

.pcard__moq {
  font-size: .82rem;
  color: var(--c-text-mute);
}

.pcard__arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-blue);
  transition: gap .3s;
}

.pcard:hover .pcard__arrow {
  gap: .7rem;
}

/* Feature / icon card */
.fcard {
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.fcard h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.fcard__ico {
  align-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-blue);
  display: flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 1.1rem;
  width: 54px;
}

.fcard__ico svg {
  width: 26px;
  height: 26px;
}

.fcard h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.fcard p {
  font-size: .95rem;
}

/* ---- Badges & pills ------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 600;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  color: var(--c-text-soft);
}

.pill-blue {
  background: rgba(var(--c-blue-rgb), .1);
  color: var(--c-blue);
  border-color: transparent;
}

/* ---- Breadcrumbs ---------------------------------------------------- */
.breadcrumbs {
  padding-block: 1rem;
  font-size: .85rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  color: var(--c-text-mute);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--c-text-mute);
}

.breadcrumbs a {
  color: var(--c-text-soft);
}

.breadcrumbs a:hover {
  color: var(--c-blue);
}

.breadcrumbs [aria-current] {
  color: var(--c-text);
}

/* ---- Scroll reveal -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ---- Utilities ------------------------------------------------------ */
.text-center { text-align: center; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.wrap { flex-wrap: wrap; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.divider {
  height: 1px;
  background: var(--c-line);
  border: none;
  margin-block: 2rem;
}