/* ==========================================================================
   FIRECRAWL DESIGN SYSTEM — v.alpha
   Applied to Imambas Portfolio Redesign
   ========================================================================== */

:root,
[data-theme="light"] {
  /* Core Semantic Tokens — Light Theme */
  --primary: #fa5d19;
  --secondary: #262626;
  --tertiary: #2a6dfb;

  --background-base: #f9f9f9;
  --background-lighter: #fbfbfb;
  --surface: #ffffff;
  --surface-raised: #ffffff;

  --accent-black: #262626;
  --accent-white: #ffffff;

  /* Heat — Signature Brand Orange (#fa5d19) at Fixed Opacities */
  --heat-4: #fa5d190a;
  --heat-8: #fa5d1914;
  --heat-12: #fa5d191f;
  --heat-16: #fa5d1929;
  --heat-20: #fa5d1933;
  --heat-40: #fa5d1966;
  --heat-90: #fa5d19e6;
  --heat-100: #fa5d19;

  /* Semantic Accents */
  --accent-amethyst: #9061ff;
  --accent-bluetron: #2a6dfb;
  --accent-crimson: #eb3424;
  --accent-forest: #42c366;
  --accent-honey: #ecb730;

  /* Borders */
  --border-faint: #ededed;
  --border-muted: #e8e8e8;
  --border-loud: #e6e6e6;

  /* Illustrations — Decorative Fills & ASCII Motifs */
  --illustrations-faint: #ededed;
  --illustrations-muted: #e6e6e6;
  --illustrations-default: #dbdbdb;

  /* Black Alpha — Translucent Neutrals (Become White Alpha in Dark) */
  --black-alpha-1: #00000003;
  --black-alpha-2: #00000005;
  --black-alpha-3: #00000008;
  --black-alpha-4: #0000000a;
  --black-alpha-5: #0000000d;
  --black-alpha-6: #0000000f;
  --black-alpha-7: #00000012;
  --black-alpha-8: #00000014;
  --black-alpha-10: #0000001a;
  --black-alpha-12: #0000001f;
  --black-alpha-16: #00000029;
  --black-alpha-20: #00000033;
  --black-alpha-24: #0000003d;
  --black-alpha-32: #26262652;
  --black-alpha-40: #26262666;
  --black-alpha-48: #2626267a;
  --black-alpha-56: #2626268f;
  --black-alpha-64: #262626a3;
  --black-alpha-72: #262626b8;
  --black-alpha-88: #262626e0;

  /* White Alpha */
  --white-alpha-56: #ffffff8f;
  --white-alpha-72: #ffffffb8;

  /* Typography Families */
  --font-sans: 'SuisseIntl', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-ascii: 'Roboto Mono', 'Geist Mono', monospace;

  /* Pixel-Based Spacing Rhythm (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Shapes / Radii */
  --rounded-sm: 8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
  --rounded-full: 999px;

  /* Motion */
  --ease-firecrawl: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-base: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-overlay: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Elevation — Primary Heat Button Stacked Shadow */
  --shadow-heat-primary:
    inset 0 -6px 12px 0 rgba(255, 0, 0, 0.2),
    0 0.6px 0.8px 0 rgba(255, 139, 0, 0.22),
    0 1.3px 1.7px 0 rgba(255, 139, 0, 0.19),
    0 2.5px 3.1px 0 rgba(255, 139, 0, 0.16),
    0 4.4px 5.5px 0 rgba(255, 139, 0, 0.13),
    0 8.3px 10.3px 0 rgba(255, 139, 0, 0.1),
    0 2px 4px 0 rgba(250, 93, 25, 0.3);

  --shadow-heat-hover:
    inset 0 -4px 10px 0 rgba(255, 0, 0, 0.25),
    0 1px 2px 0 rgba(255, 139, 0, 0.28),
    0 3px 6px 0 rgba(255, 139, 0, 0.22),
    0 6px 12px 0 rgba(255, 139, 0, 0.16),
    0 12px 20px 0 rgba(250, 93, 25, 0.28);

  --shadow-surface-subtle: 0 1px 2px 0 var(--black-alpha-4);
}

