/* ============================================================
   FOUGHT — Design System & Global Styles
   Domain: fecttral.com
   
   Design System: coretax-console-dna v2
   Philosophy: "Dark Precision" — Military-Grade × Cinematic × Premium Restraint
   
   Rules: 0.5px borders, border-radius max 3px, cursor: none,
          Bebas Neue display, Barlow Condensed labels, DM Mono data
          red = authority/action, gold = success/premium
   ============================================================ */

/* ── Google Fonts — Dark Precision Stack ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;1,300&family=DM+Mono:wght@300;400&display=swap');

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--muted);
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--red-b);
}

ul, ol {
  list-style: none;
}

button {
  cursor: none;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ── Dark Precision Design Tokens ── */
:root {
  /* Backgrounds — Deep blacks with subtle blue undertone */
  --bg: #02020A;
  --surface: #07070F;
  --surface-2: #0C0C16;
  --surface-3: #111120;

  /* Red — Primary, action, authority */
  --red: #C91C1C;
  --red-b: #FF2828;
  --red-d: #8B0F0F;
  --red-glow: rgba(201,28,28,0.6);

  /* Gold — Secondary, success, premium */
  --gold: #C4963A;
  --gold-b: #E8B84B;
  --gold-d: #8A6520;
  --gold-glow: rgba(196,150,58,0.5);

  /* Text */
  --white: #F0EFED;
  --muted: rgba(240,239,237,0.36);
  --muted2: rgba(240,239,237,0.18);
  --muted3: rgba(240,239,237,0.09);

  /* Borders — SELALU 0.5px */
  --border: rgba(255,255,255,0.06);
  --border-b: rgba(255,255,255,0.09);   /* brighter border, top edge */
  --border-red: rgba(201,28,28,0.28);
  --border-gold: rgba(196,150,58,0.32);

  /* Card */
  --card: rgba(10,10,18,0.55);
  --card-border: rgba(255,255,255,0.06);
  --card-border-hover: rgba(201,28,28,0.25);
  --card-blur: 24px;

  /* Layout */
  --ang: 8deg;
  --sidebar-w: 240px;
  --topnav-h: 56px;
  --max-width: 1200px;

  /* Radius — MAX 3px */
  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-lg: 3px;

  /* Easing — SELALU gunakan ini */
  --ease: cubic-bezier(0.16,1,0.3,1);
  --ease-snappy: cubic-bezier(0.34,1.56,0.64,1);
  --ease-soft: cubic-bezier(0.25,0.46,0.45,0.94);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shadows — Dark Precision */
  --shadow-sm: 0 1px 5px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(201,28,28,0.07);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.65), 0 2px 6px rgba(0,0,0,0.45);
  --shadow-lg: 0 28px 72px rgba(0,0,0,0.65), 0 10px 28px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 24px rgba(201,28,28,0.18), 0 0 8px rgba(201,28,28,0.1);
  --shadow-glow-strong: 0 0 40px rgba(201,28,28,0.28), 0 0 14px rgba(201,28,28,0.15);

  /* Status */
  --ok: #22c55e;
  --error: #f87171;
  --warn: #f59e0b;
  --pending: #60a5fa;
}

/* ── Typography — Dark Precision Font Roles ── */

/* Display / Hero — Bebas Neue */
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(54px, 6.8vw, 88px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.88;
  color: var(--white);
  text-transform: uppercase;
}

/* Page Title — Bebas Neue */
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
}

/* Section Title — Bebas Neue */
h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
}

/* Card / Widget Title — Bebas Neue */
h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

/* Body / Paragraph — Barlow Condensed */
p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.06em;
  max-width: 70ch;
}

/* ── Accent text ── */
.accent-text {
  color: var(--red);
}

.accent-gradient {
  background: linear-gradient(135deg, var(--red), var(--red-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-gold {
  color: var(--gold-b);
}

/* ── Background System — WAJIB MIN 2-3 LAYERS ── */

/* Layer 1: Mesh radial gradients */
#mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 70% at 8% 110%, rgba(180,20,20,0.28) 0%, transparent 52%),
    radial-gradient(ellipse 65% 85% at 90% -10%, rgba(120,12,12,0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(180,20,20,0.04) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 75% 88%, rgba(196,150,58,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 22% 18%, rgba(196,150,58,0.04) 0%, transparent 60%);
}

/* Layer 2: Noise grain */
#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* Layer 3: Scan lines */
#scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8999;
  background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.022) 3px, rgba(0,0,0,0.022) 4px);
}

/* Layer 4: Vignette */
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(2,2,10,0.7) 100%);
  animation: vignetteBreath 10s ease-in-out infinite 4s;
}

@keyframes vignetteBreath {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ── Glass card — Dark Precision ── */
.glass {
  background: var(--card);
  border: 0.5px solid var(--card-border);
  border-top: 0.5px solid var(--border-b);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--card-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(150%);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  box-shadow:
    0 0 0 0.5px rgba(201,28,28,0.07),
    0 28px 72px rgba(0,0,0,0.65),
    0 10px 28px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Top border accent (red-gold gradient) */
.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,28,28,0.6) 30%, rgba(196,150,58,0.3) 70%, transparent 100%);
  z-index: 1;
}

/* Gold corner gradient */
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  pointer-events: none;
  background: radial-gradient(circle at 0 0, rgba(196,150,58,0.12) 0%, transparent 65%);
  z-index: 1;
}

.glass:hover {
  border-color: var(--card-border-hover);
  box-shadow:
    0 0 0 0.5px rgba(201,28,28,0.18),
    0 36px 90px rgba(0,0,0,0.75),
    0 12px 32px rgba(201,28,28,0.08),
    inset 0 1px 0 rgba(255,255,255,0.07);
  transform: translateY(-3px);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 10;
}

/* ── Section ── */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

/* ── Section number label ── */
.section-number {
  color: var(--red);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* ── Accent line under headings ── */
.accent-line {
  width: 0;
  height: 0.5px;
  background: linear-gradient(90deg, rgba(201,28,28,0.9), rgba(201,28,28,0.3) 60%, transparent);
  margin: 16px 0 32px;
  box-shadow: 0 0 10px rgba(201,28,28,0.35);
  animation: ruleIn 1.2s var(--ease) forwards;
}

@keyframes ruleIn {
  to { width: 220px; }
}

/* ── Grid ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Selection ── */
::selection {
  background: rgba(201,28,28,0.3);
  color: var(--white);
}

/* ── Scrollbar — Custom (3px, red) ── */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(201,28,28,0.28);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201,28,28,0.55);
}

/* ── Accessibility ── */
:focus-visible {
  outline: 0.5px solid var(--red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Mobile — Disable custom cursor ── */
@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }
}

/* ── Keyframes ── */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes accentPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201,28,28,0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(201,28,28,0);
  }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
