/* ═══════════════════════════════════════════
   FORDE — Shared Stylesheet
   Digunakan di semua halaman
═══════════════════════════════════════════ */


:root {
  --forest:      #1A2E22;
  --forest-deep: #0F1C15;
  --forest-mid:  #243D2D;
  --green:       #88B099;
  --green-dark:  #5E8A73;
  --green-muted: #6A9E82;
  --green-pale:  #EDF4F0;
  --white:       #FFFFFF;
  --off-white:   #F6F8F6;
  --gray-100:    #EBEBEB;
  --gray-300:    #C8CEC9;
  --gray-400:    #A1ACA3;
  --gray-500:    #7A8A7D;
  --gray-700:    #3E4E41;
  --text:        #0D1A11;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ── */
.f-display { font-family: 'Montserrat', sans-serif; font-weight: 900; letter-spacing: -0.03em; line-height: 1.0; }
.f-heading  { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.f-label    { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border: none; cursor: pointer; padding: 14px 28px; border-radius: 4px;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s, background 0.2s;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-green {
  background: var(--green); color: var(--forest-deep);
  box-shadow: 0 2px 8px rgba(136,176,153,0.3), 0 8px 24px rgba(136,176,153,0.2);
}
.btn-green:hover { background: #9DC4B0; box-shadow: 0 4px 12px rgba(136,176,153,0.4), 0 16px 32px rgba(136,176,153,0.25); }

.btn-forest { background: var(--forest); color: var(--white); box-shadow: 0 4px 16px rgba(26,46,34,0.3); }
.btn-forest:hover { background: var(--forest-mid); }

.btn-outline-dark { background: transparent; color: var(--forest); border: 2px solid var(--gray-300); }
.btn-outline-dark:hover { border-color: var(--forest); }

.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.35); }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.8); }

/* ── Layout ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 56px; }

.section-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; color: var(--green-muted);
}
.section-eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--green); flex-shrink: 0;
}

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 56px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.35s, box-shadow 0.35s;
}
#nav.scrolled {
  background: rgba(15,28,21,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(136,176,153,0.12);
}
#nav.nav-solid {
  background: var(--forest-deep);
}
.nav-wordmark {
  font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 900;
  letter-spacing: -0.01em; color: var(--white); text-decoration: none;
}
.nav-wordmark em { font-style: normal; color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--green); }

.nav-karir {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--forest-deep) !important;
  background: var(--green);
  border-radius: 4px; padding: 6px 14px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-karir:hover { background: #9DC4B0 !important; color: var(--forest-deep) !important; transform: translateY(-1px); }

.nav-game-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.nav-game-btn:hover {
  color: var(--green);
  border-color: rgba(136,176,153,0.35);
  background: rgba(136,176,153,0.08);
  transform: translateY(-1px);
}
.nav-game-btn:active { transform: translateY(0); }
.nav-solid .nav-game-btn, .scrolled .nav-game-btn { color: rgba(26,46,34,0.45); border-color: rgba(26,46,34,0.10); }
.nav-solid .nav-game-btn:hover, .scrolled .nav-game-btn:hover { color: var(--forest); border-color: rgba(26,46,34,0.25); background: rgba(26,46,34,0.05); }

/* ── SCROLLING LOGO CLIENTS ── */
.clients-scroll {
  padding: 60px 0;
  background: var(--off-white);
  border-top: 1px solid var(--gray-100);
  overflow: hidden;
}
.clients-scroll-label {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 36px;
}
.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-mask: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-row {
  display: flex;
  gap: 0;
  width: max-content;
}
.marquee-row--fwd  { animation: marquee-fwd  32s linear infinite; }
.marquee-row--rev  { animation: marquee-rev  32s linear infinite; }
@keyframes marquee-fwd { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  border-right: 1px solid var(--gray-100);
}
.logo-item:last-child { border-right: none; }
.logo-box {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--forest); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-box span {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 900;
  color: var(--green); letter-spacing: -0.02em;
}
.logo-name {
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--gray-500); letter-spacing: 0.02em; white-space: nowrap;
}

/* ── FOOTER ── */
footer {
  background: var(--forest-deep);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(136,176,153,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-name { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 900; color: var(--white); letter-spacing: -0.02em; margin-bottom: 6px; }
.footer-brand-name em { font-style: normal; color: var(--green); }
footer img[alt="FORDE"] { height: 28px; width: auto; display: block; margin-bottom: 12px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.02em; margin-bottom: 20px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-product-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  background: rgba(136,176,153,0.1); color: var(--green);
  border: 1px solid rgba(136,176,153,0.2); border-radius: 4px;
  padding: 4px 10px; text-decoration: none; margin-top: 16px;
  transition: background 0.2s;
}
.footer-product-badge:hover { background: rgba(136,176,153,0.18); color: var(--green) !important; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.2); }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.social-btn:hover { border-color: rgba(136,176,153,0.4); background: rgba(136,176,153,0.08); }
.social-btn svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.4); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s, fill 0.2s; }
.social-btn svg[fill="currentColor"] { fill: rgba(255,255,255,0.4); stroke: none; }
.social-btn:hover svg { stroke: var(--green); }
.social-btn:hover svg[fill="currentColor"] { fill: var(--green); stroke: none; }

/* ── Page hero (non-index) ── */
.page-hero {
  background: var(--forest-deep);
  padding: 140px 56px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(136,176,153,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(136,176,153,0.1); border: 1px solid rgba(136,176,153,0.2);
  border-radius: 100px; padding: 6px 14px 6px 6px; margin-bottom: 24px;
}
.page-hero-tag-dot { width: 16px; height: 16px; background: var(--green); border-radius: 50%; }
.page-hero-tag span { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.page-hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(36px, 4.5vw, 64px); letter-spacing: -0.03em; line-height: 1.0; color: var(--white); }
.page-hero h1 em { font-style: normal; color: var(--green); }
.page-hero-sub { font-size: 17px; color: rgba(255,255,255,0.55); line-height: 1.75; max-width: 560px; margin-top: 20px; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34,1.15,0.64,1); }
.reveal.up { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

/* ── Image skeleton loading ── */
.sk-wrap {
  position: relative;
  overflow: hidden;
}
.sk-wrap::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #E8ECF0 0%,
    #F4F6F8 40%,
    #E8ECF0 100%
  );
  background-size: 300% 100%;
  animation: sk-wave 1.6s ease-in-out infinite;
  transition: opacity 0.35s ease;
}
.sk-wrap.sk-done::after {
  opacity: 0;
}
.sk-wrap img {
  opacity: 0;
  transition: opacity 0.35s ease;
  position: relative; z-index: 1;
}
.sk-wrap.sk-done img {
  opacity: 1;
}
@keyframes sk-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* ── Shared nav script ── */
.grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 10; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  #nav { padding: 0 32px; }
  .wrap { padding: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 120px 32px 60px; }
}
@media (max-width: 640px) {
  #nav { padding: 0 20px; }
  .nav-links { display: none; }
  .wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .page-hero { padding: 110px 20px 56px; }
}