/* Dark Theme Semantic Token Inversion */
[data-theme="dark"] {
  --secondary: #f5f5f5;
  --background-base: #0a0a0a;
  --background-lighter: #141414;
  --surface: #171717;
  --surface-raised: #1f1f1f;
  --accent-black: #f5f5f5;
  --accent-white: #ffffff;

  --border-faint: #2a2a2a;
  --border-muted: #333333;
  --border-loud: #404040;

  --illustrations-faint: #2a2a2a;
  --illustrations-muted: #3d3d3d;
  --illustrations-default: #525252;

  /* Black-alpha tokens invert to translucent white in Dark mode */
  --black-alpha-1: rgba(255, 255, 255, 0.015);
  --black-alpha-2: rgba(255, 255, 255, 0.025);
  --black-alpha-3: rgba(255, 255, 255, 0.035);
  --black-alpha-4: rgba(255, 255, 255, 0.045);
  --black-alpha-5: rgba(255, 255, 255, 0.055);
  --black-alpha-6: rgba(255, 255, 255, 0.065);
  --black-alpha-7: rgba(255, 255, 255, 0.075);
  --black-alpha-8: rgba(255, 255, 255, 0.085);
  --black-alpha-10: rgba(255, 255, 255, 0.10);
  --black-alpha-12: rgba(255, 255, 255, 0.12);
  --black-alpha-16: rgba(255, 255, 255, 0.16);
  --black-alpha-20: rgba(255, 255, 255, 0.20);
  --black-alpha-24: rgba(255, 255, 255, 0.24);
  --black-alpha-32: rgba(245, 245, 245, 0.32);
  --black-alpha-40: rgba(245, 245, 245, 0.40);
  --black-alpha-48: rgba(245, 245, 245, 0.48);
  --black-alpha-56: rgba(245, 245, 245, 0.56);
  --black-alpha-64: rgba(245, 245, 245, 0.64);
  --black-alpha-72: rgba(245, 245, 245, 0.72);
  --black-alpha-88: rgba(245, 245, 245, 0.88);

  --white-alpha-56: rgba(10, 10, 10, 0.56);
  --white-alpha-72: rgba(10, 10, 10, 0.72);

  /* Slightly brighter accents in Dark for visibility */
  --accent-amethyst: #a17aff;
  --accent-bluetron: #4782ff;
  --accent-crimson: #f5493a;
  --accent-forest: #52d476;
  --accent-honey: #f5c342;

  --shadow-surface-subtle: none;
}

/* Wide-Gamut Display P3 Support */
@supports (color: color(display-p3 1 1 1)) {
  :root,
  [data-theme="light"] {
    --heat-100-p3: color(display-p3 0.980392 0.364706 0.098039);
    --accent-amethyst-p3: color(display-p3 0.564706 0.380392 1.000000);
    --accent-bluetron-p3: color(display-p3 0.164706 0.427451 0.984314);
    --accent-crimson-p3: color(display-p3 0.921569 0.203922 0.141176);
    --accent-forest-p3: color(display-p3 0.258824 0.764706 0.400000);
    --accent-honey-p3: color(display-p3 0.925490 0.717647 0.188235);
  }
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--background-base);
  color: var(--accent-black);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.14px;
  transition: background-color 0.2s var(--ease-firecrawl), color 0.2s var(--ease-firecrawl);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Interactive Focus Ring — Firecrawl Requirement:
   2px surface-colored gap then 2px heat-100 ring at :focus-visible */
:focus-visible {
  outline: 2px solid var(--heat-100);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--heat-16);
  color: var(--heat-100);
}

/* ==========================================================================
   TYPOGRAPHY TOKENS (Concrete Firecrawl Spec)
   ========================================================================== */
.title-h1 {
  font-family: var(--font-sans);
  font-size: 60px;
  font-weight: 500;
  line-height: 64px;
  letter-spacing: -0.3px;
}

.title-h2 {
  font-family: var(--font-sans);
  font-size: 52px;
  font-weight: 500;
  line-height: 56px;
  letter-spacing: -0.52px;
}

.title-h3 {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 500;
  line-height: 44px;
  letter-spacing: -0.4px;
}

.title-h4 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.32px;
}

.title-h5 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.24px;
}

.title-blog {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.28px;
}

.label-x-large {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 450;
  line-height: 28px;
  letter-spacing: -0.1px;
}

.label-large {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 450;
  line-height: 24px;
  letter-spacing: 0px;
}

.label-medium {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 450;
  line-height: 20px;
  letter-spacing: 0px;
}

.label-small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 450;
  line-height: 20px;
  letter-spacing: 0px;
}

.label-x-small {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 450;
  line-height: 20px;
  letter-spacing: 0px;
}

.body-x-large {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.1px;
}

.body-large {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0px;
}

.body-input {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0px;
}

.body-medium {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.14px;
}

.body-small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0px;
}

