/* ==========================================================================
   FORTHPRIX LIMITED — Brand Stylesheet
   Monochrome / metallic / premium  ·  Black #000 · Charcoal #3b3b3b ·
   Mid #969696 · Silver #c8c8c8 · White #fff
   ========================================================================== */

:root {
  --fx-black:    #000000;
  --fx-night:    #060606;
  --fx-coal:     #0d0d0d;
  --fx-graphite: #161616;
  --fx-charcoal: #3b3b3b;
  --fx-mid:      #969696;
  --fx-silver:   #c8c8c8;
  --fx-white:    #ffffff;

  --fx-line:     rgba(255,255,255,.10);
  --fx-line-2:   rgba(255,255,255,.06);
  --fx-muted:    #9a9a9a;
  --fx-muted-2:  #6f6f6f;

  --fx-shadow:   0 30px 70px -30px rgba(0,0,0,.9);
  --fx-ease:     cubic-bezier(.22,.61,.36,1);

  --fx-nav-h:    76px;
}

/* ----------  Base  ---------- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: var(--fx-nav-h); }

body {
  background: var(--fx-black);
  color: #e9e9e9;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Archivo', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

::selection { background: rgba(255,255,255,.85); color: #000; }

/* ----------  Eyebrow / kicker  ---------- */
.kicker {
  font-family: 'Archivo', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--fx-mid);
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}
.kicker::before {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fx-silver));
}
.kicker.center::after {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--fx-silver), transparent);
}

/* ----------  Metallic / chrome treatments  ---------- */
.metallic-text {
  background: linear-gradient(176deg,
      #ffffff 0%, #e6e6e6 16%, #8f8f8f 38%,
      #fbfbfb 52%, #c2c2c2 66%, #767676 86%, #ededed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.metallic-sheen {
  background: linear-gradient(110deg,
      #d7d7d7 0%, #ffffff 18%, #9a9a9a 34%, #f2f2f2 50%,
      #b4b4b4 64%, #ffffff 82%, #c9c9c9 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: 220% 0; } }

.metallic-surface {
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%),
    linear-gradient(160deg, #232323 0%, #101010 60%, #050505 100%);
  border: 1px solid var(--fx-line);
}
.metallic-rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--fx-charcoal) 20%, var(--fx-silver) 50%, var(--fx-charcoal) 80%, transparent);
  opacity: .5;
}

/* ----------  Geometric brand motif (upward chevrons)  ---------- */
.motif {
  background-image: url('../assets/pattern.svg');
  background-size: 64px 64px;
  background-repeat: repeat;
}

/* film grain for premium texture */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .035;
  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='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------  Buttons  ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s var(--fx-ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--fx-ease); }
.btn-primary {
  background: linear-gradient(180deg, #ffffff, #d2d2d2);
  color: #000;
  border: 1px solid #fff;
  box-shadow: 0 10px 30px -12px rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(255,255,255,.5); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: #f3f3f3;
  border: 1px solid var(--fx-charcoal);
}
.btn-ghost:hover { border-color: var(--fx-silver); background: rgba(255,255,255,.04); transform: translateY(-2px); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ----------  Navigation  ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--fx-nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--fx-ease), border-color .4s var(--fx-ease), backdrop-filter .4s var(--fx-ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--fx-line);
}
.nav-link {
  position: relative;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: #b9b9b9;
  transition: color .25s var(--fx-ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--fx-silver);
  transition: right .3s var(--fx-ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { right: 0; }

.brand-word {
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 1.18rem;
  letter-spacing: .02em;
}

/* mobile menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(3,3,3,.97);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--fx-ease), visibility .4s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-overlay a {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 700;
  letter-spacing: -.02em; color: #d8d8d8;
  padding: .35rem 0; transition: color .25s, transform .35s var(--fx-ease);
  transform: translateX(0);
}
.menu-overlay a:hover { color: #fff; transform: translateX(10px); }

.burger { width: 26px; height: 16px; position: relative; cursor: pointer; }
.burger span {
  position: absolute; left: 0; height: 1.6px; width: 100%;
  background: #fff; transition: transform .35s var(--fx-ease), opacity .25s;
}
.burger span:nth-child(1){ top: 0; }
.burger span:nth-child(2){ top: 7px; }
.burger span:nth-child(3){ top: 14px; }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ----------  Hero  ---------- */
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 90vh;
  background: radial-gradient(ellipse 50% 50% at 50% 40%, rgba(200,200,200,.12), transparent 70%);
  pointer-events: none;
}
.hero-mark {
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.7));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }

.scroll-cue { width: 22px; height: 36px; border: 1px solid var(--fx-charcoal); border-radius: 12px; position: relative; }
.scroll-cue::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--fx-silver);
  animation: cue 1.8s var(--fx-ease) infinite;
}
@keyframes cue { 0%{opacity:0; transform: translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform: translate(-50%,12px);} }

/* ----------  Marquee  ---------- */
.marquee { display: flex; overflow: hidden; user-select: none; gap: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; gap: 3.5rem; padding-right: 3.5rem; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item { font-family: 'Archivo', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; color: #545454; display: inline-flex; align-items: center; gap: 3.5rem; white-space: nowrap; }

/* ----------  Cards  ---------- */
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #131313 0%, #0a0a0a 100%);
  border: 1px solid var(--fx-line);
  border-radius: 4px;
  transition: transform .4s var(--fx-ease), border-color .4s var(--fx-ease), box-shadow .4s var(--fx-ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(140% 80% at 0% 0%, rgba(255,255,255,.08), transparent 55%);
  transition: opacity .4s var(--fx-ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); box-shadow: var(--fx-shadow); }
.card:hover::before { opacity: 1; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 3px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #2a2a2a, #0e0e0e);
  border: 1px solid var(--fx-line);
  color: #e9e9e9;
}
.card:hover .icon-chip { border-color: var(--fx-silver); }

.num-badge {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 1rem; color: var(--fx-mid);
}

/* ----------  Forms  ---------- */
.field {
  width: 100%;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--fx-line);
  border-radius: 3px;
  color: #fff; font-size: .95rem;
  padding: .95rem 1.05rem;
  transition: border-color .25s, background .25s;
  font-family: 'Inter', sans-serif;
}
.field::placeholder { color: #6a6a6a; }
.field:focus { outline: none; border-color: var(--fx-silver); background: rgba(255,255,255,.04); }
textarea.field { resize: vertical; min-height: 130px; }
.field-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-mid); margin-bottom: .55rem; display: block; }

/* ----------  Reveal on scroll  ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--fx-ease), transform .8s var(--fx-ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
.reveal[data-d="5"]{ transition-delay: .40s; }

/* ----------  Section helpers  ---------- */
.section { position: relative; }
.eyebrow-num { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--fx-charcoal); font-size: .9rem; letter-spacing: .1em; }

.stat-value { font-family: 'Archivo', sans-serif; font-weight: 800; line-height: 1; letter-spacing: -.03em; }

/* footer */
.foot-link { color: #9a9a9a; transition: color .2s; font-size: .92rem; }
.foot-link:hover { color: #fff; }
.social-btn { width: 40px; height: 40px; border-radius: 3px; display: grid; place-items: center; border: 1px solid var(--fx-line); color: #c4c4c4; transition: all .25s var(--fx-ease); }
.social-btn:hover { border-color: var(--fx-silver); color: #fff; transform: translateY(-2px); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 6px; border: 2px solid #050505; }
::-webkit-scrollbar-thumb:hover { background: #3b3b3b; }

/* ----------  Word rotator (About)  ---------- */
.word-rotate {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .38s var(--fx-ease), transform .38s var(--fx-ease);
  will-change: opacity, transform;
}

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