.mono-medium {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0px;
  font-variant-numeric: tabular-nums;
}

.mono-small {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0px;
  font-variant-numeric: tabular-nums;
}

.mono-x-small {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0px;
  font-variant-numeric: tabular-nums;
}

/* Text Color Hierarchy Utilities */
.text-primary { color: var(--accent-black); }
.text-secondary { color: var(--black-alpha-64); }
.text-muted { color: var(--black-alpha-48); }
.text-faint { color: var(--black-alpha-32); }
.text-heat { color: var(--heat-100); }
.text-bluetron { color: var(--accent-bluetron); }
.text-forest { color: var(--accent-forest); }
.text-honey { color: var(--accent-honey); }
.text-crimson { color: var(--accent-crimson); }
.text-amethyst { color: var(--accent-amethyst); }

/* ==========================================================================
   FIRECRAWL ARCHITECTURAL GRID & CONTAINERS
   ========================================================================== */
.fc-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--border-muted);
  border-right: 1px solid var(--border-muted);
  min-height: 100vh;
}

.fc-section {
  position: relative;
  border-bottom: 1px solid var(--border-muted);
  padding: var(--sp-16) var(--sp-8);
}

.fc-section-compact {
  position: relative;
  border-bottom: 1px solid var(--border-muted);
  padding: var(--sp-8) var(--sp-8);
}

.fc-section-lighter {
  background-color: var(--background-lighter);
}

/* Signature Firecrawl Grid Intersection Crosshairs (+) */
.fc-crosshair-tl,
.fc-crosshair-tr,
.fc-crosshair-bl,
.fc-crosshair-br {
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 3;
}

.fc-crosshair-tl::before, .fc-crosshair-tr::before,
.fc-crosshair-bl::before, .fc-crosshair-br::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 1px;
  background-color: var(--black-alpha-24);
}

.fc-crosshair-tl::after, .fc-crosshair-tr::after,
.fc-crosshair-bl::after, .fc-crosshair-br::after {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 1px;
  height: 9px;
  background-color: var(--black-alpha-24);
}

.fc-crosshair-tl { top: -5px; left: -5px; }
.fc-crosshair-tr { top: -5px; right: -5px; }
.fc-crosshair-bl { bottom: -5px; left: -5px; }
.fc-crosshair-br { bottom: -5px; right: -5px; }

/* Section Eyebrow / Index Header */
.fc-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}

.fc-section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.fc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--black-alpha-56);
}

.fc-eyebrow-index {
  color: var(--heat-100);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.fc-eyebrow-divider {
  color: var(--black-alpha-24);
}

/* ==========================================================================
   COMPONENTS (Exact Firecrawl Spec)
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 8px 16px;
  border-radius: var(--rounded-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 450;
  line-height: 20px;
  letter-spacing: 0px;
  white-space: nowrap;
  transition: var(--transition-base);
  user-select: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button — Solid heat-100, accent-white, warm stacked shadow */
.btn-primary {
  background-color: var(--heat-100);
  color: var(--accent-white);
  box-shadow: var(--shadow-heat-primary);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--heat-90);
  box-shadow: var(--shadow-heat-hover);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.995);
}

/* Secondary Button — black-alpha-4 fill with accent-black text */
.btn-secondary {
  background-color: var(--black-alpha-4);
  color: var(--accent-black);
  border: 1px solid var(--border-muted);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--black-alpha-6);
  border-color: var(--border-loud);
}

.btn-secondary:active:not(:disabled) {
  background-color: var(--black-alpha-7);
  transform: scale(0.985);
}

/* Tertiary Button — transparent fill with accent-black text */
.btn-tertiary {
  background-color: transparent;
  color: var(--accent-black);
}

.btn-tertiary:hover:not(:disabled) {
  background-color: var(--black-alpha-4);
}

.btn-tertiary:active:not(:disabled) {
  background-color: var(--black-alpha-6);
  transform: scale(0.985);
}

/* Destructive Button — solid accent-crimson fill with accent-white text */
.btn-destructive {
  background-color: var(--accent-crimson);
  color: var(--accent-white);
}

/* Button Sizes */
.btn-small {
  height: 32px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 450;
  line-height: 20px;
  border-radius: var(--rounded-sm);
}

.btn-large {
  height: 48px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 450;
  line-height: 24px;
  border-radius: var(--rounded-sm);
}

/* Inputs */
.fc-input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  background-color: var(--surface);
  color: var(--accent-black);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  transition: var(--transition-base);
}

.fc-input::placeholder,
.fc-textarea::placeholder {
  color: var(--black-alpha-40);
}

.fc-input:hover,
.fc-textarea:hover {
  border-color: var(--border-loud);
}

.fc-input:focus,
.fc-textarea:focus {
  border-color: var(--heat-100);
  outline: 2px solid var(--heat-20);
  outline-offset: 0px;
}

.fc-textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px;
  background-color: var(--surface);
  color: var(--accent-black);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  resize: vertical;
  transition: var(--transition-base);
}

/* Card Component */
.fc-card {
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-surface-subtle);
  transition: var(--transition-base);
}

.fc-card-compact {
  padding: var(--sp-4);
}

.fc-card-hero {
  padding: var(--sp-8);
}

.fc-card-interactive:hover {
  border-color: var(--black-alpha-20);
}

.fc-card-raised {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-sm);
  padding: var(--sp-4);
}

/* Badges & Pills (999px reserved for pills, avatars, circular controls) */
.fc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  height: 24px;
  border-radius: var(--rounded-full);
  background-color: var(--black-alpha-4);
  border: 1px solid var(--border-muted);
  color: var(--black-alpha-72);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.fc-pill-heat {
  background-color: var(--heat-8);
  border-color: var(--heat-20);
  color: var(--heat-100);
}

.fc-pill-status {
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  color: var(--accent-black);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--rounded-full);
  background-color: var(--accent-forest);
  box-shadow: 0 0 0 3px rgba(66, 195, 102, 0.18);
}

.fc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--rounded-sm);
  background-color: var(--black-alpha-4);
  color: var(--black-alpha-72);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR & STICKY NAVIGATION
   ========================================================================== */
.fc-topbar {
  border-bottom: 1px solid var(--border-muted);
  background-color: var(--background-lighter);
  padding: 8px var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.fc-topbar-left {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.fc-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.fc-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: color-mix(in srgb, var(--background-base) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
}

.fc-navbar {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 var(--sp-6);
  border-left: 1px solid var(--border-muted);
  border-right: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.fc-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--rounded-sm);
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--heat-100);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.fc-brand-name {
  display: flex;
  flex-direction: column;
}

.fc-brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.fc-nav-link {
  padding: 6px 12px;
  border-radius: var(--rounded-sm);
  color: var(--black-alpha-64);
  font-size: 14px;
  font-weight: 450;
  line-height: 20px;
  white-space: nowrap;
  transition: var(--transition-base);
}

.fc-nav-link:hover {
  color: var(--accent-black);
  background-color: var(--black-alpha-4);
}

.fc-nav-link.active {
  color: var(--accent-black);
  background-color: var(--black-alpha-6);
}

.fc-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-sm);
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-black);
  transition: var(--transition-base);
}

.theme-toggle-btn:hover {
  background-color: var(--black-alpha-4);
  border-color: var(--border-loud);
}

/* ==========================================================================
   HERO SECTION & ASCII FLAME BACKDROP
   ========================================================================== */
.fc-hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-16) var(--sp-8) var(--sp-10);
  border-bottom: 1px solid var(--border-muted);
}

.fc-ascii-stage {
  position: relative;
  margin-top: var(--sp-6);
  margin-bottom: calc(-1 * var(--sp-6));
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  opacity: 0.95;
}

.fc-ascii-pre {
  font-family: var(--font-ascii);
  font-size: 11px;
  line-height: 12px;
  letter-spacing: 1.5px;
  white-space: pre;
  text-align: center;
  color: var(--illustrations-default);
  user-select: none;
}

.fc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.fc-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.fc-hero-title {
  color: var(--accent-black);
  max-width: 820px;
}

.fc-hero-title .heat-word {
  color: var(--heat-100);
}

.fc-hero-subtitle {
  color: var(--black-alpha-64);
  max-width: 680px;
}

.fc-hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}

.fc-playground {
  position: relative;
  z-index: 2;
  margin-top: var(--sp-4);
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--shadow-surface-subtle);
}

.fc-playground-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--background-lighter);
  border-bottom: 1px solid var(--border-muted);
  flex-wrap: wrap;
}

.fc-url-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1;
  min-width: 260px;
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-sm);
  padding: 6px 12px;
  height: 36px;
}

.fc-url-protocol {
  color: var(--heat-100);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.fc-url-select {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-black);
  background: transparent;
  cursor: pointer;
}

.fc-playground-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--black-alpha-4);
  padding: 4px;
  border-radius: var(--rounded-sm);
}

.fc-tab-btn {
  padding: 4px 10px;
  height: 28px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--black-alpha-64);
  transition: var(--transition-base);
}

.fc-tab-btn:hover {
  color: var(--accent-black);
}

.fc-tab-btn.active {
  background-color: var(--surface);
  color: var(--accent-black);
  box-shadow: 0 1px 2px var(--black-alpha-6);
}

.fc-playground-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-bottom: 1px solid var(--border-muted);
}

.fc-playground-pane {
  padding: var(--sp-6);
}

.fc-playground-pane + .fc-playground-pane {
  border-left: 1px solid var(--border-muted);
  background-color: var(--background-lighter);
}

.fc-code-pre {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 19px;
  color: var(--black-alpha-72);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 270px;
  overflow-y: auto;
}

.fc-code-key { color: var(--accent-black); font-weight: 500; }
.fc-code-str { color: var(--heat-100); }
.fc-code-num { color: var(--accent-bluetron); }
.fc-code-bool { color: var(--accent-forest); }

.fc-playground-footer {
  padding: 10px var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  background-color: var(--surface);
  flex-wrap: wrap;
}

/* ==========================================================================
   METRICS / STATS STRIP (1px Exposed Grid)
   ========================================================================== */
.fc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-muted);
  background-color: var(--surface);
}

.fc-stat-cell {
  padding: var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.fc-stat-cell + .fc-stat-cell {
  border-left: 1px solid var(--border-muted);
}

.fc-stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.32px;
  color: var(--accent-black);
}

/* ==========================================================================
   PORTFOLIO SHOWCASE (SELECTED CASE STUDIES)
   ========================================================================== */
.fc-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.fc-filter-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.fc-filter-btn {
  height: 32px;
  padding: 6px 12px;
  border-radius: var(--rounded-sm);
  background-color: var(--black-alpha-4);
  border: 1px solid transparent;
  color: var(--black-alpha-64);
  font-size: 13px;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-base);
}

.fc-filter-btn:hover {
  background-color: var(--black-alpha-6);
  color: var(--accent-black);
}

.fc-filter-btn.active {
  background-color: var(--surface);
  border-color: var(--border-loud);
  color: var(--accent-black);
  box-shadow: var(--shadow-surface-subtle);
}

.fc-filter-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: var(--black-alpha-5);
  color: var(--black-alpha-56);
}

.fc-filter-btn.active .fc-filter-count {
  background-color: var(--heat-12);
  color: var(--heat-100);
}

.fc-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.fc-project-card {
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: var(--transition-base);
  position: relative;
}

.fc-project-card:hover {
  border-color: var(--black-alpha-24);
}

.fc-project-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-8);
}

.fc-project-media {
  position: relative;
  border-radius: var(--rounded-sm);
  overflow: hidden;
  background-color: var(--background-base);
  border: 1px solid var(--border-faint);
  aspect-ratio: 16 / 10;
}

.fc-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-firecrawl);
}

.fc-project-card:hover .fc-project-media img {
  transform: scale(1.02);
}

.fc-project-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.fc-project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-faint);
}

.fc-project-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-faint);
  margin-top: auto;
}

/* ==========================================================================
   PROCESS / 4-STAGE WORKFLOW & SERVICES
   ========================================================================== */
.fc-stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-md);
  background-color: var(--surface);
  overflow: hidden;
}

.fc-stage-card {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
}

.fc-stage-card + .fc-stage-card {
  border-left: 1px solid var(--border-muted);
}

.fc-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fc-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

/* ==========================================================================
   ABOUT ME, EXPERIENCE, EDUCATION, CERTIFICATIONS & STACK (IMAMBAS)
   ========================================================================== */
.fc-profile-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.fc-profile-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.fc-avatar-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--rounded-sm);
  overflow: hidden;
  border: 1px solid var(--border-muted);
  background-color: var(--background-base);
}

.fc-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-social-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.fc-social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--rounded-sm);
  background-color: var(--background-base);
  border: 1px solid var(--border-muted);
  font-size: 13px;
  font-weight: 450;
  transition: var(--transition-base);
}

.fc-social-item:hover {
  border-color: var(--black-alpha-24);
  background-color: var(--black-alpha-3);
}

.fc-timeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.fc-timeline-item {
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.fc-timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.fc-timeline-org {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.fc-org-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--border-muted);
  background-color: var(--background-base);
  object-fit: cover;
  flex-shrink: 0;
}

/* Stack Grid */
.fc-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.fc-stack-card {
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-md);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: var(--transition-base);
}

.fc-stack-card:hover {
  border-color: var(--black-alpha-24);
  transform: translateY(-1px);
}

.fc-stack-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--border-faint);
  background-color: var(--background-base);
  padding: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==========================================================================
   TESTIMONIALS, BLOG & FAQ
   ========================================================================== */
.fc-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.fc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.fc-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 820px;
  margin: 0 auto;
}

.fc-faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--rounded-md);
  overflow: hidden;
  transition: var(--transition-base);
}

.fc-faq-trigger {
  width: 100%;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
  font-size: 16px;
  font-weight: 450;
  line-height: 24px;
}

.fc-faq-trigger:hover {
  background-color: var(--black-alpha-2);
}

.fc-faq-body {
  padding: 0 var(--sp-6) var(--sp-4);
  color: var(--black-alpha-64);
  border-top: 1px solid var(--border-faint);
  padding-top: var(--sp-3);
}

/* ==========================================================================
   CASE STUDY MODAL / DRAWER (DEEP CASE STUDY VIEW)
   ========================================================================== */
.fc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.64);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-overlay);
}

.fc-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.fc-modal-sheet {
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  background-color: var(--surface);
  border: 1px solid var(--border-loud);
  border-radius: var(--rounded-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.99);
  transition: var(--transition-overlay);
}

.fc-modal-backdrop.open .fc-modal-sheet {
  transform: translateY(0) scale(1);
}

.fc-modal-header {
  padding: var(--sp-4) var(--sp-6);
  background-color: var(--background-lighter);
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.fc-modal-content {
  padding: var(--sp-8);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.fc-modal-content > * {
  flex-shrink: 0;
}

.fc-case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.fc-case-gallery img {
  width: 100%;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--border-muted);
  background-color: var(--background-base);
}

/* ==========================================================================
   TOAST NOTIFICATION (Firecrawl Voice: specific noun + verb, no period, no "successfully")
   ========================================================================== */
.fc-toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}

.fc-toast {
  background-color: var(--surface-raised);
  color: var(--accent-black);
  border: 1px solid var(--border-loud);
  border-radius: var(--rounded-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  font-size: 13px;
  font-weight: 450;
  animation: toastIn 0.2s var(--ease-firecrawl) forwards;
}

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Firecrawl Spec: xl 1200, lg 996, md 768, sm 576, xs 390)
   ========================================================================== */
@media (max-width: 996px) {
  .title-h1 { font-size: 44px; line-height: 48px; }
  .title-h2 { font-size: 38px; line-height: 42px; }
  .title-h3 { font-size: 30px; line-height: 34px; }
  .fc-playground-body { grid-template-columns: 1fr; }
  .fc-playground-pane + .fc-playground-pane { border-left: none; border-top: 1px solid var(--border-muted); }
  .fc-project-card-featured { grid-template-columns: 1fr; padding: var(--sp-6); }
  .fc-stages-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-stage-card:nth-child(3) { border-left: none; border-top: 1px solid var(--border-muted); }
  .fc-stage-card:nth-child(4) { border-top: 1px solid var(--border-muted); }
  .fc-profile-grid { grid-template-columns: 1fr; }
  .fc-profile-sidebar { position: static; }
  .fc-testimonials-grid, .fc-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-stack-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-stat-cell:nth-child(3) { border-left: none; border-top: 1px solid var(--border-muted); }
  .fc-stat-cell:nth-child(4) { border-top: 1px solid var(--border-muted); }
}

@media (max-width: 768px) {
  .fc-section { padding: var(--sp-10) var(--sp-4); }
  .fc-hero { padding: var(--sp-10) var(--sp-4) var(--sp-8); }
  .fc-nav-links { display: none; }
  .fc-projects-grid, .fc-services-grid, .fc-testimonials-grid, .fc-blog-grid, .fc-case-gallery {
    grid-template-columns: 1fr;
  }
  .fc-stages-grid { grid-template-columns: 1fr; }
  .fc-stage-card + .fc-stage-card { border-left: none; border-top: 1px solid var(--border-muted); }
  .fc-modal-content { padding: var(--sp-4); }
}

@media (max-width: 576px) {
  .title-h1 { font-size: 34px; line-height: 38px; }
  .title-h2 { font-size: 28px; line-height: 32px; }
  .fc-stack-grid { grid-template-columns: 1fr; }
  .fc-stats-grid { grid-template-columns: 1fr; }
  .fc-stat-cell + .fc-stat-cell { border-left: none; border-top: 1px solid var(--border-muted); }
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
